Update content vectors to numerics (#17759)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System.Numerics;
|
||||
using Robust.Client.Graphics;
|
||||
using Robust.Client.UserInterface;
|
||||
using Robust.Shared.Timing;
|
||||
@@ -33,6 +34,10 @@ public abstract class MapGridControl : Control
|
||||
/// </summary>
|
||||
public float MaxRadarRange { get; private set; } = 256f * 10f;
|
||||
|
||||
public Vector2 MaxRadarRangeVector => new Vector2(MaxRadarRange, MaxRadarRange);
|
||||
|
||||
protected Vector2 MidpointVector => new Vector2(MidPoint, MidPoint);
|
||||
|
||||
protected int MidPoint => SizeFull / 2;
|
||||
protected int SizeFull => (int) ((UIDisplayRadius + MinimapMargin) * 2 * UIScale);
|
||||
protected int ScaledMinimapRadius => (int) (UIDisplayRadius * UIScale);
|
||||
@@ -43,7 +48,7 @@ public abstract class MapGridControl : Control
|
||||
public MapGridControl(float minRange, float maxRange, float range)
|
||||
{
|
||||
IoCManager.InjectDependencies(this);
|
||||
SetSize = (SizeFull, SizeFull);
|
||||
SetSize = new Vector2(SizeFull, SizeFull);
|
||||
RectClipContent = true;
|
||||
MouseFilter = MouseFilterMode.Stop;
|
||||
ActualRadarRange = WorldRange;
|
||||
|
||||
Reference in New Issue
Block a user