yaze
0.3.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
area_graphics_panel.cc
Go to the documentation of this file.
1
#include "
app/editor/overworld/panels/area_graphics_panel.h
"
2
3
#include "absl/status/status.h"
4
#include "
app/editor/overworld/overworld_editor.h
"
5
6
namespace
yaze
{
7
namespace
editor {
8
9
void
AreaGraphicsPanel::Draw
(
bool
* p_open) {
10
// Call the existing DrawAreaGraphics implementation
11
// This delegates to OverworldEditor's method which handles all the logic
12
if
(
auto
status =
editor_
->
DrawAreaGraphics
(); !status.ok()) {
13
// Log error but don't crash the panel
14
LOG_ERROR
(
"AreaGraphicsPanel"
,
"Failed to draw: %s"
,
15
status.ToString().c_str());
16
}
17
}
18
19
}
// namespace editor
20
}
// namespace yaze
area_graphics_panel.h
yaze::editor::AreaGraphicsPanel::Draw
void Draw(bool *p_open) override
Draw the panel content.
Definition
area_graphics_panel.cc:9
yaze::editor::AreaGraphicsPanel::editor_
OverworldEditor * editor_
Definition
area_graphics_panel.h:35
yaze::editor::OverworldEditor::DrawAreaGraphics
absl::Status DrawAreaGraphics()
Definition
overworld_editor.cc:1619
LOG_ERROR
#define LOG_ERROR(category, format,...)
Definition
log.h:109
yaze
Definition
application.cc:18
overworld_editor.h
src
app
editor
overworld
panels
area_graphics_panel.cc
Generated by
1.10.0