PopupSystem public methods rejig (#12830)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using Content.Server.Administration;
|
||||
using Content.Server.Administration;
|
||||
using Content.Server.Bible.Components;
|
||||
using Content.Server.Chat.Managers;
|
||||
using Content.Server.Popups;
|
||||
@@ -48,7 +48,7 @@ public sealed class PrayerSystem : EntitySystem
|
||||
{
|
||||
if (comp.BibleUserOnly && !EntityManager.TryGetComponent<BibleUserComponent>(args.User, out var bibleUser))
|
||||
{
|
||||
_popupSystem.PopupEntity(Loc.GetString("prayer-popup-notify-locked"), uid, Filter.Empty().AddPlayer(actor.PlayerSession), PopupType.Large);
|
||||
_popupSystem.PopupEntity(Loc.GetString("prayer-popup-notify-locked"), uid, actor.PlayerSession, PopupType.Large);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ public sealed class PrayerSystem : EntitySystem
|
||||
|
||||
var message = popupMessage == "" ? "" : popupMessage + $" \"{messageString}\"";
|
||||
|
||||
_popupSystem.PopupEntity(popupMessage, target.AttachedEntity.Value, Filter.Empty().AddPlayer(target), PopupType.Large);
|
||||
_popupSystem.PopupEntity(popupMessage, target.AttachedEntity.Value, target, PopupType.Large);
|
||||
_chatManager.ChatMessageToOne(ChatChannel.Local, messageString, message, EntityUid.Invalid, false, target.ConnectedClient);
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ public sealed class PrayerSystem : EntitySystem
|
||||
return;
|
||||
|
||||
|
||||
_popupSystem.PopupEntity(Loc.GetString("prayer-popup-notify-sent"), sender.AttachedEntity.Value, Filter.Empty().AddPlayer(sender), PopupType.Medium);
|
||||
_popupSystem.PopupEntity(Loc.GetString("prayer-popup-notify-sent"), sender.AttachedEntity.Value, sender, PopupType.Medium);
|
||||
|
||||
_chatManager.SendAdminAnnouncement(Loc.GetString("prayer-chat-notify", ("name", sender.Name), ("message", message)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user