mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'coffee-compiler/localize_map_shape' into 'master'
Localize map shape for world generation See merge request veloren/veloren!4563
This commit is contained in:
commit
9971aa26a4
@ -42,6 +42,8 @@ main-singleplayer-world_name = World name
|
|||||||
main-singleplayer-map_scale = Vertical scaling
|
main-singleplayer-map_scale = Vertical scaling
|
||||||
main-singleplayer-map_erosion_quality = Erosion quality
|
main-singleplayer-map_erosion_quality = Erosion quality
|
||||||
main-singleplayer-map_shape = Shape
|
main-singleplayer-map_shape = Shape
|
||||||
|
main-singleplayer-map_shape-circle = Circle
|
||||||
|
main-singleplayer-map_shape-square = Square
|
||||||
main-singleplayer-play = Play
|
main-singleplayer-play = Play
|
||||||
main-singleplayer-generate_and_play = Generate & Play
|
main-singleplayer-generate_and_play = Generate & Play
|
||||||
menu-singleplayer-confirm_delete = Are you sure you want to delete "{ $world_name }"?
|
menu-singleplayer-confirm_delete = Are you sure you want to delete "{ $world_name }"?
|
||||||
|
@ -436,7 +436,7 @@ impl Screen {
|
|||||||
Row::with_children(vec![
|
Row::with_children(vec![
|
||||||
Space::new(Length::FillPortion(5), Length::Units(0))
|
Space::new(Length::FillPortion(5), Length::Units(0))
|
||||||
.into(),
|
.into(),
|
||||||
Text::new(shape.to_string())
|
Text::new(i18n.get_msg(Self::map_kind_key(shape)))
|
||||||
.width(Length::FillPortion(95))
|
.width(Length::FillPortion(95))
|
||||||
.size(fonts.cyri.scale(14))
|
.size(fonts.cyri.scale(14))
|
||||||
.vertical_alignment(iced::VerticalAlignment::Center)
|
.vertical_alignment(iced::VerticalAlignment::Center)
|
||||||
@ -667,4 +667,11 @@ impl Screen {
|
|||||||
all.into()
|
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