This commit is contained in:
2026-01-12 23:10:10 -05:00
parent 2797a971eb
commit 6cac267998
4 changed files with 16 additions and 12 deletions
+8 -8
View File
@@ -221,7 +221,7 @@ namespace anm2ed::imgui
if (ImGui::Selectable("##Sound Selectable", isSelected, 0, soundChildSize))
{
reference = id;
play(sound);
if (ImGui::IsMouseClicked(ImGuiMouseButton_Left)) play(sound);
}
if (ImGui::IsItemHovered() && ImGui::IsMouseDoubleClicked(ImGuiMouseButton_Left)) open_directory(sound);
if (newSoundId == id)
@@ -270,8 +270,6 @@ namespace anm2ed::imgui
ImGui::EndChild();
ImGui::PopID();
context_menu();
}
ImGui::PopStyleVar();
@@ -281,6 +279,8 @@ namespace anm2ed::imgui
ImGui::EndChild();
ImGui::PopStyleVar();
context_menu();
auto widgetSize = imgui::widget_size_with_row_get(4);
imgui::shortcut(manager.chords[SHORTCUT_ADD]);
@@ -320,12 +320,12 @@ namespace anm2ed::imgui
replace(dialog.path);
dialog.reset();
}
if (imgui::shortcut(manager.chords[SHORTCUT_ADD], shortcut::FOCUSED)) add_open();
if (imgui::shortcut(manager.chords[SHORTCUT_REMOVE], shortcut::FOCUSED)) remove_unused();
if (imgui::shortcut(manager.chords[SHORTCUT_COPY], shortcut::FOCUSED)) copy();
if (imgui::shortcut(manager.chords[SHORTCUT_PASTE], shortcut::FOCUSED)) paste();
}
ImGui::End();
if (imgui::shortcut(manager.chords[SHORTCUT_ADD], shortcut::FOCUSED)) add_open();
if (imgui::shortcut(manager.chords[SHORTCUT_REMOVE], shortcut::FOCUSED)) remove_unused();
if (imgui::shortcut(manager.chords[SHORTCUT_COPY], shortcut::FOCUSED)) copy();
if (imgui::shortcut(manager.chords[SHORTCUT_PASTE], shortcut::FOCUSED)) paste();
}
}