From 5451f9eda17d73862ac0626caf5518bc30072629 Mon Sep 17 00:00:00 2001 From: Visne <39844191+Visne@users.noreply.github.com> Date: Sun, 19 Sep 2021 19:56:04 +0200 Subject: [PATCH] Get rid of any usage of VBoxContainer/HBoxContainer (#4653) Co-authored-by: Swept --- .../UI/CustomControls/PlayerListControl.xaml | 10 +++++----- .../UI/CustomControls/PlayerListControl.xaml.cs | 2 +- .../CharacterInfo/Components/CharacterInfoComponent.cs | 4 +++- Content.Client/Chemistry/UI/TransferAmountWindow.xaml | 8 ++++---- Content.Client/DoAfter/UI/DoAfterGui.cs | 4 +++- Content.Client/Ghost/Roles/UI/GhostRolesEntry.xaml | 5 ++--- Content.Client/Ghost/Roles/UI/GhostRolesEntry.xaml.cs | 2 +- Content.Client/HealthOverlay/UI/HealthOverlayGui.cs | 3 ++- Content.Client/Info/ServerInfo.cs | 4 +++- Content.Client/Storage/ClientStorageComponent.cs | 4 ++-- Content.Client/Stylesheets/StyleNano.cs | 2 +- Content.Client/Targeting/TargetingDoll.cs | 4 +++- 12 files changed, 30 insertions(+), 22 deletions(-) diff --git a/Content.Client/Administration/UI/CustomControls/PlayerListControl.xaml b/Content.Client/Administration/UI/CustomControls/PlayerListControl.xaml index 4f64435d42..4007a99487 100644 --- a/Content.Client/Administration/UI/CustomControls/PlayerListControl.xaml +++ b/Content.Client/Administration/UI/CustomControls/PlayerListControl.xaml @@ -1,13 +1,13 @@ - - + + - + + MinSize="100 100" /> diff --git a/Content.Client/Administration/UI/CustomControls/PlayerListControl.xaml.cs b/Content.Client/Administration/UI/CustomControls/PlayerListControl.xaml.cs index fa1dfeb613..9877433289 100644 --- a/Content.Client/Administration/UI/CustomControls/PlayerListControl.xaml.cs +++ b/Content.Client/Administration/UI/CustomControls/PlayerListControl.xaml.cs @@ -10,7 +10,7 @@ using Robust.Shared.Players; namespace Content.Client.Administration.UI.CustomControls { [GenerateTypedNameReferences] - public partial class PlayerListControl : VBoxContainer + public partial class PlayerListControl : BoxContainer { private List? _data; diff --git a/Content.Client/CharacterInfo/Components/CharacterInfoComponent.cs b/Content.Client/CharacterInfo/Components/CharacterInfoComponent.cs index ce4f536335..fd0c1d5463 100644 --- a/Content.Client/CharacterInfo/Components/CharacterInfoComponent.cs +++ b/Content.Client/CharacterInfo/Components/CharacterInfoComponent.cs @@ -56,7 +56,7 @@ namespace Content.Client.CharacterInfo.Components } } - private sealed class CharacterInfoControl : VBoxContainer + private sealed class CharacterInfoControl : BoxContainer { public SpriteView SpriteView { get; } public Label NameLabel { get; } @@ -68,6 +68,8 @@ namespace Content.Client.CharacterInfo.Components { IoCManager.InjectDependencies(this); + Orientation = LayoutOrientation.Vertical; + AddChild(new BoxContainer { Orientation = LayoutOrientation.Horizontal, diff --git a/Content.Client/Chemistry/UI/TransferAmountWindow.xaml b/Content.Client/Chemistry/UI/TransferAmountWindow.xaml index 50716c563c..63affa73b1 100644 --- a/Content.Client/Chemistry/UI/TransferAmountWindow.xaml +++ b/Content.Client/Chemistry/UI/TransferAmountWindow.xaml @@ -2,10 +2,10 @@ Title="{Loc 'ui-transfer-amount-title'}" Resizable="False"> - - + + - +