expanded change all frame properties

This commit is contained in:
2026-05-07 00:34:24 -04:00
parent 5c746d99c2
commit d8930fcdbe
5 changed files with 138 additions and 12 deletions
+5 -2
View File
@@ -153,8 +153,11 @@ namespace anm2ed::imgui
generatePopup.open();
ImGui::SetItemTooltip("%s", localize.get(TOOLTIP_WIZARD_GENERATE_ANIMATION_FROM_GRID));
bool isChangeAllFramesAvailable =
frames && !frames->selection.empty() && document->reference.itemType != anm2::TRIGGER;
bool isChangeAllAnimationsAvailable = document && !document->animation.selection.empty();
if (ImGui::MenuItem(localize.get(LABEL_CHANGE_ALL_FRAME_PROPERTIES), nullptr, false,
frames && !frames->selection.empty() && document->reference.itemType != anm2::TRIGGER))
isChangeAllFramesAvailable || isChangeAllAnimationsAvailable))
changePopup.open();
ImGui::SetItemTooltip("%s", localize.get(TOOLTIP_WIZARD_CHANGE_ALL_FRAME_PROPERTIES));
@@ -232,7 +235,7 @@ namespace anm2ed::imgui
{
if (document)
{
changeAllFrameProperties.update(*document, settings);
changeAllFrameProperties.update(*document, settings, true);
if (changeAllFrameProperties.isChanged) changePopup.close();
}
ImGui::EndPopup();