yaze
0.3.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
tile8_selector_view.h
Go to the documentation of this file.
1
#ifndef YAZE_APP_EDITOR_OVERWORLD_UI_TILES_TILE8_SELECTOR_VIEW_H
2
#define YAZE_APP_EDITOR_OVERWORLD_UI_TILES_TILE8_SELECTOR_VIEW_H
3
4
#include "
app/editor/system/workspace/editor_panel.h
"
5
#include "
app/gui/core/icons.h
"
6
7
namespace
yaze::editor
{
8
16
class
Tile8SelectorView
:
public
WindowContent
{
17
public
:
18
Tile8SelectorView
() =
default
;
19
20
// WindowContent 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
32
}
// namespace yaze::editor
33
34
#endif
// YAZE_APP_EDITOR_OVERWORLD_UI_TILES_TILE8_SELECTOR_VIEW_H
yaze::editor::Tile8SelectorView
Low-level 8x8 tile editing interface.
Definition
tile8_selector_view.h:16
yaze::editor::Tile8SelectorView::GetEditorCategory
std::string GetEditorCategory() const override
Editor category this panel belongs to.
Definition
tile8_selector_view.h:24
yaze::editor::Tile8SelectorView::Tile8SelectorView
Tile8SelectorView()=default
yaze::editor::Tile8SelectorView::GetId
std::string GetId() const override
Unique identifier for this panel.
Definition
tile8_selector_view.h:21
yaze::editor::Tile8SelectorView::Draw
void Draw(bool *p_open) override
Draw the panel content.
Definition
tile8_selector_view.cc:8
yaze::editor::Tile8SelectorView::GetPreferredWidth
float GetPreferredWidth() const override
Get preferred width for this panel (optional)
Definition
tile8_selector_view.h:25
yaze::editor::Tile8SelectorView::GetIcon
std::string GetIcon() const override
Material Design icon for this panel.
Definition
tile8_selector_view.h:23
yaze::editor::Tile8SelectorView::GetDisplayName
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
Definition
tile8_selector_view.h:22
yaze::editor::WindowContent
Base interface for all logical window content components.
Definition
editor_panel.h:89
icons.h
ICON_MD_GRID_3X3
#define ICON_MD_GRID_3X3
Definition
icons.h:892
yaze::editor
Editors are the view controllers for the application.
Definition
patch_export_usage.cc:9
editor_panel.h
src
app
editor
overworld
ui
tiles
tile8_selector_view.h
Generated by
1.10.0