PopupSystem public methods rejig (#12830)
This commit is contained in:
@@ -216,7 +216,7 @@ namespace Content.Server.Strip
|
||||
{
|
||||
var message = Loc.GetString("strippable-component-alert-owner-insert",
|
||||
("user", Identity.Entity(user, EntityManager)), ("item", userHands.ActiveHandEntity));
|
||||
_popupSystem.PopupEntity(message, component.Owner, Filter.Entities(component.Owner), PopupType.Large);
|
||||
_popupSystem.PopupEntity(message, component.Owner, component.Owner, PopupType.Large);
|
||||
}
|
||||
|
||||
var result = await _doAfterSystem.WaitDoAfter(doAfterArgs);
|
||||
@@ -285,7 +285,7 @@ namespace Content.Server.Strip
|
||||
if (handSlot.HeldEntity != null)
|
||||
{
|
||||
_popupSystem.PopupEntity(Loc.GetString("strippable-component-alert-owner-insert", ("user", Identity.Entity(user, EntityManager)), ("item", handSlot.HeldEntity)), component.Owner,
|
||||
Filter.Entities(component.Owner), PopupType.Large);
|
||||
component.Owner, PopupType.Large);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -351,12 +351,12 @@ namespace Content.Server.Strip
|
||||
if (slotDef.StripHidden)
|
||||
{
|
||||
_popupSystem.PopupEntity(Loc.GetString("strippable-component-alert-owner-hidden", ("slot", slot)), component.Owner,
|
||||
Filter.Entities(component.Owner), PopupType.Large);
|
||||
component.Owner, PopupType.Large);
|
||||
}
|
||||
else if (_inventorySystem.TryGetSlotEntity(component.Owner, slot, out var slotItem))
|
||||
{
|
||||
_popupSystem.PopupEntity(Loc.GetString("strippable-component-alert-owner", ("user", Identity.Entity(user, EntityManager)), ("item", slotItem)), component.Owner,
|
||||
Filter.Entities(component.Owner), PopupType.Large);
|
||||
component.Owner, PopupType.Large);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -419,7 +419,7 @@ namespace Content.Server.Strip
|
||||
{
|
||||
if (handSlot.HeldEntity != null)
|
||||
{
|
||||
_popupSystem.PopupEntity(Loc.GetString("strippable-component-alert-owner", ("user", Identity.Entity(user, EntityManager)), ("item", handSlot.HeldEntity)), component.Owner, Filter.Entities(component.Owner));
|
||||
_popupSystem.PopupEntity(Loc.GetString("strippable-component-alert-owner", ("user", Identity.Entity(user, EntityManager)), ("item", handSlot.HeldEntity)), component.Owner, component.Owner);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user