yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
map_properties_view.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_OVERWORLD_UI_PROPERTIES_MAP_PROPERTIES_VIEW_H
2#define YAZE_APP_EDITOR_OVERWORLD_UI_PROPERTIES_MAP_PROPERTIES_VIEW_H
3
6
7namespace yaze::editor {
8
20 public:
21 MapPropertiesView() = default;
22
23 // WindowContent interface
24 std::string GetId() const override { return "overworld.properties"; }
25 std::string GetDisplayName() const override { return "Map Properties"; }
26 std::string GetIcon() const override { return ICON_MD_TUNE; }
27 std::string GetEditorCategory() const override { return "Overworld"; }
28 float GetPreferredWidth() const override {
29 // Property rows with labels + controls are cramped below ~340px.
30 return 360.0f;
31 }
32 bool PreferAutoHideTabBar() const override { return true; }
33 void Draw(bool* p_open) override;
34};
35
36} // namespace yaze::editor
37
38#endif // YAZE_APP_EDITOR_OVERWORLD_UI_PROPERTIES_MAP_PROPERTIES_VIEW_H
Displays and edits properties for the current overworld map.
void Draw(bool *p_open) override
Draw the panel content.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
std::string GetId() const override
Unique identifier for this panel.
bool PreferAutoHideTabBar() const override
Whether the dock node hosting this panel should auto-hide its tab bar.
float GetPreferredWidth() const override
Get preferred width for this panel (optional)
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.
Base interface for all logical window content components.
#define ICON_MD_TUNE
Definition icons.h:2022
Editors are the view controllers for the application.