GUI: find and replace, part 3

This commit is contained in:
tildearrow 2022-06-07 19:48:42 -05:00
parent d90cfc0f33
commit dc3b0e8322
2 changed files with 30 additions and 2 deletions

View file

@ -331,7 +331,34 @@ void FurnaceGUI::drawFindReplace() {
ImGui::EndCombo();
}
ImGui::EndDisabled();
ImGui::Text("Match effect position:");
if (ImGui::RadioButton("No",curQueryEffectPos==0)) {
curQueryEffectPos=0;
}
if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("match effects regardless of position.");
}
if (ImGui::RadioButton("Lax",curQueryEffectPos==1)) {
curQueryEffectPos=1;
}
if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("match effects only if they appear in-order.");
}
if (ImGui::RadioButton("Strict",curQueryEffectPos==2)) {
curQueryEffectPos=2;
}
if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("match effects only if they appear exactly as specified.");
}
ImGui::TableNextRow();
ImGui::TableNextColumn();
ImGui::Checkbox("From start",&curQueryFromStart);
ImGui::TableNextColumn();
ImGui::Checkbox("Backwards",&curQueryBackwards);
ImGui::EndTable();
}

View file

@ -1170,9 +1170,10 @@ class FurnaceGUI {
int pgSys, pgAddr, pgVal;
std::vector<FurnaceGUIFindQuery> curQuery;
bool curQueryRangeX;
bool curQueryRangeX, curQueryFromStart, curQueryBackwards;
int curQueryRangeXMin, curQueryRangeXMax;
int curQueryRangeY;
int curQueryEffectPos;
struct ActiveNote {
int chan;