yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
scratch_space_panel.cc
Go to the documentation of this file.
2
6
7namespace yaze::editor {
8
9void ScratchSpacePanel::Draw(bool* p_open) {
11 if (!editor) return;
12
13 if (auto* ow_editor = dynamic_cast<OverworldEditor*>(editor)) {
14 // Call the existing DrawScratchSpace implementation
15 if (auto status = ow_editor->DrawScratchSpace(); !status.ok()) {
16 LOG_ERROR("ScratchSpacePanel", "Failed to draw: %s",
17 status.ToString().c_str());
18 }
19 }
20}
21
23
24} // namespace yaze::editor
Main UI class for editing overworld maps in A Link to the Past.
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,...)
Definition log.h:109
Editor * current_editor()
Get the currently active editor.
Editors are the view controllers for the application.
#define REGISTER_PANEL(PanelClass)
Auto-registration macro for panels with default constructors.