Visual popup types (#9523)

* Visual popup types

* Pass over `PopupCoordinates` and `PopupCursor`

* `PopupEntity` pass

* Disease and reagent popup pass

* COLOUR
This commit is contained in:
Kara
2022-07-09 02:09:52 -07:00
committed by GitHub
parent 1d3d8efbc9
commit dc28b58468
47 changed files with 272 additions and 117 deletions

View File

@@ -6,19 +6,19 @@ namespace Content.Server.Popups
{
public sealed class PopupSystem : SharedPopupSystem
{
public override void PopupCursor(string message, Filter filter)
public override void PopupCursor(string message, Filter filter, PopupType type=PopupType.Small)
{
RaiseNetworkEvent(new PopupCursorEvent(message), filter);
RaiseNetworkEvent(new PopupCursorEvent(message, type), filter);
}
public override void PopupCoordinates(string message, EntityCoordinates coordinates, Filter filter)
public override void PopupCoordinates(string message, EntityCoordinates coordinates, Filter filter, PopupType type=PopupType.Small)
{
RaiseNetworkEvent(new PopupCoordinatesEvent(message, coordinates), filter);
RaiseNetworkEvent(new PopupCoordinatesEvent(message, type, coordinates), filter);
}
public override void PopupEntity(string message, EntityUid uid, Filter filter)
public override void PopupEntity(string message, EntityUid uid, Filter filter, PopupType type=PopupType.Small)
{
RaiseNetworkEvent(new PopupEntityEvent(message, uid), filter);
RaiseNetworkEvent(new PopupEntityEvent(message, type, uid), filter);
}
}
}