yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
graphics_editor_panels.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_GRAPHICS_PANELS_GRAPHICS_EDITOR_PANELS_H_
2#define YAZE_APP_EDITOR_GRAPHICS_PANELS_GRAPHICS_EDITOR_PANELS_H_
3
4#include <functional>
5#include <string>
6
9
10namespace yaze {
11namespace editor {
12
13// =============================================================================
14// EditorPanel wrappers for GraphicsEditor panels
15// =============================================================================
16
21 public:
22 using DrawCallback = std::function<void()>;
23
25 : draw_callback_(std::move(draw_callback)) {}
26
27 std::string GetId() const override { return "graphics.sheet_browser_v2"; }
28 std::string GetDisplayName() const override { return "Sheet Browser"; }
29 std::string GetIcon() const override { return ICON_MD_VIEW_LIST; }
30 std::string GetEditorCategory() const override { return "Graphics"; }
31 int GetPriority() const override { return 10; }
32 bool IsVisibleByDefault() const override { return true; }
33 float GetPreferredWidth() const override { return 350.0f; }
34
35 void Draw(bool* p_open) override {
36 if (draw_callback_) {
38 }
39 }
40
41 private:
43};
44
49 public:
50 using DrawCallback = std::function<void()>;
51
52 explicit GraphicsPixelEditorPanel(DrawCallback draw_callback)
53 : draw_callback_(std::move(draw_callback)) {}
54
55 std::string GetId() const override { return "graphics.pixel_editor"; }
56 std::string GetDisplayName() const override { return "Pixel Editor"; }
57 std::string GetIcon() const override { return ICON_MD_DRAW; }
58 std::string GetEditorCategory() const override { return "Graphics"; }
59 int GetPriority() const override { return 20; }
60 bool IsVisibleByDefault() const override { return true; }
61 float GetPreferredWidth() const override { return 800.0f; }
62
63 void Draw(bool* p_open) override {
64 if (draw_callback_) {
66 }
67 }
68
69 private:
71};
72
77 public:
78 using DrawCallback = std::function<void()>;
79
81 : draw_callback_(std::move(draw_callback)) {}
82
83 std::string GetId() const override { return "graphics.palette_controls"; }
84 std::string GetDisplayName() const override { return "Palette Controls"; }
85 std::string GetIcon() const override { return ICON_MD_PALETTE; }
86 std::string GetEditorCategory() const override { return "Graphics"; }
87 int GetPriority() const override { return 30; }
88 float GetPreferredWidth() const override { return 300.0f; }
89
90 void Draw(bool* p_open) override {
91 if (draw_callback_) {
93 }
94 }
95
96 private:
98};
99
104 public:
105 using DrawCallback = std::function<void()>;
106
107 explicit GraphicsLinkSpritePanel(DrawCallback draw_callback)
108 : draw_callback_(std::move(draw_callback)) {}
109
110 std::string GetId() const override { return "graphics.link_sprite_editor"; }
111 std::string GetDisplayName() const override { return "Link Sprite Editor"; }
112 std::string GetIcon() const override { return ICON_MD_PERSON; }
113 std::string GetEditorCategory() const override { return "Graphics"; }
114 int GetPriority() const override { return 35; }
115 float GetPreferredWidth() const override { return 600.0f; }
116
117 void Draw(bool* p_open) override {
118 if (draw_callback_) {
120 }
121 }
122
123 private:
125};
126
131 public:
132 using DrawCallback = std::function<void()>;
133
134 explicit GraphicsPolyhedralPanel(DrawCallback draw_callback)
135 : draw_callback_(std::move(draw_callback)) {}
136
137 std::string GetId() const override { return "graphics.polyhedral_editor"; }
138 std::string GetDisplayName() const override { return "3D Objects"; }
139 std::string GetIcon() const override { return ICON_MD_VIEW_IN_AR; }
140 std::string GetEditorCategory() const override { return "Graphics"; }
141 int GetPriority() const override { return 38; }
142 float GetPreferredWidth() const override { return 600.0f; }
143
144 void Draw(bool* p_open) override {
145 if (draw_callback_) {
147 }
148 }
149
150 private:
152};
153
158 public:
159 using DrawCallback = std::function<void()>;
160
161 explicit GraphicsGfxGroupPanel(DrawCallback draw_callback)
162 : draw_callback_(std::move(draw_callback)) {}
163
164 std::string GetId() const override { return "graphics.gfx_group_editor"; }
165 std::string GetDisplayName() const override { return "Graphics Groups"; }
166 std::string GetIcon() const override { return ICON_MD_VIEW_MODULE; }
167 std::string GetEditorCategory() const override { return "Graphics"; }
168 int GetPriority() const override { return 39; }
169 float GetPreferredWidth() const override { return 500.0f; }
170
171 void Draw(bool* p_open) override {
172 if (draw_callback_) {
174 }
175 }
176
177 private:
179};
180
185 public:
186 using DrawCallback = std::function<void()>;
187
189 : draw_callback_(std::move(draw_callback)) {}
190
191 std::string GetId() const override { return "graphics.prototype_viewer"; }
192 std::string GetDisplayName() const override { return "Prototype Viewer"; }
193 std::string GetIcon() const override { return ICON_MD_CONSTRUCTION; }
194 std::string GetEditorCategory() const override { return "Graphics"; }
195 int GetPriority() const override { return 50; }
196 float GetPreferredWidth() const override { return 800.0f; }
197
198 void Draw(bool* p_open) override {
199 if (draw_callback_) {
201 }
202 }
203
204 private:
206};
207
212 public:
213 using DrawCallback = std::function<void()>;
214
215 explicit GraphicsPalettesetPanel(DrawCallback draw_callback)
216 : draw_callback_(std::move(draw_callback)) {}
217
218 std::string GetId() const override { return "graphics.paletteset_editor"; }
219 std::string GetDisplayName() const override { return "Palettesets"; }
220 std::string GetIcon() const override { return ICON_MD_COLOR_LENS; }
221 std::string GetEditorCategory() const override { return "Graphics"; }
222 int GetPriority() const override { return 45; }
223 float GetPreferredWidth() const override { return 500.0f; }
224
225 void Draw(bool* p_open) override {
226 if (draw_callback_) {
228 }
229 }
230
231 private:
233};
234
235} // namespace editor
236} // namespace yaze
237
238#endif // YAZE_APP_EDITOR_GRAPHICS_PANELS_GRAPHICS_EDITOR_PANELS_H_
239
Base interface for all logical panel components.
Graphics group editor panel for managing GFX groups.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
float GetPreferredWidth() const override
Get preferred width for this panel (optional)
GraphicsGfxGroupPanel(DrawCallback draw_callback)
void Draw(bool *p_open) override
Draw the panel content.
int GetPriority() const override
Get display priority for menu ordering.
std::string GetId() const override
Unique identifier for this panel.
std::string GetIcon() const override
Material Design icon for this panel.
Link sprite editor panel for editing Link's graphics.
std::string GetIcon() const override
Material Design icon for this panel.
void Draw(bool *p_open) override
Draw the panel content.
std::string GetId() const override
Unique identifier for this panel.
float GetPreferredWidth() const override
Get preferred width for this panel (optional)
GraphicsLinkSpritePanel(DrawCallback draw_callback)
std::string GetEditorCategory() const override
Editor category this panel belongs to.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
int GetPriority() const override
Get display priority for menu ordering.
Palette controls panel for managing graphics palettes.
float GetPreferredWidth() const override
Get preferred width for this panel (optional)
std::string GetId() const override
Unique identifier for this panel.
void Draw(bool *p_open) override
Draw the panel content.
GraphicsPaletteControlsPanel(DrawCallback draw_callback)
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
std::string GetIcon() const override
Material Design icon for this panel.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
int GetPriority() const override
Get display priority for menu ordering.
Paletteset editor panel for managing dungeon palette associations.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
int GetPriority() const override
Get display priority for menu ordering.
GraphicsPalettesetPanel(DrawCallback draw_callback)
float GetPreferredWidth() const override
Get preferred width for this panel (optional)
void Draw(bool *p_open) override
Draw the panel content.
std::string GetId() const override
Unique identifier for this panel.
std::string GetIcon() const override
Material Design icon for this panel.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
Main pixel editing panel for graphics sheets.
void Draw(bool *p_open) override
Draw the panel content.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
GraphicsPixelEditorPanel(DrawCallback draw_callback)
std::string GetId() const override
Unique identifier for this panel.
int GetPriority() const override
Get display priority for menu ordering.
float GetPreferredWidth() const override
Get preferred width for this panel (optional)
std::string GetIcon() const override
Material Design icon for this panel.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
bool IsVisibleByDefault() const override
Whether this panel should be visible by default.
3D polyhedral object editor panel
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
std::string GetId() const override
Unique identifier for this panel.
float GetPreferredWidth() const override
Get preferred width for this panel (optional)
void Draw(bool *p_open) override
Draw the panel content.
int GetPriority() const override
Get display priority for menu ordering.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
std::string GetIcon() const override
Material Design icon for this panel.
GraphicsPolyhedralPanel(DrawCallback draw_callback)
Prototype graphics viewer for Super Donkey and dev format imports.
std::string GetIcon() const override
Material Design icon for this panel.
GraphicsPrototypeViewerPanel(DrawCallback draw_callback)
int GetPriority() const override
Get display priority for menu ordering.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
void Draw(bool *p_open) override
Draw the panel content.
float GetPreferredWidth() const override
Get preferred width for this panel (optional)
std::string GetId() const override
Unique identifier for this panel.
Sheet browser panel for navigating graphics sheets.
float GetPreferredWidth() const override
Get preferred width for this panel (optional)
void Draw(bool *p_open) override
Draw the panel content.
bool IsVisibleByDefault() const override
Whether this panel should be visible by default.
GraphicsSheetBrowserPanel(DrawCallback draw_callback)
std::string GetIcon() const override
Material Design icon for this panel.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
int GetPriority() const override
Get display priority for menu ordering.
std::string GetId() const override
Unique identifier for this panel.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
#define ICON_MD_VIEW_MODULE
Definition icons.h:2093
#define ICON_MD_VIEW_LIST
Definition icons.h:2092
#define ICON_MD_CONSTRUCTION
Definition icons.h:458
#define ICON_MD_DRAW
Definition icons.h:625
#define ICON_MD_VIEW_IN_AR
Definition icons.h:2090
#define ICON_MD_PERSON
Definition icons.h:1415
#define ICON_MD_PALETTE
Definition icons.h:1370
#define ICON_MD_COLOR_LENS
Definition icons.h:440