(65ebd97e5) Disable multiplayer buttons ("server log", "end round", etc) when using a controller (e.g. when operating a railgun)
This commit is contained in:
@@ -2183,6 +2183,11 @@ namespace Barotrauma.Networking
|
||||
|
||||
if (gameStarted && Screen.Selected == GameMain.GameScreen)
|
||||
{
|
||||
bool disableButtons =
|
||||
Character.Controlled != null &&
|
||||
Character.Controlled.SelectedConstruction?.GetComponent<Controller>() != null;
|
||||
buttonContainer.Visible = !disableButtons;
|
||||
|
||||
if (!GUI.DisableHUD && !GUI.DisableUpperHUD)
|
||||
{
|
||||
inGameHUD.UpdateManually(deltaTime);
|
||||
|
||||
Reference in New Issue
Block a user