16 if (!ctx || !ctx.editor->IsRomLoaded()) {
20 if (ctx.editor->is_lyra_preview()) {
21 ImGui::TextDisabled(
"Lyra preview: Tile16 editing unavailable");
26 static std::string last_error;
27 if (
auto status = ctx.editor->tile16_editor().UpdateAsPanel(); !status.ok()) {
28 if (status.ToString() != last_error) {
29 last_error = status.ToString();
30 LOG_ERROR(
"Tile16EditorView",
"Failed to draw: %s", last_error.c_str());
WindowContent wrapper for Tile16Editor.
void Draw(bool *p_open) override
Draw the panel content.
#define LOG_ERROR(category, format,...)
Editors are the view controllers for the application.
OverworldWindowContext CurrentOverworldWindowContext()
bool DrawEmptyState(const EmptyStateOptions &options)
Draw a centered empty-state block.
EmptyStateOptions EmptyNoRom(bool compact)
#define REGISTER_PANEL(PanelClass)
Auto-registration macro for panels with default constructors.