mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 09:03:52 +00:00
feat(editor): seed step buttons (<< >>) for quick terrain seed cycling
This commit is contained in:
parent
14d305a477
commit
c8446fb782
1 changed files with 3 additions and 0 deletions
|
|
@ -512,6 +512,9 @@ void EditorUI::renderBrushPanel(EditorApp& app) {
|
||||||
ImGui::InputInt("Seed", &noiseSeed);
|
ImGui::InputInt("Seed", &noiseSeed);
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
if (ImGui::SmallButton("Rnd")) noiseSeed = static_cast<int>(std::rand());
|
if (ImGui::SmallButton("Rnd")) noiseSeed = static_cast<int>(std::rand());
|
||||||
|
if (ImGui::SmallButton("<<")) noiseSeed = std::max(0, noiseSeed - 1);
|
||||||
|
ImGui::SameLine();
|
||||||
|
if (ImGui::SmallButton(">>")) noiseSeed++;
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
if (ImGui::SmallButton("Randomize All")) {
|
if (ImGui::SmallButton("Randomize All")) {
|
||||||
noiseSeed = static_cast<int>(std::rand());
|
noiseSeed = static_cast<int>(std::rand());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue