is this "the button"

This commit is contained in:
Eknous-P 2023-07-28 18:24:56 +04:00
parent 0d33273a2e
commit d5b18ab080

View file

@ -12,7 +12,8 @@ void FurnaceGUI::drawEffectList() {
ImGui::SetNextWindowSizeConstraints(ImVec2(60.0f*dpiScale,20.0f*dpiScale),ImVec2(canvasW,canvasH));
if (ImGui::Begin("Effect List",&effectListOpen,globalWinFlags)) {
ImGui::Text("Chip at cursor: %s",e->getSystemName(e->sysOfChan[cursor.xCoarse]));
if (ImGui::TreeNode("Sort Effects")) {
if (ImGui::Button("Sort Effects")) ImGui::OpenPopup("effectSort");
if (ImGui::BeginPopup("effectSort")) {
ImGui::Checkbox("Pitch",&effectShowPitch);
ImGui::Checkbox("Song",&effectShowSong);
ImGui::Checkbox("Time",&effectShowTime);
@ -45,7 +46,7 @@ void FurnaceGUI::drawEffectList() {
effectShowSysPrimary = false;
effectShowSysSecondary = false;
}
ImGui::TreePop();
ImGui::EndPopup();
}
if (ImGui::BeginTable("effectList",2)) {