20 static std::string last_error;
21 if (
auto status = ow_editor->DrawScratchSpace(); !status.ok()) {
22 if (status.ToString() != last_error) {
23 last_error = status.ToString();
24 LOG_ERROR(
"ScratchSpacePanel",
"Failed to draw: %s", last_error.c_str());
Provides a scratch workspace for layout planning and clipboard operations.
void Draw(bool *p_open) override
Draw the panel content.
#define LOG_ERROR(category, format,...)
Editors are the view controllers for the application.
OverworldEditor * CurrentOverworldEditor()
#define REGISTER_PANEL(PanelClass)
Auto-registration macro for panels with default constructors.