A Libraries window (docked with Spritesheets and Sounds) links other .anm2 files: cards list each one's animations, open it as a tab, and reload when it changes on disk. A layer's Source is a spritesheet or an animation, from this file or a library; the preview, renders and CLI draw the child in the layer's frame. Animation-layer keyframes set the child's animation, mode (loop, once, hold), start frame (or random) and restart; Child is also a copyable frame property. All of it is editor-only and counted by the Isaac warning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "documents.hpp"
|
|
#include "popup/autosave_restore.hpp"
|
|
#include "taskbar.hpp"
|
|
#include "window/animation_preview.hpp"
|
|
#include "window/panel.hpp"
|
|
#include "window/shaders.hpp"
|
|
#include "window/spritesheet_editor.hpp"
|
|
#include "window/timeline/timeline.hpp"
|
|
|
|
namespace anm2ed::imgui
|
|
{
|
|
class Dockspace
|
|
{
|
|
AnimationPreview animationPreview;
|
|
bool isCanvasFocused{};
|
|
float reloadTime{};
|
|
AnimationsPanel animations{};
|
|
RegionsPanel regions{};
|
|
PanelState events{};
|
|
FramePropertiesPanel frameProperties{};
|
|
PanelState layers{};
|
|
PanelState nulls{};
|
|
ShadersPanel shaders{};
|
|
SpritesheetEditor spritesheetEditor;
|
|
SpritesheetsPanel spritesheets{};
|
|
PanelState sounds{};
|
|
PanelState libraries{};
|
|
Timeline timeline;
|
|
PopupHelper toolsColorEditPopup{PopupHelper(LABEL_TOOLS_COLOR_EDIT_POPUP, POPUP_TO_CONTENT, POPUP_BY_ITEM)};
|
|
AutosaveRestore autosaveRestore;
|
|
|
|
public:
|
|
bool is_canvas_focused_get() const;
|
|
void tick(Manager&, Settings&, float);
|
|
void update(Taskbar&, Documents&, Manager&, Settings&, Resources&, Dialog&, Clipboard&);
|
|
};
|
|
}
|