Replace most VBox/HBoxContainers with BoxContainers (#4274)
This commit is contained in:
@@ -16,6 +16,7 @@ using Robust.Shared.IoC;
|
||||
using Robust.Shared.Maths;
|
||||
using Robust.Shared.Network;
|
||||
using Robust.Shared.Players;
|
||||
using static Robust.Client.UserInterface.Controls.BoxContainer;
|
||||
|
||||
namespace Content.Client.Storage
|
||||
{
|
||||
@@ -177,7 +178,7 @@ namespace Content.Client.Storage
|
||||
private class StorageWindow : SS14Window
|
||||
{
|
||||
private Control VSplitContainer;
|
||||
private readonly VBoxContainer _entityList;
|
||||
private readonly BoxContainer _entityList;
|
||||
private readonly Label _information;
|
||||
public ClientStorageComponent StorageEntity;
|
||||
|
||||
@@ -213,8 +214,9 @@ namespace Content.Client.Storage
|
||||
}
|
||||
};
|
||||
|
||||
VSplitContainer = new VBoxContainer()
|
||||
VSplitContainer = new BoxContainer
|
||||
{
|
||||
Orientation = LayoutOrientation.Vertical,
|
||||
MouseFilter = MouseFilterMode.Ignore,
|
||||
};
|
||||
containerButton.AddChild(VSplitContainer);
|
||||
@@ -232,8 +234,9 @@ namespace Content.Client.Storage
|
||||
HScrollEnabled = false,
|
||||
VScrollEnabled = true,
|
||||
};
|
||||
_entityList = new VBoxContainer
|
||||
_entityList = new BoxContainer
|
||||
{
|
||||
Orientation = LayoutOrientation.Vertical,
|
||||
HorizontalExpand = true
|
||||
};
|
||||
listScrollContainer.AddChild(_entityList);
|
||||
@@ -346,7 +349,10 @@ namespace Content.Client.Storage
|
||||
};
|
||||
AddChild(ActualButton);
|
||||
|
||||
var hBoxContainer = new HBoxContainer();
|
||||
var hBoxContainer = new BoxContainer
|
||||
{
|
||||
Orientation = LayoutOrientation.Horizontal
|
||||
};
|
||||
EntitySpriteView = new SpriteView
|
||||
{
|
||||
MinSize = new Vector2(32.0f, 32.0f),
|
||||
|
||||
Reference in New Issue
Block a user