32 static std::string last_error;
33 if (
auto status = ctx.editor->DrawTile16Selector(); !status.ok()) {
34 if (status.ToString() != last_error) {
35 last_error = status.ToString();
36 LOG_ERROR(
"Tile16SelectorView",
"Failed to draw: %s", last_error.c_str());
Displays the Tile16 palette for painting tiles on the overworld.
float GetPreferredWidth() const override
Get preferred width for this panel (optional)
void Draw(bool *p_open) override
Draw the panel content.
static constexpr float kWindowPadding
#define LOG_ERROR(category, format,...)
Editors are the view controllers for the application.
constexpr float kTile16SelectorScale
constexpr int kTile16SelectorColumns
constexpr float kTile16SelectorDrawOffsetX
OverworldWindowContext CurrentOverworldWindowContext()
#define REGISTER_PANEL(PanelClass)
Auto-registration macro for panels with default constructors.