@@ -539,7 +539,7 @@ pub struct App {
539
539
appearance : PlayerAppearance ,
540
540
connected_menu : ConnectedMenu ,
541
541
show_host_settings : bool ,
542
- ux_settings : UXSettings
542
+ ux_settings : UXSettings ,
543
543
}
544
544
545
545
fn filled_group < R > ( ui : & mut Ui , add_contents : impl FnOnce ( & mut Ui ) -> R ) -> InnerResponse < R > {
@@ -597,13 +597,18 @@ fn settings_get() -> Settings {
597
597
}
598
598
}
599
599
600
- fn settings_set ( app : AppSavedState , color : PlayerAppearance , modmanager : ModmanagerSettings , ux : UXSettings ) {
600
+ fn settings_set (
601
+ app : AppSavedState ,
602
+ color : PlayerAppearance ,
603
+ modmanager : ModmanagerSettings ,
604
+ ux : UXSettings ,
605
+ ) {
601
606
if let Ok ( s) = std:: env:: current_exe ( ) {
602
607
let settings = Settings {
603
608
app,
604
609
color,
605
610
modmanager,
606
- ux
611
+ ux,
607
612
} ;
608
613
let file = s. parent ( ) . unwrap ( ) . join ( "proxy.ron" ) ;
609
614
let settings = ron:: to_string ( & settings) . unwrap ( ) ;
@@ -1106,14 +1111,22 @@ impl App {
1106
1111
ui. add_space ( 10.0 ) ;
1107
1112
ui. label ( tr ( "ping-note" ) ) ;
1108
1113
ui. add_space ( 10.0 ) ;
1109
- ui. add ( egui:: Slider :: new ( & mut self . ux_settings . ping_lifetime , 1 ..=60 ) . text ( tr ( "ping-lifetime" ) )
1110
- . min_decimals ( 0 )
1111
- . max_decimals ( 0 )
1112
- . step_by ( 1.0 ) ) . on_hover_text ( tr ( "ping-lifetime-tooltip" ) ) ;
1113
- ui. add ( egui:: Slider :: new ( & mut self . ux_settings . ping_scale , 0.0 ..=1.5 ) . text ( tr ( "ping-scale" ) )
1114
- . min_decimals ( 0 )
1115
- . max_decimals ( 1 )
1116
- . step_by ( 0.1 ) ) . on_hover_text ( tr ( "ping-scale-tooltip" ) ) ;
1114
+ ui. add (
1115
+ egui:: Slider :: new ( & mut self . ux_settings . ping_lifetime , 1 ..=60 )
1116
+ . text ( tr ( "ping-lifetime" ) )
1117
+ . min_decimals ( 0 )
1118
+ . max_decimals ( 0 )
1119
+ . step_by ( 1.0 ) ,
1120
+ )
1121
+ . on_hover_text ( tr ( "ping-lifetime-tooltip" ) ) ;
1122
+ ui. add (
1123
+ egui:: Slider :: new ( & mut self . ux_settings . ping_scale , 0.0 ..=1.5 )
1124
+ . text ( tr ( "ping-scale" ) )
1125
+ . min_decimals ( 0 )
1126
+ . max_decimals ( 1 )
1127
+ . step_by ( 0.1 ) ,
1128
+ )
1129
+ . on_hover_text ( tr ( "ping-scale-tooltip" ) ) ;
1117
1130
}
1118
1131
1119
1132
fn connect_to_steam_lobby ( & mut self , lobby_id : String ) {
0 commit comments