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

View File

@@ -113,7 +113,7 @@ namespace Barotrauma.Networking
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);

View File

@@ -210,9 +210,11 @@ namespace Barotrauma.Networking
{
msgBox.Visible = Character.Controlled == null || Character.Controlled.CanSpeak;
inGameHUD.Update(deltaTime);
GameMain.GameSession.CrewManager.Update(deltaTime);
if (!GUI.DisableHUD)
{
inGameHUD.Update(deltaTime);
GameMain.GameSession.CrewManager.Update(deltaTime);
}
if (Character.Controlled == null || Character.Controlled.IsDead)
{