1
0
Fork 0
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:
Alula 2020-08-28 04:24:52 +02:00
parent 1fdf66f917
commit 31b149d135
No known key found for this signature in database
GPG key ID: 3E00485503A1D8BA

View file

@ -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(())
}