yaze
0.3.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
debug_window_panel.cc
Go to the documentation of this file.
1
#include "
app/editor/overworld/panels/debug_window_panel.h
"
2
3
#include "
app/editor/core/content_registry.h
"
4
#include "
app/editor/core/panel_registration.h
"
5
#include "
app/editor/overworld/debug_window_card.h
"
6
#include "
app/editor/overworld/overworld_editor.h
"
7
8
namespace
yaze::editor
{
9
10
void
DebugWindowPanel::Draw
(
bool
* p_open) {
11
auto
* editor =
ContentRegistry::Context::current_editor
();
12
if
(!editor)
return
;
13
14
if
(
auto
* ow_editor =
dynamic_cast<
OverworldEditor
*
>
(editor)) {
15
// Delegate to existing DebugWindowCard
16
if
(
auto
* card = ow_editor->debug_window_card()) {
17
card->Draw(p_open);
18
}
19
}
20
}
21
22
REGISTER_PANEL
(
DebugWindowPanel
);
23
24
}
// namespace yaze::editor
yaze::editor::DebugWindowPanel
Displays debug information for the Overworld Editor.
Definition
debug_window_panel.h:16
yaze::editor::DebugWindowPanel::Draw
void Draw(bool *p_open) override
Draw the panel content.
Definition
debug_window_panel.cc:10
yaze::editor::OverworldEditor
Main UI class for editing overworld maps in A Link to the Past.
Definition
overworld_editor.h:124
content_registry.h
debug_window_card.h
debug_window_panel.h
yaze::editor::ContentRegistry::Context::current_editor
Editor * current_editor()
Get the currently active editor.
Definition
content_registry.cc:94
yaze::editor
Editors are the view controllers for the application.
Definition
patch_export_usage.cc:9
overworld_editor.h
panel_registration.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
debug_window_panel.cc
Generated by
1.10.0