PopupSystem public methods rejig (#12830)
This commit is contained in:
@@ -68,11 +68,11 @@ public sealed class InteractionPopupSystem : EntitySystem
|
||||
{
|
||||
string msgOthers = Loc.GetString(component.MessagePerceivedByOthers,
|
||||
("user", Identity.Entity(args.User, EntityManager)), ("target", Identity.Entity(uid, EntityManager)));
|
||||
_popupSystem.PopupEntity(msg, uid, Filter.Entities(args.User));
|
||||
_popupSystem.PopupEntity(msgOthers, uid, Filter.Pvs(uid, 2F, EntityManager).RemoveWhereAttachedEntity(puid => puid == args.User));
|
||||
_popupSystem.PopupEntity(msg, uid, args.User);
|
||||
_popupSystem.PopupEntity(msgOthers, uid, Filter.PvsExcept(args.User, entityManager: EntityManager), true);
|
||||
}
|
||||
else
|
||||
_popupSystem.PopupEntity(msg, uid, Filter.Entities(args.User)); //play only for the initiating entity.
|
||||
_popupSystem.PopupEntity(msg, uid, args.User); //play only for the initiating entity.
|
||||
|
||||
if (sfx is not null) //not all cases will have sound.
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user