summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kurator/src/ScenarioEditor.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/kurator/src/ScenarioEditor.cpp b/kurator/src/ScenarioEditor.cpp
index 23ff8ff..0b00b02 100644
--- a/kurator/src/ScenarioEditor.cpp
+++ b/kurator/src/ScenarioEditor.cpp
@@ -45,16 +45,11 @@ ScenarioEditor::update(float)
}
if (ImGui::Begin("Scenario Editor")) {
bool update = false;
- ImGui::SliderInt("Teams", &teams, 2, 6);
- update |= ImGui::IsItemEdited();
- ImGui::SliderInt("Anvils", &anvils, 0, 20);
- update |= ImGui::IsItemEdited();
- ImGui::SliderInt("Warbringers", &warbringers, 0, 20);
- update |= ImGui::IsItemEdited();
- ImGui::SliderInt("Eclipses", &eclipses, 0, 20);
- update |= ImGui::IsItemEdited();
- ImGui::SliderFloat("Distance", &distance, 10000, 20000);
- update |= ImGui::IsItemEdited();
+ update |= ImGui::SliderInt("Teams", &teams, 2, 6);
+ update |= ImGui::SliderInt("Anvils", &anvils, 0, 20);
+ update |= ImGui::SliderInt("Warbringers", &warbringers, 0, 20);
+ update |= ImGui::SliderInt("Eclipses", &eclipses, 0, 20);
+ update |= ImGui::SliderFloat("Distance", &distance, 10000, 20000);
if (update)
battle = std::make_shared<Battle>(session, scenario());
if (ImGui::Button("Start"))