mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 00:53:52 +00:00
feat(editor): Create + Generate button in New Terrain dialog
This commit is contained in:
parent
171fff3843
commit
c8897eca83
1 changed files with 8 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue