ToggleHUD console command hides the mp chat box. Closes #208

This commit is contained in:
Joonas Rikkonen
2018-01-09 11:19:21 +02:00
parent ac704cdaae
commit 662ead0bb4
2 changed files with 6 additions and 4 deletions
@@ -113,7 +113,7 @@ namespace Barotrauma.Networking
public virtual void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch) public virtual void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch)
{ {
if (!gameStarted || Screen.Selected != GameMain.GameScreen) return; if (!gameStarted || Screen.Selected != GameMain.GameScreen || GUI.DisableHUD) return;
GameMain.GameSession.CrewManager.Draw(spriteBatch); GameMain.GameSession.CrewManager.Draw(spriteBatch);
@@ -210,9 +210,11 @@ namespace Barotrauma.Networking
{ {
msgBox.Visible = Character.Controlled == null || Character.Controlled.CanSpeak; msgBox.Visible = Character.Controlled == null || Character.Controlled.CanSpeak;
inGameHUD.Update(deltaTime); if (!GUI.DisableHUD)
{
GameMain.GameSession.CrewManager.Update(deltaTime); inGameHUD.Update(deltaTime);
GameMain.GameSession.CrewManager.Update(deltaTime);
}
if (Character.Controlled == null || Character.Controlled.IsDead) if (Character.Controlled == null || Character.Controlled.IsDead)
{ {