yaze
0.3.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
area_graphics_panel.h
Go to the documentation of this file.
1
#ifndef YAZE_APP_EDITOR_OVERWORLD_PANELS_AREA_GRAPHICS_PANEL_H
2
#define YAZE_APP_EDITOR_OVERWORLD_PANELS_AREA_GRAPHICS_PANEL_H
3
4
#include "
app/editor/system/editor_panel.h
"
5
#include "
app/gui/core/icons.h
"
6
7
namespace
yaze::editor
{
8
19
class
AreaGraphicsPanel
:
public
EditorPanel
{
20
public
:
21
AreaGraphicsPanel
() =
default
;
22
23
// EditorPanel interface
24
std::string
GetId
()
const override
{
return
"overworld.area_graphics"
; }
25
std::string
GetDisplayName
()
const override
{
return
"Area Graphics"
; }
26
std::string
GetIcon
()
const override
{
return
ICON_MD_IMAGE
; }
27
std::string
GetEditorCategory
()
const override
{
return
"Overworld"
; }
28
float
GetPreferredWidth
()
const override
{
29
// 128px × 2.0 scale + padding = 276px
30
return
128 * 2.0f + 20.0f;
31
}
32
void
Draw
(
bool
* p_open)
override
;
33
};
34
35
}
// namespace yaze::editor
36
37
#endif
// YAZE_APP_EDITOR_OVERWORLD_PANELS_AREA_GRAPHICS_PANEL_H
yaze::editor::AreaGraphicsPanel
Displays the current area's GFX sheet for preview.
Definition
area_graphics_panel.h:19
yaze::editor::AreaGraphicsPanel::GetPreferredWidth
float GetPreferredWidth() const override
Get preferred width for this panel (optional)
Definition
area_graphics_panel.h:28
yaze::editor::AreaGraphicsPanel::GetDisplayName
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
Definition
area_graphics_panel.h:25
yaze::editor::AreaGraphicsPanel::GetEditorCategory
std::string GetEditorCategory() const override
Editor category this panel belongs to.
Definition
area_graphics_panel.h:27
yaze::editor::AreaGraphicsPanel::GetIcon
std::string GetIcon() const override
Material Design icon for this panel.
Definition
area_graphics_panel.h:26
yaze::editor::AreaGraphicsPanel::GetId
std::string GetId() const override
Unique identifier for this panel.
Definition
area_graphics_panel.h:24
yaze::editor::AreaGraphicsPanel::Draw
void Draw(bool *p_open) override
Draw the panel content.
Definition
area_graphics_panel.cc:8
yaze::editor::AreaGraphicsPanel::AreaGraphicsPanel
AreaGraphicsPanel()=default
yaze::editor::WindowContent
Base interface for all logical window content components.
Definition
editor_panel.h:89
editor_panel.h
icons.h
ICON_MD_IMAGE
#define ICON_MD_IMAGE
Definition
icons.h:982
yaze::editor
Editors are the view controllers for the application.
Definition
patch_export_usage.cc:9
src
app
editor
overworld
panels
area_graphics_panel.h
Generated by
1.10.0