yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
tile16_editor_view.cc
Go to the documentation of this file.
2
6#include "util/log.h"
7
8namespace yaze::editor {
9
10void Tile16EditorView::Draw(bool* p_open) {
11 (void)p_open;
12 const auto ctx = CurrentOverworldWindowContext();
13 if (!ctx)
14 return;
15
16 if (auto status = ctx.editor->tile16_editor().UpdateAsPanel(); !status.ok()) {
17 LOG_ERROR("Tile16EditorView", "Failed to draw: %s",
18 status.ToString().c_str());
19 }
20}
21
23
24} // namespace yaze::editor
WindowContent wrapper for Tile16Editor.
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.