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// WindowContent 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"; }
34 int GetPriority() const override { return 10; }
35 bool IsVisibleByDefault() const override { return true; }
36 float GetPreferredWidth() const override { return 350.0f; }
37
38 void Draw(bool* p_open) override {
39 if (draw_callback_) {
41 }
42 }
43
44 private:
46};
47
52 public:
53 using DrawCallback = std::function<void()>;
54
55 explicit GraphicsPixelEditorPanel(DrawCallback draw_callback)
56 : draw_callback_(std::move(draw_callback)) {}
57
58 std::string GetId() const override { return "graphics.pixel_editor"; }
59 std::string GetDisplayName() const override { return "Pixel Editor"; }
60 std::string GetIcon() const override { return ICON_MD_DRAW; }
61 std::string GetEditorCategory() const override { return "Graphics"; }
65 int GetPriority() const override { return 20; }
66 bool IsVisibleByDefault() const override { return true; }
67 float GetPreferredWidth() const override { return 800.0f; }
68
69 void Draw(bool* p_open) override {
70 if (draw_callback_) {
72 }
73 }
74
75 private:
77};
78
83 public:
84 using DrawCallback = std::function<void()>;
85
87 : draw_callback_(std::move(draw_callback)) {}
88
89 std::string GetId() const override { return "graphics.palette_controls"; }
90 std::string GetDisplayName() const override { return "Palette Controls"; }
91 std::string GetIcon() const override { return ICON_MD_PALETTE; }
92 std::string GetEditorCategory() const override { return "Graphics"; }
96 int GetPriority() const override { return 30; }
97 float GetPreferredWidth() const override { return 300.0f; }
98
99 void Draw(bool* p_open) override {
100 if (draw_callback_) {
102 }
103 }
104
105 private:
107};
108
113 public:
114 using DrawCallback = std::function<void()>;
115
116 explicit GraphicsLinkSpritePanel(DrawCallback draw_callback)
117 : draw_callback_(std::move(draw_callback)) {}
118
119 std::string GetId() const override { return "graphics.link_sprite_editor"; }
120 std::string GetDisplayName() const override { return "Link Sprite Editor"; }
121 std::string GetIcon() const override { return ICON_MD_PERSON; }
122 std::string GetEditorCategory() const override { return "Graphics"; }
126 int GetPriority() const override { return 35; }
127 float GetPreferredWidth() const override { return 600.0f; }
128
129 void Draw(bool* p_open) override {
130 if (draw_callback_) {
132 }
133 }
134
135 private:
137};
138
143 public:
144 using DrawCallback = std::function<void()>;
145
146 explicit GraphicsPolyhedralPanel(DrawCallback draw_callback)
147 : draw_callback_(std::move(draw_callback)) {}
148
149 std::string GetId() const override { return "graphics.polyhedral"; }
150 std::string GetDisplayName() const override { return "Polyhedral Editor"; }
151 std::string GetIcon() const override { return ICON_MD_VIEW_IN_AR; }
152 std::string GetEditorCategory() const override { return "Graphics"; }
156 int GetPriority() const override { return 38; }
157 float GetPreferredWidth() const override { return 600.0f; }
158
159 void Draw(bool* p_open) override {
160 if (draw_callback_) {
162 }
163 }
164
165 private:
167};
168
173 public:
174 using DrawCallback = std::function<void()>;
175
176 explicit GraphicsGfxGroupPanel(DrawCallback draw_callback)
177 : draw_callback_(std::move(draw_callback)) {}
178
179 std::string GetId() const override { return "graphics.gfx_group_editor"; }
180 std::string GetDisplayName() const override { return "Graphics Groups"; }
181 std::string GetIcon() const override { return ICON_MD_VIEW_MODULE; }
182 std::string GetEditorCategory() const override { return "Graphics"; }
186 int GetPriority() const override { return 39; }
187 float GetPreferredWidth() const override { return 500.0f; }
188
189 void Draw(bool* p_open) override {
190 if (draw_callback_) {
192 }
193 }
194
195 private:
197};
198
203 public:
204 using DrawCallback = std::function<void()>;
205
207 : draw_callback_(std::move(draw_callback)) {}
208
209 std::string GetId() const override { return "graphics.prototype_viewer"; }
210 std::string GetDisplayName() const override { return "Prototype Research"; }
211 std::string GetIcon() const override { return ICON_MD_CONSTRUCTION; }
212 std::string GetEditorCategory() const override { return "Graphics"; }
215 "Welcome screen Prototype Research action");
216 }
217 int GetPriority() const override { return 50; }
218 float GetPreferredWidth() const override { return 800.0f; }
219
220 void Draw(bool* p_open) override {
221 if (draw_callback_) {
223 }
224 }
225
226 private:
228};
229
234 public:
235 using DrawCallback = std::function<void()>;
236
237 explicit GraphicsPalettesetPanel(DrawCallback draw_callback)
238 : draw_callback_(std::move(draw_callback)) {}
239
240 std::string GetId() const override { return "graphics.paletteset_editor"; }
241 std::string GetDisplayName() const override { return "Palettesets"; }
242 std::string GetIcon() const override { return ICON_MD_COLOR_LENS; }
243 std::string GetEditorCategory() const override { return "Graphics"; }
247 int GetPriority() const override { return 45; }
248 float GetPreferredWidth() const override { return 500.0f; }
249
250 void Draw(bool* p_open) override {
251 if (draw_callback_) {
253 }
254 }
255
256 private:
258};
259
265 public:
266 using DrawCallback = std::function<void()>;
267
269 : draw_callback_(std::move(draw_callback)) {}
270
271 std::string GetId() const override { return "graphics.usage_preview"; }
272 std::string GetDisplayName() const override { return "Usage Preview"; }
273 std::string GetIcon() const override { return ICON_MD_PREVIEW; }
274 std::string GetEditorCategory() const override { return "Graphics"; }
278 int GetPriority() const override { return 25; }
279 float GetPreferredWidth() const override { return 420.0f; }
280
281 void Draw(bool* p_open) override {
282 if (draw_callback_) {
284 }
285 }
286
287 private:
289};
290
291} // namespace editor
292} // namespace yaze
293
294#endif // YAZE_APP_EDITOR_GRAPHICS_PANELS_GRAPHICS_EDITOR_PANELS_H_
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.
WindowPresentationPolicy GetPresentationPolicy() const override
How this content is hosted and advertised by workspace chrome.
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)
WindowPresentationPolicy GetPresentationPolicy() const override
How this content is hosted and advertised by workspace chrome.
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)
WindowPresentationPolicy GetPresentationPolicy() const override
How this content is hosted and advertised by workspace chrome.
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.
WindowPresentationPolicy GetPresentationPolicy() const override
How this content is hosted and advertised by workspace chrome.
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)
WindowPresentationPolicy GetPresentationPolicy() const override
How this content is hosted and advertised by workspace chrome.
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
WindowPresentationPolicy GetPresentationPolicy() const override
How this content is hosted and advertised by workspace chrome.
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)
WindowPresentationPolicy GetPresentationPolicy() const override
How this content is hosted and advertised by workspace chrome.
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.
WindowPresentationPolicy GetPresentationPolicy() const override
How this content is hosted and advertised by workspace chrome.
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.
Live preview of how the game uses the current sheet (room, sprite animation, tile16s),...
void Draw(bool *p_open) override
Draw the panel content.
std::string GetId() const override
Unique identifier for this panel.
WindowPresentationPolicy GetPresentationPolicy() const override
How this content is hosted and advertised by workspace chrome.
float GetPreferredWidth() const override
Get preferred width for this panel (optional)
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.
GraphicsUsagePreviewPanel(DrawCallback draw_callback)
std::string GetIcon() const override
Material Design icon for this panel.
Base interface for all logical window content components.
#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_PREVIEW
Definition icons.h:1512
#define ICON_MD_PALETTE
Definition icons.h:1370
#define ICON_MD_COLOR_LENS
Definition icons.h:440
static WindowPresentationPolicy Diagnostic()
static WindowPresentationPolicy CoreWorkspace()
WindowPresentationPolicy WithHost(std::string host_name) const
Returns a copy that names the hosting surface.
static WindowPresentationPolicy OptionalPopOut()