Fix popups moving with the viewer (#7275)
This commit is contained in:
parent
39dd9cb3a1
commit
c19e268748
1 changed files with 1 additions and 6 deletions
|
|
@ -1,5 +1,3 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Content.Client.Stylesheets;
|
||||
using Content.Shared.GameTicking;
|
||||
using Content.Shared.Popups;
|
||||
|
|
@ -7,10 +5,7 @@ using Robust.Client.Graphics;
|
|||
using Robust.Client.Input;
|
||||
using Robust.Client.UserInterface;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.IoC;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Maths;
|
||||
using Robust.Shared.Player;
|
||||
using Robust.Shared.Timing;
|
||||
|
||||
|
|
@ -50,7 +45,7 @@ namespace Content.Client.Popups
|
|||
return;
|
||||
|
||||
var transform = EntityManager.GetComponent<TransformComponent>(uid);
|
||||
PopupMessage(message, _eyeManager.CoordinatesToScreen(transform.Coordinates));
|
||||
PopupMessage(message, _eyeManager.CoordinatesToScreen(transform.Coordinates), uid);
|
||||
}
|
||||
|
||||
public void PopupMessage(string message, ScreenCoordinates coordinates, EntityUid? entity = null)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue