1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-11-04 13:24:16 +00:00

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

View file

@ -595,21 +595,23 @@ 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 {
.font state
.builder() .font
.x(self.x as f32 - 25.0) .builder()
.y(y) .x(self.x as f32 - 25.0)
.shadow(true) .y(y)
.draw("<", ctx, &state.constants, &mut state.texture_set)?; .shadow(true)
state .draw("<", ctx, &state.constants, &mut state.texture_set)?;
.font state
.builder() .font
.x((self.x + self.width as isize) as f32 + 15.0) .builder()
.y(y) .x((self.x + self.width as isize) as f32 + 15.0)
.shadow(true) .y(y)
.draw(">", ctx, &state.constants, &mut state.texture_set)?; .shadow(true)
.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(