the rest of the add colors

This commit is contained in:
Eknous-P 2023-08-26 16:09:27 +04:00
parent 0dbe1b401f
commit 19f7376337
5 changed files with 15 additions and 1 deletions

View file

@ -4333,18 +4333,21 @@ void FurnaceGUI::drawInsEdit() {
MARK_MODIFIED;
}
ImGui::SameLine();
if (ImGui::Button(ICON_FA_TIMES "##HWCmdDel")) {
pushDestColor();
if (ImGui::Button(ICON_FA_MINUS "##HWCmdDel")) {
for (int j=i; j<ins->gb.hwSeqLen-1; j++) {
ins->gb.hwSeq[j].cmd=ins->gb.hwSeq[j+1].cmd;
ins->gb.hwSeq[j].data=ins->gb.hwSeq[j+1].data;
}
ins->gb.hwSeqLen--;
}
popDestColor();
ImGui::PopID();
}
ImGui::EndTable();
}
pushAddColor();
if (ImGui::Button(ICON_FA_PLUS "##HWCmdAdd")) {
if (ins->gb.hwSeqLen<255) {
ins->gb.hwSeq[ins->gb.hwSeqLen].cmd=0;
@ -4352,6 +4355,7 @@ void FurnaceGUI::drawInsEdit() {
ins->gb.hwSeqLen++;
}
}
popAddColor();
}
ImGui::EndChild();
ImGui::EndDisabled();