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.Shared.VendingMachines;
using Robust.Client.AutoGenerated;
using Robust.Client.GameObjects;
@@ -18,7 +19,7 @@ namespace Content.Client.VendingMachines.UI
public VendingMachineMenu()
{
MinSize = SetSize = (250, 150);
MinSize = SetSize = new Vector2(250, 150);
RobustXamlLoader.Load(this);
IoCManager.InjectDependencies(this);
@@ -81,7 +82,7 @@ namespace Content.Client.VendingMachines.UI
private void SetSizeAfterUpdate(int longestEntryLength)
{
SetSize = (Math.Clamp((longestEntryLength + 2) * 12, 250, 300),
SetSize = new Vector2(Math.Clamp((longestEntryLength + 2) * 12, 250, 300),
Math.Clamp(VendingContents.Count * 50, 150, 350));
}
}