1#ifndef YAZE_APP_EDITOR_SPRITE_EDITOR_H
2#define YAZE_APP_EDITOR_SPRITE_EDITOR_H
4#include "absl/status/status.h"
15 ImGuiTabItemFlags_Trailing | ImGuiTabItemFlags_NoTooltip;
18 ImGuiTabBarFlags_AutoSelectNewTabs | ImGuiTabBarFlags_Reorderable |
19 ImGuiTabBarFlags_FittingPolicyResizeDown |
20 ImGuiTabBarFlags_TabListPopupButton;
23 ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable |
24 ImGuiTableFlags_Hideable | ImGuiTableFlags_BordersOuter |
25 ImGuiTableFlags_BordersV;
43 absl::Status
Update()
override;
45 absl::Status
Undo()
override {
return absl::UnimplementedError(
"Undo"); }
46 absl::Status
Redo()
override {
return absl::UnimplementedError(
"Redo"); }
47 absl::Status
Cut()
override {
return absl::UnimplementedError(
"Cut"); }
48 absl::Status
Copy()
override {
return absl::UnimplementedError(
"Copy"); }
49 absl::Status
Paste()
override {
return absl::UnimplementedError(
"Paste"); }
50 absl::Status
Find()
override {
return absl::UnimplementedError(
"Find"); }
101 "SpriteCanvas", ImVec2(0x200, 0x200),
105 "GraphicsSheetCanvas", ImVec2(0x80 * 2 + 2, 0x40 * 8 + 2),
A class to hold a shared pointer to a Rom object.
Interface for editor classes.
Allows the user to edit sprites.
absl::Status Find() override
gui::Canvas sprite_canvas_
void DrawSpritesList()
Draws the sprites list.
void DrawAnimationFrames()
Draws the animation frames manager.
absl::Status Paste() override
gui::Canvas graphics_sheet_canvas_
void DrawCustomSpritesMetadata()
absl::Status Undo() override
void DrawVanillaSpriteEditor()
void DrawSpriteCanvas()
Draws the sprite canvas.
absl::Status Copy() override
ImVector< int > active_sprites_
std::vector< zsprite::ZSprite > custom_sprites_
void DrawCurrentSheets()
Draws the current sheets.
absl::Status Update() override
Updates the sprite editor.
uint8_t current_sheets_[8]
absl::Status Redo() override
absl::Status Cut() override
Represents a bitmap image.
Represents a canvas for drawing and manipulating graphics.
constexpr ImGuiTabBarFlags kSpriteTabBarFlags
constexpr ImGuiTabItemFlags kSpriteTabFlags
constexpr ImGuiTableFlags kSpriteTableFlags