ToggleHUD console command hides the mp chat box. Closes #208
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user