yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
area_graphics_view.cc
Go to the documentation of this file.
2
5#include "util/log.h"
6
7namespace yaze::editor {
8
9void AreaGraphicsView::Draw(bool* p_open) {
10 (void)p_open;
11 const auto ctx = CurrentOverworldWindowContext();
12 if (!ctx)
13 return;
14
15 if (auto status = ctx.editor->DrawAreaGraphics(); !status.ok()) {
16 LOG_ERROR("AreaGraphicsView", "Failed to draw: %s",
17 status.ToString().c_str());
18 }
19}
20
22
23} // namespace yaze::editor
Displays the current area's GFX sheet for preview.
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.