yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
gfx_groups_view.cc
Go to the documentation of this file.
2
5#include "util/log.h"
6
7namespace yaze::editor {
8
9void GfxGroupsView::Draw(bool* p_open) {
10 (void)p_open;
11 const auto ctx = CurrentOverworldWindowContext();
12 if (!ctx)
13 return;
14
15 // Delegate to gfx_group_editor Update method
16 if (auto status = ctx.editor->UpdateGfxGroupEditor(); !status.ok()) {
17 LOG_ERROR("GfxGroupsView", "Failed to update: %s",
18 status.ToString().c_str());
19 }
20}
21
23
24} // 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:109
Editors are the view controllers for the application.
OverworldWindowContext CurrentOverworldWindowContext()
#define REGISTER_PANEL(PanelClass)
Auto-registration macro for panels with default constructors.