pattern data refactor, part 13
find/replace fixes
This commit is contained in:
parent
ceb3a56e4b
commit
c0f771ea74
3 changed files with 6 additions and 6 deletions
|
|
@ -577,15 +577,15 @@ void FurnaceGUI::drawFindReplace() {
|
|||
ImGui::Combo("##NCondition",&i.noteMode,LocalizedComboGetter,queryModes,GUI_QUERY_MAX);
|
||||
ImGui::TableNextColumn();
|
||||
if (FIRST_VISIBLE(i.noteMode)) {
|
||||
if ((i.noteMode==GUI_QUERY_RANGE || i.noteMode==GUI_QUERY_RANGE_NOT) && i.note>=120) {
|
||||
i.note=0;
|
||||
if ((i.noteMode==GUI_QUERY_RANGE || i.noteMode==GUI_QUERY_RANGE_NOT) && i.note>=180) {
|
||||
i.note=108;
|
||||
}
|
||||
NoteSelector(&i.note, i.noteMode!=GUI_QUERY_RANGE && i.noteMode!=GUI_QUERY_RANGE_NOT);
|
||||
}
|
||||
ImGui::TableNextColumn();
|
||||
if (SECOND_VISIBLE(i.noteMode)) {
|
||||
if (i.noteMax<0 || i.noteMax>=256) {
|
||||
i.noteMax=0;
|
||||
i.noteMax=108;
|
||||
}
|
||||
NoteSelector(&i.noteMax, false);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8785,7 +8785,7 @@ FurnaceGUI::FurnaceGUI():
|
|||
queryReplaceNoteMode(0),
|
||||
queryReplaceInsMode(0),
|
||||
queryReplaceVolMode(0),
|
||||
queryReplaceNote(96),
|
||||
queryReplaceNote(108),
|
||||
queryReplaceIns(0),
|
||||
queryReplaceVol(0),
|
||||
queryReplaceNoteDo(false),
|
||||
|
|
|
|||
|
|
@ -1466,8 +1466,8 @@ struct FurnaceGUIFindQuery {
|
|||
insMode(GUI_QUERY_IGNORE),
|
||||
volMode(GUI_QUERY_IGNORE),
|
||||
effectCount(0),
|
||||
note(0),
|
||||
noteMax(0),
|
||||
note(108),
|
||||
noteMax(108),
|
||||
ins(0),
|
||||
insMax(0),
|
||||
vol(0),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue