overworld editor cleanup
This commit is contained in:
@@ -550,15 +550,6 @@ void Canvas::DrawContextMenu() {
|
||||
modals_->Render();
|
||||
}
|
||||
|
||||
// Phase 4: Render editor menu items using declarative menu system
|
||||
if (!editor_menu_.sections.empty() && ImGui::BeginPopupContextItem(context_id_.c_str())) {
|
||||
auto popup_callback = [this](const std::string& id, std::function<void()> callback) {
|
||||
popup_registry_.Open(id, callback);
|
||||
};
|
||||
gui::RenderCanvasMenu(editor_menu_, popup_callback);
|
||||
ImGui::EndPopup();
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -88,7 +88,6 @@ void CanvasContextMenu::Render(const std::string& context_id,
|
||||
// PRIORITY 0: Editor-specific items (from Canvas::editor_menu_)
|
||||
if (canvas && !canvas->editor_menu().sections.empty()) {
|
||||
RenderCanvasMenu(canvas->editor_menu(), popup_callback);
|
||||
ImGui::Separator();
|
||||
}
|
||||
|
||||
// Also render usage-specific items (legacy support)
|
||||
|
||||
Reference in New Issue
Block a user