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

@@ -8,6 +8,7 @@ using Content.Server.Mind.Components;
using Robust.Server.GameObjects;
using Robust.Shared.Player;
using Content.Shared.Interaction.Events;
using Content.Shared.Popups;
namespace Content.Server.PAI
{
@@ -58,7 +59,7 @@ namespace Content.Server.PAI
// Check for pAI activation
if (EntityManager.TryGetComponent<MindComponent>(uid, out var mind) && mind.HasMind)
{
_popupSystem.PopupEntity(Loc.GetString("pai-system-pai-installed"), uid, Filter.Entities(args.User));
_popupSystem.PopupEntity(Loc.GetString("pai-system-pai-installed"), uid, Filter.Entities(args.User), PopupType.Large);
return;
}
else if (EntityManager.HasComponent<GhostTakeoverAvailableComponent>(uid))
@@ -141,7 +142,7 @@ namespace Content.Server.PAI
if (EntityManager.HasComponent<MindComponent>(uid))
{
EntityManager.RemoveComponent<MindComponent>(uid);
_popupSystem.PopupEntity(Loc.GetString("pai-system-wiped-device"), uid, Filter.Entities(args.User));
_popupSystem.PopupEntity(Loc.GetString("pai-system-wiped-device"), uid, Filter.Entities(args.User), PopupType.Large);
PAITurningOff(uid);
}
};