yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
screen_editor_panels.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_GRAPHICS_PANELS_SCREEN_EDITOR_PANELS_H_
2#define YAZE_APP_EDITOR_GRAPHICS_PANELS_SCREEN_EDITOR_PANELS_H_
3
4#include <functional>
5#include <string>
6
9
10namespace yaze {
11namespace editor {
12
13// =============================================================================
14// EditorPanel wrappers for ScreenEditor panels
15// =============================================================================
16
21 public:
22 using DrawCallback = std::function<void()>;
23
24 explicit DungeonMapsPanel(DrawCallback draw_callback)
25 : draw_callback_(std::move(draw_callback)) {}
26
27 std::string GetId() const override { return "screen.dungeon_maps"; }
28 std::string GetDisplayName() const override { return "Dungeon Maps"; }
29 std::string GetIcon() const override { return ICON_MD_MAP; }
30 std::string GetEditorCategory() const override { return "Screen"; }
31 int GetPriority() const override { return 10; }
32
33 void Draw(bool* p_open) override {
34 if (draw_callback_) {
36 }
37 }
38
39 private:
41};
42
47 public:
48 using DrawCallback = std::function<void()>;
49
50 explicit InventoryMenuPanel(DrawCallback draw_callback)
51 : draw_callback_(std::move(draw_callback)) {}
52
53 std::string GetId() const override { return "screen.inventory_menu"; }
54 std::string GetDisplayName() const override { return "Inventory Menu"; }
55 std::string GetIcon() const override { return ICON_MD_INVENTORY; }
56 std::string GetEditorCategory() const override { return "Screen"; }
57 int GetPriority() const override { return 20; }
58
59 void Draw(bool* p_open) override {
60 if (draw_callback_) {
62 }
63 }
64
65 private:
67};
68
73 public:
74 using DrawCallback = std::function<void()>;
75
76 explicit OverworldMapScreenPanel(DrawCallback draw_callback)
77 : draw_callback_(std::move(draw_callback)) {}
78
79 std::string GetId() const override { return "screen.overworld_map"; }
80 std::string GetDisplayName() const override { return "Overworld Map"; }
81 std::string GetIcon() const override { return ICON_MD_PUBLIC; }
82 std::string GetEditorCategory() const override { return "Screen"; }
83 int GetPriority() const override { return 30; }
84
85 void Draw(bool* p_open) override {
86 if (draw_callback_) {
88 }
89 }
90
91 private:
93};
94
99 public:
100 using DrawCallback = std::function<void()>;
101
102 explicit TitleScreenPanel(DrawCallback draw_callback)
103 : draw_callback_(std::move(draw_callback)) {}
104
105 std::string GetId() const override { return "screen.title_screen"; }
106 std::string GetDisplayName() const override { return "Title Screen"; }
107 std::string GetIcon() const override { return ICON_MD_TITLE; }
108 std::string GetEditorCategory() const override { return "Screen"; }
109 int GetPriority() const override { return 40; }
110
111 void Draw(bool* p_open) override {
112 if (draw_callback_) {
114 }
115 }
116
117 private:
119};
120
125 public:
126 using DrawCallback = std::function<void()>;
127
128 explicit NamingScreenPanel(DrawCallback draw_callback)
129 : draw_callback_(std::move(draw_callback)) {}
130
131 std::string GetId() const override { return "screen.naming_screen"; }
132 std::string GetDisplayName() const override { return "Naming Screen"; }
133 std::string GetIcon() const override { return ICON_MD_EDIT; }
134 std::string GetEditorCategory() const override { return "Screen"; }
135 int GetPriority() const override { return 50; }
136
137 void Draw(bool* p_open) override {
138 if (draw_callback_) {
140 }
141 }
142
143 private:
145};
146
147} // namespace editor
148} // namespace yaze
149
150#endif // YAZE_APP_EDITOR_GRAPHICS_PANELS_SCREEN_EDITOR_PANELS_H_
EditorPanel for Dungeon Maps Editor.
std::function< void()> DrawCallback
DungeonMapsPanel(DrawCallback draw_callback)
std::string GetId() const override
Unique identifier for this panel.
void Draw(bool *p_open) override
Draw the panel content.
int GetPriority() const override
Get display priority for menu ordering.
std::string GetIcon() const override
Material Design icon for this panel.
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.
Base interface for all logical panel components.
EditorPanel for Inventory Menu Editor.
int GetPriority() const override
Get display priority for menu ordering.
std::string GetIcon() const override
Material Design icon for this panel.
InventoryMenuPanel(DrawCallback draw_callback)
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
std::string GetId() const override
Unique identifier for this panel.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
void Draw(bool *p_open) override
Draw the panel content.
EditorPanel for Naming Screen Editor.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
int GetPriority() const override
Get display priority for menu ordering.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
NamingScreenPanel(DrawCallback draw_callback)
std::string GetId() const override
Unique identifier for this panel.
std::string GetIcon() const override
Material Design icon for this panel.
void Draw(bool *p_open) override
Draw the panel content.
EditorPanel for Overworld Map Screen Editor.
std::string GetId() const override
Unique identifier for this panel.
OverworldMapScreenPanel(DrawCallback draw_callback)
std::string GetEditorCategory() const override
Editor category this panel belongs to.
void Draw(bool *p_open) override
Draw the panel content.
int GetPriority() const override
Get display priority for menu ordering.
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.
EditorPanel for Title Screen Editor.
int GetPriority() const override
Get display priority for menu ordering.
TitleScreenPanel(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.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
void Draw(bool *p_open) override
Draw the panel content.
std::string GetId() const override
Unique identifier for this panel.
#define ICON_MD_TITLE
Definition icons.h:1990
#define ICON_MD_MAP
Definition icons.h:1173
#define ICON_MD_EDIT
Definition icons.h:645
#define ICON_MD_PUBLIC
Definition icons.h:1524
#define ICON_MD_INVENTORY
Definition icons.h:1011