Update content vectors to numerics (#17759)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System.Numerics;
|
||||
using Content.Client.Hands.Systems;
|
||||
using Content.Shared.CCVar;
|
||||
using Robust.Client.GameObjects;
|
||||
@@ -63,10 +64,11 @@ namespace Content.Client.Hands
|
||||
|
||||
var screen = args.ScreenHandle;
|
||||
var offset = _cfg.GetCVar(CCVars.HudHeldItemOffset);
|
||||
var offsetVec = new Vector2(offset, offset);
|
||||
|
||||
if (IconOverride != null)
|
||||
{
|
||||
screen.DrawTexture(IconOverride, mousePos.Position - IconOverride.Size / 2 + offset, Color.White.WithAlpha(0.75f));
|
||||
screen.DrawTexture(IconOverride, mousePos.Position - IconOverride.Size / 2 + offsetVec, Color.White.WithAlpha(0.75f));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -84,7 +86,7 @@ namespace Content.Client.Hands
|
||||
screen.DrawEntity(handEntity.Value, halfSize, new Vector2(1f, 1f) * uiScale, Angle.Zero, Angle.Zero, Direction.South, sprite);
|
||||
}, Color.Transparent);
|
||||
|
||||
screen.DrawTexture(_renderBackbuffer.Texture, mousePos.Position - halfSize + offset, Color.White.WithAlpha(0.75f));
|
||||
screen.DrawTexture(_renderBackbuffer.Texture, mousePos.Position - halfSize + offsetVec, Color.White.WithAlpha(0.75f));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Numerics;
|
||||
using Content.Client.Animations;
|
||||
using Content.Client.Examine;
|
||||
using Content.Client.Strip;
|
||||
|
||||
Reference in New Issue
Block a user