From b9f7c65c0552acb4e9b8ea1e20f8a99cbf2e7d42 Mon Sep 17 00:00:00 2001 From: moneyl <8206401+Moneyl@users.noreply.github.com> Date: Fri, 24 May 2019 16:25:07 -0400 Subject: [PATCH] Use SetAnchorPreset instead of manually setting each anchor --- Content.Client/Construction/ConstructionButton.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Content.Client/Construction/ConstructionButton.cs b/Content.Client/Construction/ConstructionButton.cs index f57f54a0ff..ecf00408f8 100644 --- a/Content.Client/Construction/ConstructionButton.cs +++ b/Content.Client/Construction/ConstructionButton.cs @@ -1,4 +1,4 @@ -using Content.Client.GameObjects.Components.Construction; +using Content.Client.GameObjects.Components.Construction; using Robust.Client.Interfaces.Graphics; using Robust.Client.UserInterface.Controls; using Robust.Shared.Maths; @@ -27,10 +27,7 @@ namespace Content.Client.Construction { base.Initialize(); - AnchorLeft = 1.0f; - AnchorTop = 1.0f; - AnchorRight = 1.0f; - AnchorBottom = 1.0f; + SetAnchorPreset(LayoutPreset.BottomRight); MarginLeft = -110.0f; MarginTop = -70.0f; MarginRight = -50.0f;