improve find/replace
This commit is contained in:
parent
3c38a79801
commit
9e405e86fa
|
@ -811,20 +811,29 @@ void FurnaceGUI::drawFindReplace() {
|
||||||
}
|
}
|
||||||
ImGui::TableNextRow();
|
ImGui::TableNextRow();
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
if (ImGui::Button(ICON_FA_MINUS "##DelQuery")) {
|
pushDestColor();
|
||||||
|
if (ImGui::Button(ICON_FA_TRASH "##DelQuery")) {
|
||||||
eraseIndex=index;
|
eraseIndex=index;
|
||||||
}
|
}
|
||||||
|
popDestColor();
|
||||||
|
if (ImGui::IsItemHovered()) {
|
||||||
|
ImGui::SetTooltip("Delete query");
|
||||||
|
}
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
if (i.effectCount<8) {
|
if (i.effectCount<8) {
|
||||||
|
pushAddColor();
|
||||||
if (ImGui::Button("Add effect")) {
|
if (ImGui::Button("Add effect")) {
|
||||||
i.effectCount++;
|
i.effectCount++;
|
||||||
}
|
}
|
||||||
|
popAddColor();
|
||||||
}
|
}
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
if (i.effectCount>0) {
|
if (i.effectCount>0) {
|
||||||
|
pushDestColor();
|
||||||
if (ImGui::Button("Remove effect")) {
|
if (ImGui::Button("Remove effect")) {
|
||||||
i.effectCount--;
|
i.effectCount--;
|
||||||
}
|
}
|
||||||
|
popDestColor();
|
||||||
}
|
}
|
||||||
ImGui::EndTable();
|
ImGui::EndTable();
|
||||||
}
|
}
|
||||||
|
@ -1097,15 +1106,19 @@ void FurnaceGUI::drawFindReplace() {
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
if (queryReplaceEffectCount<8) {
|
if (queryReplaceEffectCount<8) {
|
||||||
|
pushAddColor();
|
||||||
if (ImGui::Button("Add effect")) {
|
if (ImGui::Button("Add effect")) {
|
||||||
queryReplaceEffectCount++;
|
queryReplaceEffectCount++;
|
||||||
}
|
}
|
||||||
|
popAddColor();
|
||||||
}
|
}
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
if (queryReplaceEffectCount>0) {
|
if (queryReplaceEffectCount>0) {
|
||||||
|
pushDestColor();
|
||||||
if (ImGui::Button("Remove effect")) {
|
if (ImGui::Button("Remove effect")) {
|
||||||
queryReplaceEffectCount--;
|
queryReplaceEffectCount--;
|
||||||
}
|
}
|
||||||
|
popDestColor();
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::EndTable();
|
ImGui::EndTable();
|
||||||
|
|
|
@ -810,7 +810,7 @@ const FurnaceGUIColorDef guiColors[GUI_COLOR_MAX]={
|
||||||
D(GUI_COLOR_TOGGLE_ON,"",ImVec4(0.2f,0.6f,0.2f,1.0f)),
|
D(GUI_COLOR_TOGGLE_ON,"",ImVec4(0.2f,0.6f,0.2f,1.0f)),
|
||||||
D(GUI_COLOR_EDITING,"",ImVec4(0.2f,0.1f,0.1f,1.0f)),
|
D(GUI_COLOR_EDITING,"",ImVec4(0.2f,0.1f,0.1f,1.0f)),
|
||||||
D(GUI_COLOR_SONG_LOOP,"",ImVec4(0.3f,0.5f,0.8f,0.4f)),
|
D(GUI_COLOR_SONG_LOOP,"",ImVec4(0.3f,0.5f,0.8f,0.4f)),
|
||||||
D(GUI_COLOR_ADDITIVE,"",ImVec4(0.12f,0.58f,1.0f,1.0f)),
|
D(GUI_COLOR_ADDITIVE,"",ImVec4(0.2f,1.0f,0.2f,1.0f)),
|
||||||
D(GUI_COLOR_DESTRUCTIVE,"",ImVec4(1.0f,0.2f,0.2f,1.0f)),
|
D(GUI_COLOR_DESTRUCTIVE,"",ImVec4(1.0f,0.2f,0.2f,1.0f)),
|
||||||
D(GUI_COLOR_WARNING,"",ImVec4(0.98f,0.98f,0.06f,1.0f)),
|
D(GUI_COLOR_WARNING,"",ImVec4(0.98f,0.98f,0.06f,1.0f)),
|
||||||
D(GUI_COLOR_ERROR,"",ImVec4(0.98f,0.06f,0.11f,1.0f)),
|
D(GUI_COLOR_ERROR,"",ImVec4(0.98f,0.06f,0.11f,1.0f)),
|
||||||
|
|
Loading…
Reference in a new issue