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
10
11namespace yaze {
12namespace editor {
13
25 public:
28
29 // ==========================================================================
30 // WindowContent Identity
31 // ==========================================================================
32
33 std::string GetId() const override { return "dungeon.palette_editor"; }
34 std::string GetDisplayName() const override { return "Palette Editor"; }
35 std::string GetIcon() const override { return ICON_MD_PALETTE; }
36 std::string GetEditorCategory() const override { return "Dungeon"; }
37 int GetPriority() const override { return 70; }
38 std::string GetWorkflowGroup() const override { return "Editors"; }
39 float GetPreferredWidth() const override { return 460.0f; }
40
41 // ==========================================================================
42 // WindowContent Drawing
43 // ==========================================================================
44
45 void Draw(bool* p_open) override {
46 if (!palette_editor_)
47 return;
48 gui::AutoWidgetScope automation_scope("Dungeon/PaletteEditor");
50 }
51
52 // ==========================================================================
53 // Panel-Specific Methods
54 // ==========================================================================
55
57
62 void SetCurrentRoomPalette(int palette_id) {
63 if (palette_editor_) {
65 }
66 }
67
68 private:
70};
71
72} // namespace editor
73} // namespace yaze
74
75#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 GetWorkflowGroup() const override
Optional workflow group for hack-centric actions.
std::string GetIcon() const override
Material Design icon for this panel.
Base interface for all logical window content components.
RAII scope that enables automatic widget registration.
#define ICON_MD_PALETTE
Definition icons.h:1370
Automatic widget registration helpers for ImGui Test Engine integration.