Files
tbd-station-14/Content.Server/Popups/PopupSystem.cs
Kara dc28b58468 Visual popup types (#9523)
* Visual popup types

* Pass over `PopupCoordinates` and `PopupCursor`

* `PopupEntity` pass

* Disease and reagent popup pass

* COLOUR
2022-07-09 04:09:52 -05:00

25 lines
863 B
C#

using Content.Shared.Popups;
using Robust.Shared.Map;
using Robust.Shared.Player;
namespace Content.Server.Popups
{
public sealed class PopupSystem : SharedPopupSystem
{
public override void PopupCursor(string message, Filter filter, PopupType type=PopupType.Small)
{
RaiseNetworkEvent(new PopupCursorEvent(message, type), filter);
}
public override void PopupCoordinates(string message, EntityCoordinates coordinates, Filter filter, PopupType type=PopupType.Small)
{
RaiseNetworkEvent(new PopupCoordinatesEvent(message, type, coordinates), filter);
}
public override void PopupEntity(string message, EntityUid uid, Filter filter, PopupType type=PopupType.Small)
{
RaiseNetworkEvent(new PopupEntityEvent(message, type, uid), filter);
}
}
}