yaze
0.3.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
debug_window_view.cc
Go to the documentation of this file.
1
#include "
app/editor/overworld/ui/debug/debug_window_view.h
"
2
3
#include "
app/editor/overworld/debug_window_card.h
"
4
#include "
app/editor/overworld/ui/shared/overworld_window_context.h
"
5
#include "
app/editor/registry/panel_registration.h
"
6
7
namespace
yaze::editor
{
8
9
void
DebugWindowView::Draw
(
bool
* p_open) {
10
const
auto
ctx =
CurrentOverworldWindowContext
();
11
if
(!ctx)
12
return
;
13
14
// Delegate to existing DebugWindowCard
15
if
(
auto
* card = ctx.editor->debug_window_card()) {
16
card->Draw(p_open);
17
}
18
}
19
20
REGISTER_PANEL
(
DebugWindowView
);
21
22
}
// namespace yaze::editor
yaze::editor::DebugWindowView
Displays debug information for the Overworld Editor.
Definition
debug_window_view.h:16
yaze::editor::DebugWindowView::Draw
void Draw(bool *p_open) override
Draw the panel content.
Definition
debug_window_view.cc:9
debug_window_card.h
debug_window_view.h
yaze::editor
Editors are the view controllers for the application.
Definition
patch_export_usage.cc:9
yaze::editor::CurrentOverworldWindowContext
OverworldWindowContext CurrentOverworldWindowContext()
Definition
overworld_panel_access.h:11
overworld_window_context.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
ui
debug
debug_window_view.cc
Generated by
1.10.0