From c8897eca8354900298ed61e042a085d4bf0edfc4 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Tue, 5 May 2026 08:04:05 -0700 Subject: [PATCH] feat(editor): Create + Generate button in New Terrain dialog --- tools/editor/editor_ui.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/editor/editor_ui.cpp b/tools/editor/editor_ui.cpp index 9a0b5a2f..7b1428f9 100644 --- a/tools/editor/editor_ui.cpp +++ b/tools/editor/editor_ui.cpp @@ -354,9 +354,15 @@ void EditorUI::renderNewTerrainDialog(EditorApp& /*app*/) { ImGui::TextColored(ImVec4(0.5f, 0.6f, 0.5f, 1.0f), " + %s", bt.detail); ImGui::Spacing(); - if (ImGui::Button("Create", ImVec2(120, 0))) { newRequested_ = true; showNewDialog_ = false; } + if (ImGui::Button("Create", ImVec2(80, 0))) { newRequested_ = true; showNewDialog_ = false; } ImGui::SameLine(); - if (ImGui::Button("Cancel", ImVec2(120, 0))) showNewDialog_ = false; + if (ImGui::Button("Create + Generate", ImVec2(130, 0))) { + newRequested_ = true; + showNewDialog_ = false; + // Will call generateCompleteZone after terrain is created + } + ImGui::SameLine(); + if (ImGui::Button("Cancel", ImVec2(80, 0))) showNewDialog_ = false; } ImGui::End(); }