Skip to content

Commit

Permalink
TopMenubar/HydraX: reduced slider ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
ohlidalp committed Sep 26, 2024
1 parent b710aa0 commit 8c9755a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/main/gui/panels/GUI_TopMenubar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -702,13 +702,13 @@ void TopMenubar::Draw(float dt)
Hydrax::Module::ProjectedGrid::Options water_pgrid_options = iwater->GetWaterGridOptions();

bool changed = false;
changed |= ImGui::SliderInt(_LC("TopMenubar", "Grid complexity"), &water_pgrid_options.Complexity, 32, 1024);
changed |= ImGui::SliderFloat(_LC("TopMenubar", "Strength"), &water_pgrid_options.Strength, 1.f, 50.f);
changed |= ImGui::SliderFloat(_LC("TopMenubar", "Elevation"), &water_pgrid_options.Elevation, 1.f, 50.f);
changed |= ImGui::SliderInt(_LC("TopMenubar", "Grid complexity"), &water_pgrid_options.Complexity, 40, 400);
changed |= ImGui::SliderFloat(_LC("TopMenubar", "Strength"), &water_pgrid_options.Strength, 1.f, 15.f);
changed |= ImGui::SliderFloat(_LC("TopMenubar", "Elevation"), &water_pgrid_options.Elevation, 1.f, 15.f);
changed |= ImGui::Checkbox(_LC("TopMenubar", "Smooth"), &water_pgrid_options.Smooth);
changed |= ImGui::Checkbox(_LC("TopMenubar", "Recalc. geom. each frame"), &water_pgrid_options.ForceRecalculateGeometry);
changed |= ImGui::Checkbox(_LC("TopMenubar", "Choppy waves"), &water_pgrid_options.ChoppyWaves);
changed |= ImGui::SliderFloat(_LC("TopMenubar", "Choppy w. strength"), &water_pgrid_options.ChoppyStrength, 1.f, 50.f);
changed |= ImGui::SliderFloat(_LC("TopMenubar", "Choppy w. strength"), &water_pgrid_options.ChoppyStrength, 1.f, 10.f);
if (changed)
{
iwater->SetWaterGridOptions(water_pgrid_options);
Expand Down

0 comments on commit 8c9755a

Please sign in to comment.