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:
@@ -32,7 +32,7 @@ namespace Content.Client.GameObjects.Components.Storage
|
||||
base.OnAdd();
|
||||
|
||||
Window = new StorageWindow(IoCManager.Resolve<IDisplayManager>())
|
||||
{ StorageEntity = this, Size = new Vector2(180.0f, 320.0f)};
|
||||
{ StorageEntity = this};
|
||||
}
|
||||
|
||||
public override void OnRemove()
|
||||
@@ -109,7 +109,10 @@ namespace Content.Client.GameObjects.Components.Storage
|
||||
private Label Information;
|
||||
public ClientStorageComponent StorageEntity;
|
||||
|
||||
public StorageWindow(IDisplayManager displayMan) : base(displayMan) { }
|
||||
public StorageWindow(IDisplayManager displayMan) : base(displayMan)
|
||||
{
|
||||
Size = new Vector2(180.0f, 320.0f);
|
||||
}
|
||||
|
||||
protected override void Initialize()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user