PopupSystem public methods rejig (#12830)
This commit is contained in:
@@ -56,7 +56,7 @@ namespace Content.Server.Construction
|
||||
xform.Anchored = false;
|
||||
RaiseLocalEvent(uid, new UserUnanchoredEvent(args.User, args.Using));
|
||||
|
||||
_popup.PopupEntity(Loc.GetString("anchorable-unanchored"), uid, Filter.Pvs(uid, entityManager: EntityManager));
|
||||
_popup.PopupEntity(Loc.GetString("anchorable-unanchored"), uid);
|
||||
|
||||
_adminLogger.Add(
|
||||
LogType.Unanchor,
|
||||
@@ -77,7 +77,7 @@ namespace Content.Server.Construction
|
||||
if (TryComp<PhysicsComponent>(uid, out var anchorBody) &&
|
||||
!TileFree(xform.Coordinates, anchorBody))
|
||||
{
|
||||
_popup.PopupEntity(Loc.GetString("anchorable-occupied"), uid, Filter.Entities(args.User));
|
||||
_popup.PopupEntity(Loc.GetString("anchorable-occupied"), uid, args.User);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ namespace Content.Server.Construction
|
||||
xform.Anchored = true;
|
||||
RaiseLocalEvent(uid, new UserAnchoredEvent(args.User, args.Using));
|
||||
|
||||
_popup.PopupEntity(Loc.GetString("anchorable-anchored"), uid, Filter.Pvs(uid, entityManager: EntityManager));
|
||||
_popup.PopupEntity(Loc.GetString("anchorable-anchored"), uid);
|
||||
|
||||
_adminLogger.Add(
|
||||
LogType.Anchor,
|
||||
@@ -190,7 +190,7 @@ namespace Content.Server.Construction
|
||||
if (TryComp<PhysicsComponent>(uid, out var anchorBody) &&
|
||||
!TileFree(transform.Coordinates, anchorBody))
|
||||
{
|
||||
_popup.PopupEntity(Loc.GetString("anchorable-occupied"), uid, Filter.Entities(userUid));
|
||||
_popup.PopupEntity(Loc.GetString("anchorable-occupied"), uid, userUid);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user