@@ -47,7 +47,7 @@ public sealed class RadarControl : MapGridControl
|
||||
/// <summary>
|
||||
/// Currently hovered docked to show on the map.
|
||||
/// </summary>
|
||||
public EntityUid? HighlightedDock;
|
||||
public NetEntity? HighlightedDock;
|
||||
|
||||
/// <summary>
|
||||
/// Raised if the user left-clicks on the radar control with the relevant entitycoordinates.
|
||||
@@ -325,14 +325,13 @@ public sealed class RadarControl : MapGridControl
|
||||
{
|
||||
foreach (var state in docks)
|
||||
{
|
||||
var ent = _entManager.GetEntity(state.Entity);
|
||||
var position = state.Coordinates.Position;
|
||||
var uiPosition = matrix.Transform(position);
|
||||
|
||||
if (uiPosition.Length() > WorldRange - DockScale)
|
||||
continue;
|
||||
|
||||
var color = HighlightedDock == ent ? state.HighlightedColor : state.Color;
|
||||
var color = HighlightedDock == state.Entity ? state.HighlightedColor : state.Color;
|
||||
|
||||
uiPosition.Y = -uiPosition.Y;
|
||||
|
||||
|
||||
@@ -234,7 +234,7 @@ public sealed partial class ShuttleConsoleWindow : FancyWindow,
|
||||
|
||||
private void OnDockMouseEntered(GUIMouseHoverEventArgs obj, DockingInterfaceState state)
|
||||
{
|
||||
RadarScreen.HighlightedDock = _entManager.GetEntity(state.Entity);
|
||||
RadarScreen.HighlightedDock = state.Entity;
|
||||
}
|
||||
|
||||
private void OnDockMouseExited(GUIMouseHoverEventArgs obj, DockingInterfaceState state)
|
||||
|
||||
Reference in New Issue
Block a user