From b34a68a519d0d8204cd8c4acb2deb215979b4546 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Fri, 19 Jul 2019 16:12:02 +0200 Subject: [PATCH] Remove instances of Visible = false for windows. --- Content.Client/Construction/ConstructionMenu.cs | 1 - Content.Client/EscapeMenuOwner.cs | 5 +---- .../GameObjects/Components/Actor/CharacterInterface.cs | 1 - Content.Client/Research/LatheMenu.cs | 1 - Content.Client/Research/LatheQueueMenu.cs | 1 - Content.Client/UserInterface/EscapeMenu.cs | 5 +---- 6 files changed, 2 insertions(+), 12 deletions(-) diff --git a/Content.Client/Construction/ConstructionMenu.cs b/Content.Client/Construction/ConstructionMenu.cs index d0e7a4cbd8..15f3d5a8cc 100644 --- a/Content.Client/Construction/ConstructionMenu.cs +++ b/Content.Client/Construction/ConstructionMenu.cs @@ -62,7 +62,6 @@ namespace Content.Client.Construction Placement.PlacementCanceled += OnPlacementCanceled; Title = "Construction"; - Visible = false; var hSplitContainer = new HSplitContainer(); diff --git a/Content.Client/EscapeMenuOwner.cs b/Content.Client/EscapeMenuOwner.cs index 4fb1256579..914233839d 100644 --- a/Content.Client/EscapeMenuOwner.cs +++ b/Content.Client/EscapeMenuOwner.cs @@ -45,10 +45,7 @@ namespace Content.Client { // Switched TO GameScreen. _escapeMenu = new EscapeMenu(_clientConsole, _tileDefinitionManager, _placementManager, - _prototypeManager, _resourceCache, _configurationManager, _localizationManager) - { - Visible = false - }; + _prototypeManager, _resourceCache, _configurationManager, _localizationManager); _escapeMenu.OnClose += () => _gameHud.EscapeButtonDown = false; diff --git a/Content.Client/GameObjects/Components/Actor/CharacterInterface.cs b/Content.Client/GameObjects/Components/Actor/CharacterInterface.cs index 74a99c7669..41180e75d4 100644 --- a/Content.Client/GameObjects/Components/Actor/CharacterInterface.cs +++ b/Content.Client/GameObjects/Components/Actor/CharacterInterface.cs @@ -113,7 +113,6 @@ namespace Content.Client.GameObjects.Components.Actor public CharacterWindow(List windowComponents) { Title = "Character"; - Visible = false; _contentsVBox = new VBoxContainer(); Contents.AddChild(_contentsVBox); diff --git a/Content.Client/Research/LatheMenu.cs b/Content.Client/Research/LatheMenu.cs index 95629b2a3d..4c11178941 100644 --- a/Content.Client/Research/LatheMenu.cs +++ b/Content.Client/Research/LatheMenu.cs @@ -49,7 +49,6 @@ namespace Content.Client.Research IoCManager.InjectDependencies(this); Title = "Lathe Menu"; - Visible = false; var margin = new MarginContainer() { diff --git a/Content.Client/Research/LatheQueueMenu.cs b/Content.Client/Research/LatheQueueMenu.cs index fe8a4e5ee4..3d1a183bfd 100644 --- a/Content.Client/Research/LatheQueueMenu.cs +++ b/Content.Client/Research/LatheQueueMenu.cs @@ -30,7 +30,6 @@ namespace Content.Client.Research base.Initialize(); Title = "Lathe Queue"; - Visible = false; var margin = new MarginContainer() { diff --git a/Content.Client/UserInterface/EscapeMenu.cs b/Content.Client/UserInterface/EscapeMenu.cs index dc222817f3..d20db175bf 100644 --- a/Content.Client/UserInterface/EscapeMenu.cs +++ b/Content.Client/UserInterface/EscapeMenu.cs @@ -48,10 +48,7 @@ namespace Content.Client.UserInterface private void PerformLayout() { - optionsMenu = new OptionsMenu(_configSystem) - { - Visible = false - }; + optionsMenu = new OptionsMenu(_configSystem); Resizable = false;