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:
parent
cd1c2d2a27
commit
a1bdf1ec14
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue