Settings labels use i18n

This commit is contained in:
Woeful_Wolf 2024-01-28 18:00:56 +02:00
parent 29550f9962
commit 9af75e1fc9
2 changed files with 5 additions and 3 deletions

View File

@ -57,6 +57,8 @@ hud-settings-walking_speed_behavior = Walking speed behavior
hud-settings-walking_speed = Walking speed
hud-settings-camera_clamp_behavior = Camera clamp behavior
hud-settings-zoom_lock_behavior = Camera zoom lock behavior
hud-settings-aim_offset_x = Horizontal Aim Offset
hud-settings-aim_offset_y = Vertical Aim Offset
hud-settings-player_physics_behavior = Player physics (experimental)
hud-settings-stop_auto_walk_on_input = Stop auto walk on movement
hud-settings-auto_camera = Auto camera

View File

@ -670,7 +670,7 @@ impl<'a> Widget for Gameplay<'a> {
// Aim offset x
let display_aim_offset_x = self.global_state.settings.gameplay.aim_offset_x;
Text::new("Aim Offset X")
Text::new(&self.localized_strings.get_msg("hud-settings-aim_offset_x"))
.down_from(state.ids.zoom_lock_behavior_list, 10.0)
.font_size(self.fonts.cyri.scale(14))
.font_id(self.fonts.cyri.conrod_id)
@ -703,7 +703,7 @@ impl<'a> Widget for Gameplay<'a> {
// Aim offset y
let display_aim_offset_y = self.global_state.settings.gameplay.aim_offset_y;
Text::new("Aim Offset Y")
Text::new(&self.localized_strings.get_msg("hud-settings-aim_offset_y"))
.down_from(state.ids.aim_offset_x_slider, 10.0)
.font_size(self.fonts.cyri.scale(14))
.font_id(self.fonts.cyri.conrod_id)