document change fix

This commit is contained in:
2025-12-30 14:36:38 -05:00
parent 58077b5522
commit 95b441c4cf
3 changed files with 9 additions and 5 deletions

View File

@@ -217,13 +217,16 @@ namespace anm2ed
case SOUNDS:
sounds_set();
break;
case ANIMATIONS:
animations_set();
break;
case FRAMES:
events_set();
sounds_set();
break;
case ITEMS:
layers_set();
nulls_set();
spritesheets_set();
break;
case ANIMATIONS:
case ALL:
layers_set();
nulls_set();

View File

@@ -176,7 +176,8 @@ namespace anm2ed::imgui
input_text_string(localize.get(BASIC_NAME), &layer.name);
ImGui::SetItemTooltip("%s", localize.get(TOOLTIP_ITEM_NAME));
ImGui::Combo(localize.get(LABEL_SPRITESHEET), &layer.spritesheetID, document.spritesheet.labels.data(), (int)document.spritesheet.labels.size());
ImGui::Combo(localize.get(LABEL_SPRITESHEET), &layer.spritesheetID, document.spritesheet.labels.data(),
(int)document.spritesheet.labels.size());
ImGui::SetItemTooltip("%s", localize.get(TOOLTIP_LAYER_SPRITESHEET));
}
ImGui::EndChild();

View File

@@ -56,7 +56,7 @@ namespace anm2ed::imgui
unused.clear();
};
DOCUMENT_EDIT(document, localize.get(EDIT_REMOVE_UNUSED_SPRITESHEETS), Document::SPRITESHEETS, behavior());
DOCUMENT_EDIT(document, localize.get(EDIT_REMOVE_UNUSED_SPRITESHEETS), Document::ALL, behavior());
};
auto reload = [&]()