mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
HUD hide mode fix
This commit is contained in:
parent
faabb8178a
commit
31b0349757
3 changed files with 30 additions and 14 deletions
|
|
@ -139,8 +139,7 @@ void LevelScreen::update(float delta) {
|
|||
level->world->updateTimers(delta);
|
||||
}
|
||||
controller->update(delta, !inputLocked, hud->isPause());
|
||||
if (hudVisible)
|
||||
hud->update();
|
||||
hud->update(hudVisible);
|
||||
}
|
||||
|
||||
void LevelScreen::draw(float delta) {
|
||||
|
|
@ -151,6 +150,7 @@ void LevelScreen::draw(float delta) {
|
|||
|
||||
worldRenderer->draw(ctx, camera.get(), hudVisible);
|
||||
|
||||
hud->drawOverlay(ctx);
|
||||
if (hudVisible) {
|
||||
hud->draw(ctx);
|
||||
if (level->player->debug) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue