From a7f1bfa14171874ba9f98ec39a3c6bc70f93c00f Mon Sep 17 00:00:00 2001 From: cinnaboot Date: Sat, 14 May 2022 10:16:11 -0400 Subject: [PATCH] add gooey input for sim speed --- src/gooey.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gooey.cpp b/src/gooey.cpp index 8382758..cfbeb23 100644 --- a/src/gooey.cpp +++ b/src/gooey.cpp @@ -87,9 +87,9 @@ void drawSimulationWindow(bool& running, u64 sim_time_ms, float& sim_speed) ImGui::SameLine(); ImGui::Text("running: %s", (running > 0) ? "true" : "false"); - ImGui::Text("sim time: %.3f s", + ImGui::Text("sim time: %.2f s", double(double(sim_time_ms) / 1000)); - ImGui::Text("sim speed: %.1f x", sim_speed); + ImGui::InputFloat("sim speed", &sim_speed, 0.1, 4.0, "%.1f"); } }