Stage 8a: panels as plain functions; content selection on the uid Selection
- New panel kit (imgui/window/panel.*): list/card drawing with multi-select, rename, arrow keys, drag hooks and tooltips; a list panel helper for the context menu, shortcuts and footer; panels build their Actions inline. - Layers, nulls, events, sounds, spritesheets, regions, shaders and animations are plain functions over a small persistent state struct. - Content items are selected by uid in the shared Selection (one kind per content type, plus a focus per kind); regions are those of the focused spritesheet. Selection survives undo, paste and removal like the timeline's. - Combo labels are computed when drawn (Document::choices_get). - Deletes the Window callback framework, WINDOW_FLAGS, Storage and the per-window selection snapshot fields. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e50d76c784
commit
d08f59d7ba
37 files changed
+2355
-2578
No files matched your search
@@ -74,7 +74,7 @@ namespace anm2ed::imgui
|
||||
|
||||
model::Region region{.crop = frame->crop, .size = frame->size, .pivot = frame->pivot};
|
||||
|
||||
document.spritesheet.reference = spritesheetID;
|
||||
document.focused_id_set(SelectionKind::SPRITESHEETS, spritesheetID);
|
||||
settingsPtr->windowIsRegions = true;
|
||||
manager.makeRegionSpritesheetId = spritesheetID;
|
||||
manager.makeRegion = region;
|
||||
@@ -196,7 +196,7 @@ namespace anm2ed::imgui
|
||||
}
|
||||
ImGui::EndChild();
|
||||
|
||||
auto result = window_popup_buttons_draw(manager, localize.get(BASIC_CONFIRM));
|
||||
auto result = popup_buttons_draw(manager, localize.get(BASIC_CONFIRM));
|
||||
if (result == PopupButton::CONFIRM)
|
||||
{
|
||||
auto targetName = groupName;
|
||||
|
||||
Reference in new issue
Block a user