yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
tile16_selector_view.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_OVERWORLD_UI_TILES_TILE16_SELECTOR_VIEW_H
2#define YAZE_APP_EDITOR_OVERWORLD_UI_TILES_TILE16_SELECTOR_VIEW_H
3
6
7namespace yaze::editor {
8
20 public:
21 Tile16SelectorView() = default;
22
23 // WindowContent interface
24 std::string GetId() const override { return "overworld.tile16_selector"; }
25 std::string GetWorkflowGroup() const override { return "Editors"; }
26 std::string GetDisplayName() const override { return "Tile16 Selector"; }
27 std::string GetIcon() const override { return ICON_MD_GRID_ON; }
28 std::string GetEditorCategory() const override { return "Overworld"; }
29 // Starting width for the right column. The grid scales with the dock
30 // after that, so this is not an exact lock.
31 float GetPreferredWidth() const override;
32 bool HasExactPreferredWidth() const override { return false; }
33 bool PreferAutoHideTabBar() const override { return true; }
34 bool IsVisibleByDefault() const override { return true; }
35 void Draw(bool* p_open) override;
36};
37
38} // namespace yaze::editor
39
40#endif // YAZE_APP_EDITOR_OVERWORLD_UI_TILES_TILE16_SELECTOR_VIEW_H
Displays the Tile16 palette for painting tiles on the overworld.
bool PreferAutoHideTabBar() const override
Whether the dock node hosting this panel should auto-hide its tab bar.
std::string GetWorkflowGroup() const override
Optional workflow group for hack-centric actions.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
std::string GetId() const override
Unique identifier for this panel.
bool IsVisibleByDefault() const override
Whether this panel should be visible by default.
std::string GetIcon() const override
Material Design icon for this panel.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
bool HasExactPreferredWidth() const override
Whether GetPreferredWidth() is an exact content width.
float GetPreferredWidth() const override
Get preferred width for this panel (optional)
void Draw(bool *p_open) override
Draw the panel content.
Base interface for all logical window content components.
#define ICON_MD_GRID_ON
Definition icons.h:896
Editors are the view controllers for the application.