mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Replace "Present Mode" options with more user friendly terms:
'Fifo' -> 'Vsync capped' 'Mailbox' -> 'Vsync uncapped' 'Immediate' -> 'Vsync off'
This commit is contained in:
parent
cc1de8334d
commit
e626519ec0
@ -61,9 +61,9 @@ hud-settings-entities_detail_distance = Entities Detail Distance
|
||||
hud-settings-maximum_fps = Maximum FPS
|
||||
hud-settings-background_fps = Background FPS
|
||||
hud-settings-present_mode = Present Mode
|
||||
hud-settings-present_mode-fifo = Fifo
|
||||
hud-settings-present_mode-mailbox = Mailbox
|
||||
hud-settings-present_mode-immediate = Immediate
|
||||
hud-settings-present_mode-vsync_capped = Vsync capped
|
||||
hud-settings-present_mode-vsync_uncapped = Vsync uncapped
|
||||
hud-settings-present_mode-vsync_off = Vsync off
|
||||
hud-settings-fov = Field of View (deg)
|
||||
hud-settings-gamma = Gamma
|
||||
hud-settings-exposure = Exposure
|
||||
|
@ -574,7 +574,7 @@ impl<'a> Widget for Video<'a> {
|
||||
// Present Mode
|
||||
Text::new(&self.localized_strings.get_msg("hud-settings-present_mode"))
|
||||
.down_from(state.ids.ld_slider, 10.0)
|
||||
.right_from(state.ids.max_background_fps_value, 30.0)
|
||||
.right_from(state.ids.max_background_fps_value, 40.0)
|
||||
.font_size(self.fonts.cyri.scale(14))
|
||||
.font_id(self.fonts.cyri.conrod_id)
|
||||
.color(TEXT_COLOR)
|
||||
@ -586,16 +586,11 @@ impl<'a> Widget for Video<'a> {
|
||||
PresentMode::Immediate,
|
||||
];
|
||||
let mode_label_list = [
|
||||
&self
|
||||
.localized_strings
|
||||
.get_msg("hud-settings-present_mode-fifo"),
|
||||
&self
|
||||
.localized_strings
|
||||
.get_msg("hud-settings-present_mode-mailbox"),
|
||||
&self
|
||||
.localized_strings
|
||||
.get_msg("hud-settings-present_mode-immediate"),
|
||||
];
|
||||
"hud-settings-present_mode-vsync_capped",
|
||||
"hud-settings-present_mode-vsync_uncapped",
|
||||
"hud-settings-present_mode-vsync_off",
|
||||
]
|
||||
.map(|k| self.localized_strings.get_msg(k));
|
||||
|
||||
// Get which present mode is currently active
|
||||
let selected = mode_list
|
||||
@ -603,7 +598,7 @@ impl<'a> Widget for Video<'a> {
|
||||
.position(|x| *x == render_mode.present_mode);
|
||||
|
||||
if let Some(clicked) = DropDownList::new(&mode_label_list, selected)
|
||||
.w_h(120.0, 22.0)
|
||||
.w_h(150.0, 26.0)
|
||||
.color(MENU_BG)
|
||||
.label_color(TEXT_COLOR)
|
||||
.label_font_id(self.fonts.cyri.conrod_id)
|
||||
|
Loading…
Reference in New Issue
Block a user