Make changing volume arrows to display on Android only

This commit is contained in:
biroder 2023-03-28 13:48:03 +03:00 committed by GitHub
parent cd1c2d2a27
commit a1bdf1ec14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 15 deletions

View File

@ -595,7 +595,8 @@ impl<T: std::cmp::PartialEq + std::default::Default + Clone> Menu<T> {
graphics::draw_rect(ctx, bar_rect, Color::new(1.0, 1.0, 1.0, 1.0))?; graphics::draw_rect(ctx, bar_rect, Color::new(1.0, 1.0, 1.0, 1.0))?;
} }
#[cfg(target_os = "android")]
{
state state
.font .font
.builder() .builder()
@ -611,6 +612,7 @@ impl<T: std::cmp::PartialEq + std::default::Default + Clone> Menu<T> {
.shadow(true) .shadow(true)
.draw(">", ctx, &state.constants, &mut state.texture_set)?; .draw(">", ctx, &state.constants, &mut state.texture_set)?;
} }
}
MenuEntry::NewSave => { MenuEntry::NewSave => {
state.font.builder().position(self.x as f32 + 20.0, y).draw( state.font.builder().position(self.x as f32 + 20.0, y).draw(
state.loc.t("menus.save_menu.new"), state.loc.t("menus.save_menu.new"),