PopupSystem public methods rejig (#12830)
This commit is contained in:
@@ -54,11 +54,11 @@ namespace Content.Server.Toilet
|
||||
{
|
||||
var othersMessage = Loc.GetString("toilet-component-suicide-head-message-others",
|
||||
("victim", Identity.Entity(args.Victim, EntityManager)), ("owner", uid));
|
||||
_popupSystem.PopupEntity(othersMessage, uid, Filter.PvsExcept(args.Victim), PopupType.MediumCaution);
|
||||
_popupSystem.PopupEntity(othersMessage, uid, Filter.PvsExcept(args.Victim), true, PopupType.MediumCaution);
|
||||
|
||||
var selfMessage = Loc.GetString("toilet-component-suicide-head-message",
|
||||
("owner", uid));
|
||||
_popupSystem.PopupEntity(selfMessage, uid, Filter.Entities(args.Victim), PopupType.LargeCaution);
|
||||
_popupSystem.PopupEntity(selfMessage, uid, args.Victim, PopupType.LargeCaution);
|
||||
|
||||
args.SetHandled(SuicideKind.Asphyxiation);
|
||||
}
|
||||
@@ -66,11 +66,11 @@ namespace Content.Server.Toilet
|
||||
{
|
||||
var othersMessage = Loc.GetString("toilet-component-suicide-message-others",
|
||||
("victim", Identity.Entity(args.Victim, EntityManager)), ("owner", uid));
|
||||
_popupSystem.PopupEntity(othersMessage, uid, Filter.PvsExcept(uid), PopupType.MediumCaution);
|
||||
_popupSystem.PopupEntity(othersMessage, uid, Filter.PvsExcept(uid), true, PopupType.MediumCaution);
|
||||
|
||||
var selfMessage = Loc.GetString("toilet-component-suicide-message",
|
||||
("owner", uid));
|
||||
_popupSystem.PopupEntity(selfMessage, uid, Filter.Entities(args.Victim), PopupType.LargeCaution);
|
||||
_popupSystem.PopupEntity(selfMessage, uid, args.Victim, PopupType.LargeCaution);
|
||||
|
||||
args.SetHandled(SuicideKind.Blunt);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user