Use SetAnchorPreset instead of manually setting each anchor
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
using Content.Client.GameObjects.Components.Construction;
|
using Content.Client.GameObjects.Components.Construction;
|
||||||
using Robust.Client.Interfaces.Graphics;
|
using Robust.Client.Interfaces.Graphics;
|
||||||
using Robust.Client.UserInterface.Controls;
|
using Robust.Client.UserInterface.Controls;
|
||||||
using Robust.Shared.Maths;
|
using Robust.Shared.Maths;
|
||||||
@@ -27,10 +27,7 @@ namespace Content.Client.Construction
|
|||||||
{
|
{
|
||||||
base.Initialize();
|
base.Initialize();
|
||||||
|
|
||||||
AnchorLeft = 1.0f;
|
SetAnchorPreset(LayoutPreset.BottomRight);
|
||||||
AnchorTop = 1.0f;
|
|
||||||
AnchorRight = 1.0f;
|
|
||||||
AnchorBottom = 1.0f;
|
|
||||||
MarginLeft = -110.0f;
|
MarginLeft = -110.0f;
|
||||||
MarginTop = -70.0f;
|
MarginTop = -70.0f;
|
||||||
MarginRight = -50.0f;
|
MarginRight = -50.0f;
|
||||||
|
|||||||
Reference in New Issue
Block a user