Update content vectors to numerics (#17759)
This commit is contained in:
@@ -14,6 +14,7 @@ using Robust.Shared.Input.Binding;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Utility;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using System.Threading;
|
||||
using Content.Shared.Eye.Blinding.Components;
|
||||
using Robust.Client;
|
||||
@@ -209,7 +210,7 @@ namespace Content.Client.Examine
|
||||
hBox.AddChild(new SpriteView
|
||||
{
|
||||
Sprite = sprite, OverrideDirection = Direction.South,
|
||||
SetSize = (32, 32),
|
||||
SetSize = new Vector2(32, 32),
|
||||
Margin = new Thickness(2, 0, 2, 0),
|
||||
});
|
||||
}
|
||||
@@ -231,8 +232,8 @@ namespace Content.Client.Examine
|
||||
});
|
||||
}
|
||||
|
||||
panel.Measure(Vector2.Infinity);
|
||||
var size = Vector2.ComponentMax((minWidth, 0), panel.DesiredSize);
|
||||
panel.Measure(Vector2Helpers.Infinity);
|
||||
var size = Vector2.Max(new Vector2(minWidth, 0), panel.DesiredSize);
|
||||
|
||||
_examineTooltipOpen.Open(UIBox2.FromDimensions(_popupPos.Position, size));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user