mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Localize map shape for world generation
This commit is contained in:
parent
67905d0388
commit
e760d3c1a0
@ -42,6 +42,8 @@ main-singleplayer-world_name = World name
|
||||
main-singleplayer-map_scale = Vertical scaling
|
||||
main-singleplayer-map_erosion_quality = Erosion quality
|
||||
main-singleplayer-map_shape = Shape
|
||||
main-singleplayer-map_shape-circle = Circle
|
||||
main-singleplayer-map_shape-square = Square
|
||||
main-singleplayer-play = Play
|
||||
main-singleplayer-generate_and_play = Generate & Play
|
||||
menu-singleplayer-confirm_delete = Are you sure you want to delete "{ $world_name }"?
|
||||
|
@ -436,7 +436,7 @@ impl Screen {
|
||||
Row::with_children(vec![
|
||||
Space::new(Length::FillPortion(5), Length::Units(0))
|
||||
.into(),
|
||||
Text::new(shape.to_string())
|
||||
Text::new(i18n.get_msg(Self::map_kind_key(shape)))
|
||||
.width(Length::FillPortion(95))
|
||||
.size(fonts.cyri.scale(14))
|
||||
.vertical_alignment(iced::VerticalAlignment::Center)
|
||||
@ -667,4 +667,11 @@ impl Screen {
|
||||
all.into()
|
||||
}
|
||||
}
|
||||
|
||||
fn map_kind_key(map_kind: MapKind) -> &'static str {
|
||||
match map_kind {
|
||||
MapKind::Circle => "main-singleplayer-map_shape-circle",
|
||||
MapKind::Square => "main-singleplayer-map_shape-square",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user