Merge branch 'master' of https://github.com/tildearrow/furnace into k053260

This commit is contained in:
cam900 2023-05-02 13:46:56 +09:00
commit 523e08ed5c
35 changed files with 677 additions and 193 deletions

View file

@ -561,18 +561,32 @@ void FurnaceGUI::doAction(int what) {
doFlip();
break;
case GUI_ACTION_PAT_COLLAPSE_ROWS:
doCollapse(2);
doCollapse(2,selStart,selEnd);
break;
case GUI_ACTION_PAT_EXPAND_ROWS:
doExpand(2);
doExpand(2,selStart,selEnd);
break;
case GUI_ACTION_PAT_COLLAPSE_PAT: // TODO
case GUI_ACTION_PAT_COLLAPSE_PAT: {
SelectionPoint selEndPat;
selEndPat.xCoarse=e->getTotalChannelCount()-1;
selEndPat.xFine=2+e->curPat[selEndPat.xCoarse].effectCols*2;
selEndPat.y=e->curSubSong->patLen-1;
doCollapse(2,SelectionPoint(0,0,0),selEndPat);
break;
case GUI_ACTION_PAT_EXPAND_PAT: // TODO
}
case GUI_ACTION_PAT_EXPAND_PAT: {
SelectionPoint selEndPat;
selEndPat.xCoarse=e->getTotalChannelCount()-1;
selEndPat.xFine=2+e->curPat[selEndPat.xCoarse].effectCols*2;
selEndPat.y=e->curSubSong->patLen-1;
doExpand(2,SelectionPoint(0,0,0),selEndPat);
break;
case GUI_ACTION_PAT_COLLAPSE_SONG: // TODO
}
case GUI_ACTION_PAT_COLLAPSE_SONG:
doCollapseSong(2);
break;
case GUI_ACTION_PAT_EXPAND_SONG: // TODO
case GUI_ACTION_PAT_EXPAND_SONG:
doExpandSong(2);
break;
case GUI_ACTION_PAT_LATCH: // TODO
break;