PopupSystem public methods rejig (#12830)
This commit is contained in:
@@ -145,7 +145,7 @@ namespace Content.Server.Forensics
|
||||
if (fiber == pad.Sample)
|
||||
{
|
||||
_audioSystem.PlayPvs(component.SoundMatch, uid);
|
||||
_popupSystem.PopupEntity(Loc.GetString("forensic-scanner-match-fiber"), uid, Filter.Entities(args.User));
|
||||
_popupSystem.PopupEntity(Loc.GetString("forensic-scanner-match-fiber"), uid, args.User);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -155,13 +155,13 @@ namespace Content.Server.Forensics
|
||||
if (fingerprint == pad.Sample)
|
||||
{
|
||||
_audioSystem.PlayPvs(component.SoundMatch, uid);
|
||||
_popupSystem.PopupEntity(Loc.GetString("forensic-scanner-match-fingerprint"), uid, Filter.Entities(args.User));
|
||||
_popupSystem.PopupEntity(Loc.GetString("forensic-scanner-match-fingerprint"), uid, args.User);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
_audioSystem.PlayPvs(component.SoundNoMatch, uid);
|
||||
_popupSystem.PopupEntity(Loc.GetString("forensic-scanner-match-none"), uid, Filter.Entities(args.User));
|
||||
_popupSystem.PopupEntity(Loc.GetString("forensic-scanner-match-none"), uid, args.User);
|
||||
}
|
||||
|
||||
private void OnBeforeActivatableUIOpen(EntityUid uid, ForensicScannerComponent component, BeforeActivatableUIOpenEvent args)
|
||||
@@ -193,7 +193,7 @@ namespace Content.Server.Forensics
|
||||
{
|
||||
// This shouldn't occur due to the UI guarding against it, but
|
||||
// if it does, tell the user why nothing happened.
|
||||
_popupSystem.PopupEntity(Loc.GetString("forensic-scanner-printer-not-ready"), uid, Filter.Entities(user));
|
||||
_popupSystem.PopupEntity(Loc.GetString("forensic-scanner-printer-not-ready"), uid, user);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user