GUI: order lock button...

This commit is contained in:
tildearrow 2025-07-16 05:07:22 -05:00
parent 1a68d0efe7
commit 203cb04758
6 changed files with 64 additions and 6 deletions

View file

@ -723,6 +723,8 @@ void FurnaceGUI::drawEditControls() {
ImGui::SameLine();
ImGui::Checkbox(_("Edit"),&edit);
ImGui::SameLine();
ImGui::Checkbox(_("Lock"),&orderLock);
ImGui::SameLine();
bool metro=e->getMetronome();
if (ImGui::Checkbox(_("Metronome"),&metro)) {
e->setMetronome(metro);
@ -809,6 +811,15 @@ void FurnaceGUI::drawEditControls() {
}
popToggleColors();
pushToggleColors(orderLock);
if (ImGui::Button(ICON_FA_LOCK "##OrderLock")) {
orderLock=!orderLock;
}
if (ImGui::IsItemHovered()) {
ImGui::SetTooltip(_("Lock cursor/selection to this order"));
}
popToggleColors();
ImGui::SameLine();
bool metro=e->getMetronome();
pushToggleColors(metro);
@ -926,6 +937,15 @@ void FurnaceGUI::drawEditControls() {
}
popToggleColors();
pushToggleColors(orderLock);
if (ImGui::Button(ICON_FA_LOCK "##OrderLock",buttonSize)) {
orderLock=!orderLock;
}
if (ImGui::IsItemHovered()) {
ImGui::SetTooltip(_("Lock cursor/selection to this order"));
}
popToggleColors();
bool metro=e->getMetronome();
pushToggleColors(metro);
if (ImGui::Button(ICON_FUR_METRONOME "##Metronome",buttonSize)) {
@ -1065,6 +1085,16 @@ void FurnaceGUI::drawEditControls() {
}
popToggleColors();
ImGui::SameLine();
pushToggleColors(orderLock);
if (ImGui::Button(ICON_FA_LOCK "##OrderLock")) {
orderLock=!orderLock;
}
if (ImGui::IsItemHovered()) {
ImGui::SetTooltip(_("Lock cursor/selection to this order"));
}
popToggleColors();
bool metro=e->getMetronome();
ImGui::SameLine();
pushToggleColors(metro);