mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 11:09:37 -06:00
Reduce value rnage of delta time slider in GUI
This commit is contained in:
@@ -35,7 +35,7 @@ namespace gui {
|
||||
void GuiTimeComponent::render() {
|
||||
float deltaTime = static_cast<float>(Time::ref().deltaTime());
|
||||
|
||||
bool changed = ImGui::SliderFloat("Delta Time", &deltaTime, -500000.f, 500000.f);
|
||||
bool changed = ImGui::SliderFloat("Delta Time", &deltaTime, -5000.f, 5000.f);
|
||||
if (changed) {
|
||||
OsEng.scriptEngine().queueScript(
|
||||
"openspace.time.setDeltaTime(" + std::to_string(deltaTime) + ")"
|
||||
|
||||
Reference in New Issue
Block a user