yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
overworld_canvas_panel.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_OVERWORLD_PANELS_OVERWORLD_CANVAS_PANEL_H
2#define YAZE_APP_EDITOR_OVERWORLD_PANELS_OVERWORLD_CANVAS_PANEL_H
3
6
7namespace yaze {
8namespace editor {
9
10class OverworldEditor;
11
19 public:
20 explicit OverworldCanvasPanel(OverworldEditor* editor) : editor_(editor) {}
21
22 // EditorPanel interface
23 std::string GetId() const override { return "overworld.canvas"; }
24 std::string GetDisplayName() const override { return "Overworld Canvas"; }
25 std::string GetIcon() const override { return ICON_MD_MAP; }
26 std::string GetEditorCategory() const override { return "Overworld"; }
27 std::string GetShortcutHint() const override { return "Ctrl+Shift+O"; }
28 int GetPriority() const override { return 5; } // Show first
29 bool IsVisibleByDefault() const override { return true; }
30
31 void Draw(bool* p_open) override;
32
33 private:
35};
36
37} // namespace editor
38} // namespace yaze
39
40#endif // YAZE_APP_EDITOR_OVERWORLD_PANELS_OVERWORLD_CANVAS_PANEL_H
Base interface for all logical panel components.
The main canvas panel for the Overworld Editor.
bool IsVisibleByDefault() const override
Whether this panel should be visible by default.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
int GetPriority() const override
Get display priority for menu ordering.
std::string GetIcon() const override
Material Design icon for this panel.
std::string GetShortcutHint() const override
Get keyboard shortcut hint for display.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
OverworldCanvasPanel(OverworldEditor *editor)
std::string GetId() const override
Unique identifier for this panel.
void Draw(bool *p_open) override
Draw the panel content.
Main UI class for editing overworld maps in A Link to the Past.
#define ICON_MD_MAP
Definition icons.h:1173