diff --git a/Content.Client/GameObjects/Components/Storage/ClientStorageComponent.cs b/Content.Client/GameObjects/Components/Storage/ClientStorageComponent.cs index daf6efcaf2..03486aa4c2 100644 --- a/Content.Client/GameObjects/Components/Storage/ClientStorageComponent.cs +++ b/Content.Client/GameObjects/Components/Storage/ClientStorageComponent.cs @@ -11,6 +11,7 @@ using Robust.Shared.Utility; using System; using System.Collections.Generic; using Robust.Client.Interfaces.Graphics; +using Robust.Shared.Maths; using Robust.Shared.Serialization; using Robust.Shared.ViewVariables; @@ -31,7 +32,7 @@ namespace Content.Client.GameObjects.Components.Storage base.OnAdd(); Window = new StorageWindow(IoCManager.Resolve()) - { StorageEntity = this }; + { StorageEntity = this, Size = new Vector2(180.0f, 320.0f)}; } public override void OnRemove() @@ -108,20 +109,39 @@ namespace Content.Client.GameObjects.Components.Storage private Label Information; public ClientStorageComponent StorageEntity; - protected override ResourcePath ScenePath => new ResourcePath("/Scenes/Storage/Storage.tscn"); - public StorageWindow(IDisplayManager displayMan) : base(displayMan) { } protected override void Initialize() { base.Initialize(); + Title = "Storage Item"; HideOnClose = true; + Visible = false; + RectClipContent = true; - // Get all the controls. - VSplitContainer = Contents.GetChild("VSplitContainer"); - EntityList = VSplitContainer.GetChild("ListScrollContainer").GetChild("EntityList"); - Information = VSplitContainer.GetChild