GUI: new pattern cursor logic, part 17
fix some more annoyances
This commit is contained in:
parent
853111b99d
commit
55e00cf538
|
@ -359,6 +359,13 @@ void FurnaceGUI::drawOrders() {
|
||||||
if (orderEditMode==0) {
|
if (orderEditMode==0) {
|
||||||
handleUnimportant;
|
handleUnimportant;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cursor.xCoarse==selStart.xCoarse && cursor.xFine==selStart.xFine && cursor.y==selStart.y && cursor.order==selStart.order &&
|
||||||
|
cursor.xCoarse==selEnd.xCoarse && cursor.xFine==selEnd.xFine && cursor.y==selEnd.y && cursor.order==selEnd.order) {
|
||||||
|
cursor.order=curOrder;
|
||||||
|
selStart=cursor;
|
||||||
|
selEnd=cursor;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ImGui::PopStyleColor();
|
ImGui::PopStyleColor();
|
||||||
for (int j=0; j<e->getTotalChannelCount(); j++) {
|
for (int j=0; j<e->getTotalChannelCount(); j++) {
|
||||||
|
@ -398,6 +405,14 @@ void FurnaceGUI::drawOrders() {
|
||||||
orderCursor=j;
|
orderCursor=j;
|
||||||
curNibble=false;
|
curNibble=false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// i wonder whether this is necessary
|
||||||
|
if (cursor.xCoarse==selStart.xCoarse && cursor.xFine==selStart.xFine && cursor.y==selStart.y && cursor.order==selStart.order &&
|
||||||
|
cursor.xCoarse==selEnd.xCoarse && cursor.xFine==selEnd.xFine && cursor.y==selEnd.y && cursor.order==selEnd.order) {
|
||||||
|
cursor.order=curOrder;
|
||||||
|
selStart=cursor;
|
||||||
|
selEnd=cursor;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (orderEditMode==0) {
|
if (orderEditMode==0) {
|
||||||
|
@ -439,6 +454,13 @@ void FurnaceGUI::drawOrders() {
|
||||||
orderCursor=j;
|
orderCursor=j;
|
||||||
curNibble=false;
|
curNibble=false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cursor.xCoarse==selStart.xCoarse && cursor.xFine==selStart.xFine && cursor.y==selStart.y && cursor.order==selStart.order &&
|
||||||
|
cursor.xCoarse==selEnd.xCoarse && cursor.xFine==selEnd.xFine && cursor.y==selEnd.y && cursor.order==selEnd.order) {
|
||||||
|
cursor.order=curOrder;
|
||||||
|
selStart=cursor;
|
||||||
|
selEnd=cursor;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue