yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
tile16_selector_panel.cc
Go to the documentation of this file.
2
5
6namespace yaze::editor {
7
8void Tile16SelectorPanel::Draw(bool* p_open) {
9 (void)p_open;
10 auto* ow_editor = CurrentOverworldEditor();
11 if (!ow_editor)
12 return;
13
14 if (auto status = ow_editor->DrawTile16Selector(); !status.ok()) {
15 LOG_ERROR("Tile16SelectorPanel", "Failed to draw: %s",
16 status.ToString().c_str());
17 }
18}
19
21
22} // namespace yaze::editor
Displays the Tile16 palette for painting tiles on the overworld.
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.
OverworldEditor * CurrentOverworldEditor()
#define REGISTER_PANEL(PanelClass)
Auto-registration macro for panels with default constructors.