Update content vectors to numerics (#17759)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System.Numerics;
|
||||
using Content.Client.ContextMenu.UI;
|
||||
using Content.Shared.Verbs;
|
||||
using Robust.Client.GameObjects;
|
||||
@@ -48,7 +49,7 @@ namespace Content.Client.Verbs.UI
|
||||
var spriteView = new SpriteView()
|
||||
{
|
||||
OverrideDirection = Direction.South,
|
||||
SetSize = (ElementHeight, ElementHeight),
|
||||
SetSize = new Vector2(ElementHeight, ElementHeight),
|
||||
Sprite = entManager.GetComponentOrNull<SpriteComponent>(verb.IconEntity.Value)
|
||||
};
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using Content.Client.CombatMode;
|
||||
using Content.Client.ContextMenu.UI;
|
||||
using Content.Client.Gameplay;
|
||||
@@ -93,7 +94,7 @@ namespace Content.Client.Verbs.UI
|
||||
|
||||
// Show the menu at mouse pos
|
||||
menu.SetPositionLast();
|
||||
var box = UIBox2.FromDimensions(_userInterfaceManager.MousePositionScaled.Position, (1, 1));
|
||||
var box = UIBox2.FromDimensions(_userInterfaceManager.MousePositionScaled.Position, new Vector2(1, 1));
|
||||
menu.Open(box);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user