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 float GetPreferredWidth() const override { return 460.0f; }
39
40 // ==========================================================================
41 // WindowContent Drawing
42 // ==========================================================================
43
44 void Draw(bool* p_open) override {
45 if (!palette_editor_)
46 return;
47 gui::AutoWidgetScope automation_scope("Dungeon/PaletteEditor");
49 }
50
51 // ==========================================================================
52 // Panel-Specific Methods
53 // ==========================================================================
54
56
61 void SetCurrentRoomPalette(int palette_id) {
62 if (palette_editor_) {
64 }
65 }
66
67 private:
69};
70
71} // namespace editor
72} // namespace yaze
73
74#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.
RAII scope that enables automatic widget registration.
#define ICON_MD_PALETTE
Definition icons.h:1370
Automatic widget registration helpers for ImGui Test Engine integration.