Move GUI size init into constructor

Setting the initial size in `Initialize` has no effect on the windows size so it's set in the constructor instead.
This commit is contained in:
moneyl
2019-05-24 16:24:32 -04:00
parent f489bee686
commit 338a8e463e
3 changed files with 12 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
using Content.Client.GameObjects.Components.Construction;
using Content.Client.GameObjects.Components.Construction;
using Robust.Client.Interfaces.Graphics;
using Robust.Client.UserInterface.Controls;
using Robust.Shared.Maths;
@@ -41,10 +41,7 @@ namespace Content.Client.Construction
private void PerformLayout()
{
Menu = new ConstructionMenu(_displayManager)
{
Size = new Vector2(500.0f, 350.0f)
};
Menu = new ConstructionMenu(_displayManager);
Menu.AddToScreen();
}