Browse Source

add gooey input for sim speed

main
cinnaboot 4 years ago
parent
commit
a7f1bfa141
  1. 4
      src/gooey.cpp

4
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");
}
}

Loading…
Cancel
Save