PopupSystem public methods rejig (#12830)
This commit is contained in:
@@ -242,7 +242,7 @@ namespace Content.Server.Disease
|
||||
{
|
||||
var CureTuple = (carrier, disease);
|
||||
CureQueue.Enqueue(CureTuple);
|
||||
_popupSystem.PopupEntity(Loc.GetString("disease-cured"), carrier.Owner, Filter.Entities(carrier.Owner));
|
||||
_popupSystem.PopupEntity(Loc.GetString("disease-cured"), carrier.Owner, carrier.Owner);
|
||||
}
|
||||
|
||||
public void CureAllDiseases(EntityUid uid, DiseaseCarrierComponent? carrier = null)
|
||||
@@ -298,7 +298,7 @@ namespace Content.Server.Disease
|
||||
|
||||
if (vaxx.Used)
|
||||
{
|
||||
_popupSystem.PopupEntity(Loc.GetString("vaxx-already-used"), args.User, Filter.Entities(args.User));
|
||||
_popupSystem.PopupEntity(Loc.GetString("vaxx-already-used"), args.User, args.User);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -450,7 +450,7 @@ namespace Content.Server.Disease
|
||||
if (attemptSneezeCoughEvent.Cancelled) return false;
|
||||
|
||||
if (!string.IsNullOrEmpty(snoughMessage))
|
||||
_popupSystem.PopupEntity(Loc.GetString(snoughMessage, ("person", Identity.Entity(uid, EntityManager))), uid, Filter.Pvs(uid));
|
||||
_popupSystem.PopupEntity(Loc.GetString(snoughMessage, ("person", Identity.Entity(uid, EntityManager))), uid);
|
||||
|
||||
if (snoughSound != null)
|
||||
_audioSystem.PlayPvs(snoughSound, uid);
|
||||
|
||||
Reference in New Issue
Block a user