GUI: find and replace, part 3
This commit is contained in:
parent
d90cfc0f33
commit
dc3b0e8322
|
@ -331,7 +331,34 @@ void FurnaceGUI::drawFindReplace() {
|
||||||
ImGui::EndCombo();
|
ImGui::EndCombo();
|
||||||
}
|
}
|
||||||
ImGui::EndDisabled();
|
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();
|
ImGui::EndTable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1170,9 +1170,10 @@ class FurnaceGUI {
|
||||||
int pgSys, pgAddr, pgVal;
|
int pgSys, pgAddr, pgVal;
|
||||||
|
|
||||||
std::vector<FurnaceGUIFindQuery> curQuery;
|
std::vector<FurnaceGUIFindQuery> curQuery;
|
||||||
bool curQueryRangeX;
|
bool curQueryRangeX, curQueryFromStart, curQueryBackwards;
|
||||||
int curQueryRangeXMin, curQueryRangeXMax;
|
int curQueryRangeXMin, curQueryRangeXMax;
|
||||||
int curQueryRangeY;
|
int curQueryRangeY;
|
||||||
|
int curQueryEffectPos;
|
||||||
|
|
||||||
struct ActiveNote {
|
struct ActiveNote {
|
||||||
int chan;
|
int chan;
|
||||||
|
|
Loading…
Reference in a new issue