yaze
0.3.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
map_properties_panel.cc
Go to the documentation of this file.
1
#include "
app/editor/overworld/panels/map_properties_panel.h
"
2
3
#include "
app/editor/core/panel_registration.h
"
4
#include "
app/editor/overworld/panels/overworld_panel_access.h
"
5
6
namespace
yaze::editor
{
7
8
void
MapPropertiesPanel::Draw
(
bool
* p_open) {
9
(void)p_open;
10
auto
* ow_editor =
CurrentOverworldEditor
();
11
if
(!ow_editor)
12
return
;
13
// Call the existing map properties drawing
14
ow_editor->DrawMapProperties();
15
}
16
17
REGISTER_PANEL
(
MapPropertiesPanel
);
18
19
}
// namespace yaze::editor
yaze::editor::MapPropertiesPanel
Displays and edits properties for the current overworld map.
Definition
map_properties_panel.h:19
yaze::editor::MapPropertiesPanel::Draw
void Draw(bool *p_open) override
Draw the panel content.
Definition
map_properties_panel.cc:8
panel_registration.h
map_properties_panel.h
yaze::editor
Editors are the view controllers for the application.
Definition
patch_export_usage.cc:9
yaze::editor::CurrentOverworldEditor
OverworldEditor * CurrentOverworldEditor()
Definition
overworld_panel_access.h:15
overworld_panel_access.h
REGISTER_PANEL
#define REGISTER_PANEL(PanelClass)
Auto-registration macro for panels with default constructors.
Definition
panel_registration.h:39
src
app
editor
overworld
panels
map_properties_panel.cc
Generated by
1.10.0