GUI: prepare to add "make me a drum kit"
This commit is contained in:
parent
ac1e09af84
commit
b600be9b26
|
@ -726,6 +726,7 @@ void FurnaceGUI::doAction(int what) {
|
||||||
insListDir=!insListDir;
|
insListDir=!insListDir;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
case GUI_ACTION_WAVE_LIST_ADD: {
|
case GUI_ACTION_WAVE_LIST_ADD: {
|
||||||
waveSizeList.clear();
|
waveSizeList.clear();
|
||||||
for (int i=0; i<e->song.systemLen; i++) {
|
for (int i=0; i<e->song.systemLen; i++) {
|
||||||
|
@ -945,6 +946,8 @@ void FurnaceGUI::doAction(int what) {
|
||||||
case GUI_ACTION_SAMPLE_LIST_DIR_VIEW:
|
case GUI_ACTION_SAMPLE_LIST_DIR_VIEW:
|
||||||
sampleListDir=!sampleListDir;
|
sampleListDir=!sampleListDir;
|
||||||
break;
|
break;
|
||||||
|
case GUI_ACTION_SAMPLE_LIST_MAKE_MAP:
|
||||||
|
break;
|
||||||
|
|
||||||
case GUI_ACTION_SAMPLE_SELECT:
|
case GUI_ACTION_SAMPLE_SELECT:
|
||||||
if (curSample<0 || curSample>=(int)e->song.sample.size()) break;
|
if (curSample<0 || curSample>=(int)e->song.sample.size()) break;
|
||||||
|
|
|
@ -760,6 +760,7 @@ enum FurnaceGUIActions {
|
||||||
GUI_ACTION_SAMPLE_LIST_PREVIEW,
|
GUI_ACTION_SAMPLE_LIST_PREVIEW,
|
||||||
GUI_ACTION_SAMPLE_LIST_STOP_PREVIEW,
|
GUI_ACTION_SAMPLE_LIST_STOP_PREVIEW,
|
||||||
GUI_ACTION_SAMPLE_LIST_DIR_VIEW,
|
GUI_ACTION_SAMPLE_LIST_DIR_VIEW,
|
||||||
|
GUI_ACTION_SAMPLE_LIST_MAKE_MAP,
|
||||||
GUI_ACTION_SAMPLE_LIST_MAX,
|
GUI_ACTION_SAMPLE_LIST_MAX,
|
||||||
|
|
||||||
GUI_ACTION_SAMPLE_MIN,
|
GUI_ACTION_SAMPLE_MIN,
|
||||||
|
|
|
@ -730,6 +730,7 @@ const FurnaceGUIActionDef guiActions[GUI_ACTION_MAX]={
|
||||||
D("SAMPLE_LIST_PREVIEW", "Preview", 0),
|
D("SAMPLE_LIST_PREVIEW", "Preview", 0),
|
||||||
D("SAMPLE_LIST_STOP_PREVIEW", "Stop preview", 0),
|
D("SAMPLE_LIST_STOP_PREVIEW", "Stop preview", 0),
|
||||||
D("SAMPLE_LIST_DIR_VIEW", "Toggle folders/standard view", FURKMOD_CMD|SDLK_v),
|
D("SAMPLE_LIST_DIR_VIEW", "Toggle folders/standard view", FURKMOD_CMD|SDLK_v),
|
||||||
|
D("SAMPLE_LIST_MAKE_MAP", "Make me a drum kit", 0),
|
||||||
D("SAMPLE_LIST_MAX", "", NOT_AN_ACTION),
|
D("SAMPLE_LIST_MAX", "", NOT_AN_ACTION),
|
||||||
|
|
||||||
D("SAMPLE_MIN", "---Sample editor", NOT_AN_ACTION),
|
D("SAMPLE_MIN", "---Sample editor", NOT_AN_ACTION),
|
||||||
|
|
|
@ -1966,6 +1966,7 @@ void FurnaceGUI::drawSettings() {
|
||||||
UI_KEYBIND_CONFIG(GUI_ACTION_SAMPLE_LIST_PREVIEW);
|
UI_KEYBIND_CONFIG(GUI_ACTION_SAMPLE_LIST_PREVIEW);
|
||||||
UI_KEYBIND_CONFIG(GUI_ACTION_SAMPLE_LIST_STOP_PREVIEW);
|
UI_KEYBIND_CONFIG(GUI_ACTION_SAMPLE_LIST_STOP_PREVIEW);
|
||||||
UI_KEYBIND_CONFIG(GUI_ACTION_SAMPLE_LIST_DIR_VIEW);
|
UI_KEYBIND_CONFIG(GUI_ACTION_SAMPLE_LIST_DIR_VIEW);
|
||||||
|
UI_KEYBIND_CONFIG(GUI_ACTION_SAMPLE_LIST_MAKE_MAP);
|
||||||
|
|
||||||
KEYBIND_CONFIG_END;
|
KEYBIND_CONFIG_END;
|
||||||
ImGui::TreePop();
|
ImGui::TreePop();
|
||||||
|
|
Loading…
Reference in a new issue