yaze
0.3.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
tile16_editor_panel.cc
Go to the documentation of this file.
1
#include "
app/editor/overworld/panels/tile16_editor_panel.h
"
2
3
#include "
app/editor/overworld/tile16_editor.h
"
4
#include "
util/log.h
"
5
6
namespace
yaze
{
7
namespace
editor {
8
9
void
Tile16EditorPanel::Draw
(
bool
* p_open) {
10
// Call the panel-friendly update method (no MenuBar required)
11
if
(
auto
status =
editor_
->
UpdateAsPanel
(); !status.ok()) {
12
LOG_ERROR
(
"Tile16EditorPanel"
,
"Failed to draw: %s"
,
13
status.ToString().c_str());
14
}
15
}
16
17
}
// namespace editor
18
}
// namespace yaze
yaze::editor::Tile16EditorPanel::editor_
Tile16Editor * editor_
Definition
tile16_editor_panel.h:34
yaze::editor::Tile16EditorPanel::Draw
void Draw(bool *p_open) override
Draw the panel content.
Definition
tile16_editor_panel.cc:9
yaze::editor::Tile16Editor::UpdateAsPanel
absl::Status UpdateAsPanel()
Update the editor content without MenuBar (for EditorPanel usage)
Definition
tile16_editor.cc:340
log.h
LOG_ERROR
#define LOG_ERROR(category, format,...)
Definition
log.h:109
yaze
Definition
application.cc:18
tile16_editor.h
tile16_editor_panel.h
src
app
editor
overworld
panels
tile16_editor_panel.cc
Generated by
1.10.0