feat(editor): Create + Generate button in New Terrain dialog

This commit is contained in:
Kelsi 2026-05-05 08:04:05 -07:00
parent 171fff3843
commit c8897eca83

View file

@ -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();
}