Get rid of any usage of VBoxContainer/HBoxContainer (#4653)

Co-authored-by: Swept <sweptwastaken@protonmail.com>
This commit is contained in:
Visne
2021-09-19 19:56:04 +02:00
committed by GitHub
parent 73171835f1
commit 5451f9eda1
12 changed files with 30 additions and 22 deletions

View File

@@ -158,7 +158,6 @@ namespace Content.Client.Storage
private void ChangeStorageVisualization(SharedBagState state)
{
if (Owner.TryGetComponent<AppearanceComponent>(out var appearanceComponent))
{
appearanceComponent.SetData(SharedBagOpenVisuals.BagState, state);
@@ -200,8 +199,9 @@ namespace Content.Client.Storage
entity.TryGetComponent(out ISpriteComponent? sprite);
entity.TryGetComponent(out ItemComponent? item);
button.AddChild(new HBoxContainer
button.AddChild(new BoxContainer
{
Orientation = LayoutOrientation.Horizontal,
SeparationOverride = 2,
Children =
{