PopupSystem public methods rejig (#12830)
This commit is contained in:
@@ -272,7 +272,7 @@ public sealed class ArtifactAnalyzerSystem : EntitySystem
|
||||
if (msg == null)
|
||||
return;
|
||||
|
||||
_popup.PopupEntity(Loc.GetString("analysis-console-print-popup"), uid, Filter.Pvs(uid));
|
||||
_popup.PopupEntity(Loc.GetString("analysis-console-print-popup"), uid);
|
||||
_paper.SetContent(report, msg.ToMarkup());
|
||||
UpdateUserInterface(uid, component);
|
||||
}
|
||||
@@ -351,7 +351,7 @@ public sealed class ArtifactAnalyzerSystem : EntitySystem
|
||||
_audio.PlayPvs(component.DestroySound, component.AnalyzerEntity.Value, AudioParams.Default.WithVolume(2f));
|
||||
|
||||
_popup.PopupEntity(Loc.GetString("analyzer-artifact-destroy-popup"),
|
||||
component.AnalyzerEntity.Value, Filter.Pvs(component.AnalyzerEntity.Value), PopupType.Large);
|
||||
component.AnalyzerEntity.Value, PopupType.Large);
|
||||
|
||||
UpdateUserInterface(uid, component);
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ public sealed class TraversalDistorterSystem : EntitySystem
|
||||
toPopup = Loc.GetString("traversal-distorter-set-out");
|
||||
break;
|
||||
}
|
||||
_popup.PopupEntity(toPopup, uid, Filter.Pvs(uid));
|
||||
_popup.PopupEntity(toPopup, uid);
|
||||
}
|
||||
|
||||
private void OnExamine(EntityUid uid, TraversalDistorterComponent component, ExaminedEvent args)
|
||||
|
||||
@@ -23,7 +23,7 @@ public sealed class RandomTeleportArtifactSystem : EntitySystem
|
||||
private void OnActivate(EntityUid uid, RandomTeleportArtifactComponent component, ArtifactActivatedEvent args)
|
||||
{
|
||||
var xform = Transform(uid);
|
||||
_popup.PopupCoordinates(Loc.GetString("blink-artifact-popup"), xform.Coordinates, Filter.Pvs(uid), PopupType.Medium);
|
||||
_popup.PopupCoordinates(Loc.GetString("blink-artifact-popup"), xform.Coordinates, PopupType.Medium);
|
||||
|
||||
xform.Coordinates = xform.Coordinates.Offset(_random.NextVector2(component.Range));
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ public sealed class TelepathicArtifactSystem : EntitySystem
|
||||
var msg = Loc.GetString(msgId);
|
||||
|
||||
// show it as a popup, but only for the victim
|
||||
_popupSystem.PopupEntity(msg, victimUid, Filter.Entities(victimUid));
|
||||
_popupSystem.PopupEntity(msg, victimUid, victimUid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user