Replace most VBox/HBoxContainers with BoxContainers (#4274)
This commit is contained in:
@@ -12,6 +12,7 @@ using Robust.Shared.Localization;
|
||||
using Robust.Shared.Maths;
|
||||
using Robust.Shared.Timing;
|
||||
using Robust.Shared.Utility;
|
||||
using static Robust.Client.UserInterface.Controls.BoxContainer;
|
||||
|
||||
namespace Content.Client.EscapeMenu.UI
|
||||
{
|
||||
@@ -40,9 +41,14 @@ namespace Content.Client.EscapeMenu.UI
|
||||
IoCManager.InjectDependencies(this);
|
||||
|
||||
Button resetAllButton;
|
||||
var vBox = new VBoxContainer {Margin = new Thickness(2, 0, 0, 0)};
|
||||
AddChild(new VBoxContainer
|
||||
var vBox = new BoxContainer
|
||||
{
|
||||
Orientation = LayoutOrientation.Vertical,
|
||||
Margin = new Thickness(2, 0, 0, 0)
|
||||
};
|
||||
AddChild(new BoxContainer
|
||||
{
|
||||
Orientation = LayoutOrientation.Vertical,
|
||||
Children =
|
||||
{
|
||||
new ScrollContainer
|
||||
@@ -57,8 +63,9 @@ namespace Content.Client.EscapeMenu.UI
|
||||
HasMargins = false,
|
||||
Children =
|
||||
{
|
||||
new HBoxContainer
|
||||
new BoxContainer
|
||||
{
|
||||
Orientation = LayoutOrientation.Horizontal,
|
||||
Children =
|
||||
{
|
||||
new Control {MinSize = (2, 0)},
|
||||
@@ -413,8 +420,9 @@ namespace Content.Client.EscapeMenu.UI
|
||||
BindButton2 = new BindButton(parent, this, StyleBase.ButtonOpenLeft);
|
||||
ResetButton = new Button {Text = Loc.GetString("ui-options-bind-reset"), StyleClasses = {StyleBase.ButtonCaution}};
|
||||
|
||||
var hBox = new HBoxContainer
|
||||
var hBox = new BoxContainer
|
||||
{
|
||||
Orientation = LayoutOrientation.Horizontal,
|
||||
Children =
|
||||
{
|
||||
new Control {MinSize = (5, 0)},
|
||||
|
||||
Reference in New Issue
Block a user