yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
gfx_groups_panel.cc
Go to the documentation of this file.
2
5
6#include "util/log.h"
7
8namespace yaze::editor {
9
10void GfxGroupsPanel::Draw(bool* p_open) {
11 (void)p_open;
12 auto* ow_editor = CurrentOverworldEditor();
13 if (!ow_editor)
14 return;
15
16 // Delegate to gfx_group_editor Update method
17 if (auto status = ow_editor->UpdateGfxGroupEditor(); !status.ok()) {
18 LOG_ERROR("GfxGroupsPanel", "Failed to update: %s",
19 status.ToString().c_str());
20 }
21}
22
24
25} // namespace yaze::editor
Graphics group configuration editor.
void Draw(bool *p_open) override
Draw the panel content.
#define LOG_ERROR(category, format,...)
Definition log.h:140
Editors are the view controllers for the application.
OverworldEditor * CurrentOverworldEditor()
#define REGISTER_PANEL(PanelClass)
Auto-registration macro for panels with default constructors.