commit
203dd57571
2 changed files with 3 additions and 4 deletions
|
@ -80,12 +80,12 @@
|
|||
horizontal_grow = true
|
||||
{_GUI_PREFERENCES_CHECKBOX_ALIGN_BORDER}
|
||||
{_GUI_PREFERENCES_MAIN_COMPOSITE_SLIDER
|
||||
( _ "Speed:")
|
||||
( _ "Acceleration factor:")
|
||||
turbo_slider (
|
||||
# Starts at 0 since the slider values are used for vector index access.
|
||||
minimum_value,maximum_value=0,11
|
||||
step_size=1
|
||||
tooltip= _ "Units move and fight speed"
|
||||
tooltip= _ "Speed at which unit moves and animations play when 'Accelerated speed' is enabled."
|
||||
)
|
||||
}
|
||||
[/column]
|
||||
|
|
|
@ -359,8 +359,7 @@ void preferences_dialog::post_build(window& window)
|
|||
scroll_speed, set_scroll_speed);
|
||||
|
||||
/* ACCELERATED SPEED */
|
||||
register_bool("turbo_toggle", true, turbo, set_turbo,
|
||||
[&](widget& w) { disable_widget_on_toggle<slider>(window, w, "turbo_slider"); }, true);
|
||||
register_bool("turbo_toggle", true, turbo, set_turbo);
|
||||
|
||||
const auto accl_load = [this]()->int {
|
||||
return std::distance(accl_speeds_.begin(), std::find(accl_speeds_.begin(), accl_speeds_.end(), turbo_speed()));
|
||||
|
|
Loading…
Add table
Reference in a new issue