mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-31 20:11:29 +00:00
parent
7c509ba9b8
commit
9f6b8ed521
2 changed files with 28 additions and 2 deletions
|
@ -522,6 +522,31 @@ void FurnaceGUI::drawOrders() {
|
||||||
// whether to change one or all orders in a row
|
// whether to change one or all orders in a row
|
||||||
changeAllOrders=!changeAllOrders;
|
changeAllOrders=!changeAllOrders;
|
||||||
}
|
}
|
||||||
|
const char* orderEditModeLabel="?##OrderEditMode";
|
||||||
|
if (orderEditMode==3) {
|
||||||
|
orderEditModeLabel=ICON_FA_ARROWS_V "##OrderEditMode";
|
||||||
|
} else if (orderEditMode==2) {
|
||||||
|
orderEditModeLabel=ICON_FA_ARROWS_H "##OrderEditMode";
|
||||||
|
} else if (orderEditMode==1) {
|
||||||
|
orderEditModeLabel=ICON_FA_I_CURSOR "##OrderEditMode";
|
||||||
|
} else {
|
||||||
|
orderEditModeLabel=ICON_FA_MOUSE_POINTER "##OrderEditMode";
|
||||||
|
}
|
||||||
|
if (ImGui::Button(orderEditModeLabel)) {
|
||||||
|
orderEditMode++;
|
||||||
|
if (orderEditMode>3) orderEditMode=0;
|
||||||
|
}
|
||||||
|
if (ImGui::IsItemHovered()) {
|
||||||
|
if (orderEditMode==3) {
|
||||||
|
ImGui::SetTooltip("Order edit mode: Select and type (scroll vertically)");
|
||||||
|
} else if (orderEditMode==2) {
|
||||||
|
ImGui::SetTooltip("Order edit mode: Select and type (scroll horizontally)");
|
||||||
|
} else if (orderEditMode==1) {
|
||||||
|
ImGui::SetTooltip("Order edit mode: Select and type (don't scroll)");
|
||||||
|
} else {
|
||||||
|
ImGui::SetTooltip("Order edit mode: Click to change");
|
||||||
|
}
|
||||||
|
}
|
||||||
ImGui::PopStyleVar();
|
ImGui::PopStyleVar();
|
||||||
}
|
}
|
||||||
if (ImGui::IsWindowFocused()) curWindow=GUI_WINDOW_ORDERS;
|
if (ImGui::IsWindowFocused()) curWindow=GUI_WINDOW_ORDERS;
|
||||||
|
@ -3798,6 +3823,7 @@ FurnaceGUI::FurnaceGUI():
|
||||||
oldOrder1(0),
|
oldOrder1(0),
|
||||||
editStep(1),
|
editStep(1),
|
||||||
exportLoops(0),
|
exportLoops(0),
|
||||||
|
orderEditMode(0),
|
||||||
editControlsOpen(true),
|
editControlsOpen(true),
|
||||||
ordersOpen(true),
|
ordersOpen(true),
|
||||||
insListOpen(true),
|
insListOpen(true),
|
||||||
|
|
|
@ -211,11 +211,11 @@ class FurnaceGUI {
|
||||||
|
|
||||||
char finalLayoutPath[4096];
|
char finalLayoutPath[4096];
|
||||||
|
|
||||||
int curIns, curWave, curSample, curOctave, oldRow, oldOrder, oldOrder1, editStep, exportLoops;
|
int curIns, curWave, curSample, curOctave, oldRow, oldOrder, oldOrder1, editStep, exportLoops, orderEditMode;
|
||||||
bool editControlsOpen, ordersOpen, insListOpen, songInfoOpen, patternOpen, insEditOpen;
|
bool editControlsOpen, ordersOpen, insListOpen, songInfoOpen, patternOpen, insEditOpen;
|
||||||
bool waveListOpen, waveEditOpen, sampleListOpen, sampleEditOpen, aboutOpen, settingsOpen;
|
bool waveListOpen, waveEditOpen, sampleListOpen, sampleEditOpen, aboutOpen, settingsOpen;
|
||||||
bool mixerOpen;
|
bool mixerOpen;
|
||||||
SelectionPoint selStart, selEnd, cursor;
|
SelectionPoint selStart, selEnd, cursor, orderCursor;
|
||||||
bool selecting, curNibble, extraChannelButtons, followOrders, followPattern, changeAllOrders;
|
bool selecting, curNibble, extraChannelButtons, followOrders, followPattern, changeAllOrders;
|
||||||
FurnaceGUIWindows curWindow;
|
FurnaceGUIWindows curWindow;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue