yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
tile16_selector_panel.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_OVERWORLD_PANELS_TILE16_SELECTOR_PANEL_H
2#define YAZE_APP_EDITOR_OVERWORLD_PANELS_TILE16_SELECTOR_PANEL_H
3
6
7namespace yaze {
8namespace editor {
9
10class OverworldEditor;
11
20 public:
21 explicit Tile16SelectorPanel(OverworldEditor* editor) : editor_(editor) {}
22
23 // EditorPanel interface
24 std::string GetId() const override { return "overworld.tile16_selector"; }
25 std::string GetDisplayName() const override { return "Tile16 Selector"; }
26 std::string GetIcon() const override { return ICON_MD_GRID_ON; }
27 std::string GetEditorCategory() const override { return "Overworld"; }
28 float GetPreferredWidth() const override {
29 // 8 tiles × 16px × 2.0 scale + padding = 276px
30 return 8 * 16 * 2.0f + 20.0f;
31 }
32 bool IsVisibleByDefault() const override { return true; }
33 void Draw(bool* p_open) override;
34
35 private:
37};
38
39} // namespace editor
40} // namespace yaze
41
42#endif // YAZE_APP_EDITOR_OVERWORLD_PANELS_TILE16_SELECTOR_PANEL_H
Base interface for all logical panel components.
Main UI class for editing overworld maps in A Link to the Past.
Displays the Tile16 palette for painting tiles on the overworld.
std::string GetIcon() const override
Material Design icon for this panel.
bool IsVisibleByDefault() const override
Whether this panel should be visible by default.
float GetPreferredWidth() const override
Get preferred width for this panel (optional)
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
Tile16SelectorPanel(OverworldEditor *editor)
std::string GetEditorCategory() const override
Editor category this panel belongs to.
std::string GetId() const override
Unique identifier for this panel.
void Draw(bool *p_open) override
Draw the panel content.
#define ICON_MD_GRID_ON
Definition icons.h:896