yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
dungeon_palette_editor_panel.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_DUNGEON_PANELS_DUNGEON_PALETTE_EDITOR_PANEL_H_
2#define YAZE_APP_EDITOR_DUNGEON_PANELS_DUNGEON_PALETTE_EDITOR_PANEL_H_
3
4#include <string>
5
9
10namespace yaze {
11namespace editor {
12
24 public:
27
28 // ==========================================================================
29 // EditorPanel Identity
30 // ==========================================================================
31
32 std::string GetId() const override { return "dungeon.palette_editor"; }
33 std::string GetDisplayName() const override { return "Palette Editor"; }
34 std::string GetIcon() const override { return ICON_MD_PALETTE; }
35 std::string GetEditorCategory() const override { return "Dungeon"; }
36 int GetPriority() const override { return 70; }
37
38 // ==========================================================================
39 // EditorPanel Drawing
40 // ==========================================================================
41
42 void Draw(bool* p_open) override {
43 if (!palette_editor_) return;
45 }
46
47 // ==========================================================================
48 // Panel-Specific Methods
49 // ==========================================================================
50
52
57 void SetCurrentRoomPalette(int palette_id) {
58 if (palette_editor_) {
60 }
61 }
62
63 private:
65};
66
67} // namespace editor
68} // namespace yaze
69
70#endif // YAZE_APP_EDITOR_DUNGEON_PANELS_DUNGEON_PALETTE_EDITOR_PANEL_H_
EditorPanel wrapper for PaletteEditorWidget in dungeon context.
std::string GetIcon() const override
Material Design icon for this panel.
int GetPriority() const override
Get display priority for menu ordering.
gui::PaletteEditorWidget * palette_editor() const
DungeonPaletteEditorPanel(gui::PaletteEditorWidget *palette_editor)
std::string GetEditorCategory() const override
Editor category this panel belongs to.
std::string GetId() const override
Unique identifier for this panel.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
void Draw(bool *p_open) override
Draw the panel content.
void SetCurrentRoomPalette(int palette_id)
Set the current palette ID based on the active room.
Base interface for all logical panel components.
#define ICON_MD_PALETTE
Definition icons.h:1370