mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-03-24 02:49:21 +00:00
game: hide hud when player control is disabled
This commit is contained in:
parent
1fdf66f917
commit
31b149d135
|
@ -496,12 +496,14 @@ impl Scene for GameScene {
|
|||
self.draw_carets(state, ctx)?;
|
||||
self.draw_black_bars(state, ctx)?;
|
||||
|
||||
self.draw_hud(state, ctx)?;
|
||||
self.draw_number(state.canvas_size.0 - 8.0, 8.0, timer::fps(ctx) as usize, Alignment::Right, state, ctx)?;
|
||||
if state.control_flags.control_enabled() {
|
||||
self.draw_hud(state, ctx)?;
|
||||
}
|
||||
|
||||
self.draw_fade(state, ctx)?;
|
||||
self.draw_text_boxes(state, ctx)?;
|
||||
|
||||
self.draw_number(state.canvas_size.0 - 8.0, 8.0, timer::fps(ctx) as usize, Alignment::Right, state, ctx)?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue