Update content vectors to numerics (#17759)

This commit is contained in:
metalgearsloth
2023-07-08 14:08:32 +10:00
committed by GitHub
parent 15772478c9
commit 68480af109
383 changed files with 978 additions and 575 deletions

View File

@@ -1,3 +1,4 @@
using System.Numerics;
using Content.Client.Resources;
using Content.Client.Stylesheets;
using Content.Client.UserInterface.Controls;
@@ -51,7 +52,7 @@ namespace Content.Client.ParticleAccelerator.UI
public ParticleAcceleratorControlMenu(ParticleAcceleratorBoundUserInterface owner)
{
SetSize = (400, 320);
SetSize = new Vector2(400, 320);
_greyScaleShader = IoCManager.Resolve<IPrototypeManager>().Index<ShaderPrototype>("Greyscale").Instance();
_owner = owner;
@@ -159,11 +160,11 @@ namespace Content.Client.ParticleAccelerator.UI
new PanelContainer
{
PanelOverride = new StyleBoxFlat {BackgroundColor = StyleNano.NanoGold},
MinSize = (0, 2),
MinSize = new Vector2(0, 2),
},
new Control
{
MinSize = (0, 4)
MinSize = new Vector2(0, 4)
},
new BoxContainer
@@ -210,7 +211,7 @@ namespace Content.Client.ParticleAccelerator.UI
},
new Control
{
MinSize = (0, 10),
MinSize = new Vector2(0, 10),
},
_drawLabel,
new Control
@@ -237,7 +238,7 @@ namespace Content.Client.ParticleAccelerator.UI
new BoxContainer
{
Orientation = LayoutOrientation.Vertical,
MinSize = (186, 0),
MinSize = new Vector2(186, 0),
Children =
{
(_statusLabel = new Label
@@ -246,7 +247,7 @@ namespace Content.Client.ParticleAccelerator.UI
}),
new Control
{
MinSize = (0, 20)
MinSize = new Vector2(0, 20)
},
new PanelContainer
{