Update content vectors to numerics (#17759)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System.Numerics;
|
||||
using Content.Client.Resources;
|
||||
using Robust.Client.Graphics;
|
||||
using Robust.Client.ResourceManagement;
|
||||
@@ -77,7 +78,7 @@ namespace Content.Client.Stylesheets
|
||||
|
||||
BaseButtonOpenRight = new StyleBoxTexture(BaseButton)
|
||||
{
|
||||
Texture = new AtlasTexture(buttonTex, UIBox2.FromDimensions((0, 0), (14, 24))),
|
||||
Texture = new AtlasTexture(buttonTex, UIBox2.FromDimensions(new Vector2(0, 0), new Vector2(14, 24))),
|
||||
};
|
||||
BaseButtonOpenRight.SetPatchMargin(StyleBox.Margin.Right, 0);
|
||||
BaseButtonOpenRight.SetContentMarginOverride(StyleBox.Margin.Right, 8);
|
||||
@@ -85,7 +86,7 @@ namespace Content.Client.Stylesheets
|
||||
|
||||
BaseButtonOpenLeft = new StyleBoxTexture(BaseButton)
|
||||
{
|
||||
Texture = new AtlasTexture(buttonTex, UIBox2.FromDimensions((10, 0), (14, 24))),
|
||||
Texture = new AtlasTexture(buttonTex, UIBox2.FromDimensions(new Vector2(10, 0), new Vector2(14, 24))),
|
||||
};
|
||||
BaseButtonOpenLeft.SetPatchMargin(StyleBox.Margin.Left, 0);
|
||||
BaseButtonOpenLeft.SetContentMarginOverride(StyleBox.Margin.Left, 8);
|
||||
@@ -93,7 +94,7 @@ namespace Content.Client.Stylesheets
|
||||
|
||||
BaseButtonOpenBoth = new StyleBoxTexture(BaseButton)
|
||||
{
|
||||
Texture = new AtlasTexture(buttonTex, UIBox2.FromDimensions((10, 0), (3, 24))),
|
||||
Texture = new AtlasTexture(buttonTex, UIBox2.FromDimensions(new Vector2(10, 0), new Vector2(3, 24))),
|
||||
};
|
||||
BaseButtonOpenBoth.SetPatchMargin(StyleBox.Margin.Horizontal, 0);
|
||||
BaseButtonOpenBoth.SetContentMarginOverride(StyleBox.Margin.Horizontal, 8);
|
||||
@@ -102,7 +103,7 @@ namespace Content.Client.Stylesheets
|
||||
|
||||
BaseButtonSquare = new StyleBoxTexture(BaseButton)
|
||||
{
|
||||
Texture = new AtlasTexture(buttonTex, UIBox2.FromDimensions((10, 0), (3, 24))),
|
||||
Texture = new AtlasTexture(buttonTex, UIBox2.FromDimensions(new Vector2(10, 0), new Vector2(3, 24))),
|
||||
};
|
||||
BaseButtonSquare.SetPatchMargin(StyleBox.Margin.Horizontal, 0);
|
||||
BaseButtonSquare.SetContentMarginOverride(StyleBox.Margin.Horizontal, 8);
|
||||
|
||||
Reference in New Issue
Block a user