Update mod.rs
This commit is contained in:
parent
dcb6af6581
commit
d3bb79cf4c
|
@ -675,15 +675,14 @@ impl<T: std::cmp::PartialEq + std::default::Default + Clone> Menu<T> {
|
||||||
);
|
);
|
||||||
batch.draw(ctx)?;
|
batch.draw(ctx)?;
|
||||||
} else {
|
} else {
|
||||||
let loc = &state.loc;
|
|
||||||
let difficulty = match save.difficulty {
|
let difficulty = match save.difficulty {
|
||||||
0 => loc.t("menus.difficulty_menu.normal"),
|
0 => state.loc.t("menus.difficulty_menu.normal"),
|
||||||
2 => loc.t("menus.difficulty_menu.easy"),
|
2 => state.loc.t("menus.difficulty_menu.easy"),
|
||||||
4 => loc.t("menus.difficulty_menu.hard"),
|
4 => state.loc.t("menus.difficulty_menu.hard"),
|
||||||
_ => loc.t("menus.difficulty_menu.unknown"),
|
_ => state.loc.t("menus.difficulty_menu.unknown"),
|
||||||
};
|
};
|
||||||
let difficulty_name =
|
let difficulty_name =
|
||||||
loc.tt("menus.difficulty_menu.difficulty_name", &[("difficulty", &difficulty)]);
|
state.loc.tt("menus.difficulty_menu.difficulty_name", &[("difficulty", &difficulty)]);
|
||||||
|
|
||||||
state.font.builder().position(self.x as f32 + 20.0, y + 10.0).draw(
|
state.font.builder().position(self.x as f32 + 20.0, y + 10.0).draw(
|
||||||
&difficulty_name,
|
&difficulty_name,
|
||||||
|
|
Loading…
Reference in New Issue