yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
tile8_selector_panel.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_OVERWORLD_PANELS_TILE8_SELECTOR_PANEL_H
2#define YAZE_APP_EDITOR_OVERWORLD_PANELS_TILE8_SELECTOR_PANEL_H
3
6
7namespace yaze {
8namespace editor {
9
10class OverworldEditor;
11
17 public:
18 explicit Tile8SelectorPanel(OverworldEditor* editor) : editor_(editor) {}
19
20 // EditorPanel interface
21 std::string GetId() const override { return "overworld.tile8_selector"; }
22 std::string GetDisplayName() const override { return "Tile8 Selector"; }
23 std::string GetIcon() const override { return ICON_MD_GRID_3X3; }
24 std::string GetEditorCategory() const override { return "Overworld"; }
25 float GetPreferredWidth() const override {
26 // Graphics bin width (256px) + padding = 276px
27 return 256.0f + 20.0f;
28 }
29 void Draw(bool* p_open) override;
30
31 private:
33};
34
35} // namespace editor
36} // namespace yaze
37
38#endif // YAZE_APP_EDITOR_OVERWORLD_PANELS_TILE8_SELECTOR_PANEL_H
Base interface for all logical panel components.
Main UI class for editing overworld maps in A Link to the Past.
Low-level 8x8 tile editing interface.
std::string GetId() const override
Unique identifier for this panel.
std::string GetIcon() const override
Material Design icon 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.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
Tile8SelectorPanel(OverworldEditor *editor)
float GetPreferredWidth() const override
Get preferred width for this panel (optional)
#define ICON_MD_GRID_3X3
Definition icons.h:892