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.
2
6
7namespace yaze::editor {
8
9void DebugWindowPanel::Draw(bool* p_open) {
10 auto* ow_editor = CurrentOverworldEditor();
11 if (!ow_editor)
12 return;
13 if (ow_editor->is_lyra_preview()) {
14 ImGui::TextDisabled("Lyra preview: debug editing unavailable");
15 return;
16 }
17
18 // Delegate to existing DebugWindowCard
19 if (auto* card = ow_editor->debug_window_card()) {
20 card->Draw(p_open);
21 }
22}
23
25
26} // namespace yaze::editor
Displays debug information for the Overworld Editor.
void Draw(bool *p_open) override
Draw the panel content.
Editors are the view controllers for the application.
OverworldEditor * CurrentOverworldEditor()
#define REGISTER_PANEL(PanelClass)
Auto-registration macro for panels with default constructors.