* Visual popup types * Pass over `PopupCoordinates` and `PopupCursor` * `PopupEntity` pass * Disease and reagent popup pass * COLOUR
25 lines
863 B
C#
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);
|
|
}
|
|
}
|
|
}
|