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
+10
-10
@@ -1,17 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include "popup/autosave_restore.hpp"
|
||||
#include "documents.hpp"
|
||||
#include "popup/autosave_restore.hpp"
|
||||
#include "taskbar.hpp"
|
||||
#include "window/animation_preview.hpp"
|
||||
#include "window/frame_properties.hpp"
|
||||
#include "window/onionskin.hpp"
|
||||
#include "window/panel.hpp"
|
||||
#include "window/shaders.hpp"
|
||||
#include "window/spritesheet_editor.hpp"
|
||||
#include "window/timeline/timeline.hpp"
|
||||
#include "window/tools.hpp"
|
||||
#include "window/welcome.hpp"
|
||||
#include "window/window.hpp"
|
||||
|
||||
namespace anm2ed::imgui
|
||||
{
|
||||
@@ -19,17 +19,17 @@ namespace anm2ed::imgui
|
||||
{
|
||||
AnimationPreview animationPreview;
|
||||
bool isCanvasFocused{};
|
||||
Window animations{animations_window_register()};
|
||||
Window regions{regions_window_register()};
|
||||
Window events{events_window_register()};
|
||||
AnimationsPanel animations{};
|
||||
RegionsPanel regions{};
|
||||
PanelState events{};
|
||||
FrameProperties frameProperties;
|
||||
Window layers{layers_window_register()};
|
||||
Window nulls{nulls_window_register()};
|
||||
PanelState layers{};
|
||||
PanelState nulls{};
|
||||
Onionskin onionskin;
|
||||
ShadersWindow shaders;
|
||||
ShadersPanel shaders{};
|
||||
SpritesheetEditor spritesheetEditor;
|
||||
Window spritesheets{spritesheets_window_register()};
|
||||
Window sounds{sounds_window_register()};
|
||||
SpritesheetsPanel spritesheets{};
|
||||
PanelState sounds{};
|
||||
Timeline timeline;
|
||||
Tools tools;
|
||||
Welcome welcome;
|
||||
|
||||
Reference in new issue
Block a user