yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
palette_editor_content.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_DUNGEON_INSPECTORS_PALETTE_EDITOR_CONTENT_H_
2#define YAZE_APP_EDITOR_DUNGEON_INSPECTORS_PALETTE_EDITOR_CONTENT_H_
3
4#include <string>
5
9
10namespace yaze {
11namespace editor {
12
24 public:
27
28 // ==========================================================================
29 // WindowContent 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 float GetPreferredWidth() const override { return 460.0f; }
38
39 // ==========================================================================
40 // WindowContent Drawing
41 // ==========================================================================
42
43 void Draw(bool* p_open) override {
44 if (!palette_editor_) return;
46 }
47
48 // ==========================================================================
49 // Panel-Specific Methods
50 // ==========================================================================
51
53
58 void SetCurrentRoomPalette(int palette_id) {
59 if (palette_editor_) {
61 }
62 }
63
64 private:
66};
67
68} // namespace editor
69} // namespace yaze
70
71#endif // YAZE_APP_EDITOR_DUNGEON_INSPECTORS_PALETTE_EDITOR_CONTENT_H_
WindowContent wrapper for PaletteEditorWidget in dungeon context.
void SetCurrentRoomPalette(int palette_id)
Set the current palette ID based on the active room.
void Draw(bool *p_open) override
Draw the panel content.
PaletteEditorContent(gui::PaletteEditorWidget *palette_editor)
gui::PaletteEditorWidget * palette_editor() const
int GetPriority() const override
Get display priority for menu ordering.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
float GetPreferredWidth() const override
Get preferred width for this panel (optional)
std::string GetId() const override
Unique identifier for this panel.
gui::PaletteEditorWidget * palette_editor_
std::string GetEditorCategory() const override
Editor category this panel belongs to.
std::string GetIcon() const override
Material Design icon for this panel.
Base interface for all logical window content components.
#define ICON_MD_PALETTE
Definition icons.h:1370