* Syndicate thief, spy, medic * Fixes description for nukies * update description for uplink * Implement the radial menu * forgot these were necessary to push lol --------- Co-authored-by: plykiya <plykiya@protonmail.com>
30 lines
844 B
C#
30 lines
844 B
C#
using Content.Shared.Ghost.Roles;
|
|
using Robust.Client.UserInterface;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Client.Ghost;
|
|
|
|
public sealed class GhostRoleRadioBoundUserInterface : BoundUserInterface
|
|
{
|
|
private GhostRoleRadioMenu? _ghostRoleRadioMenu;
|
|
|
|
public GhostRoleRadioBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey)
|
|
{
|
|
IoCManager.InjectDependencies(this);
|
|
}
|
|
|
|
protected override void Open()
|
|
{
|
|
base.Open();
|
|
|
|
_ghostRoleRadioMenu = this.CreateWindow<GhostRoleRadioMenu>();
|
|
_ghostRoleRadioMenu.SetEntity(Owner);
|
|
_ghostRoleRadioMenu.SendGhostRoleRadioMessageAction += SendGhostRoleRadioMessage;
|
|
}
|
|
|
|
public void SendGhostRoleRadioMessage(ProtoId<GhostRolePrototype> protoId)
|
|
{
|
|
SendMessage(new GhostRoleRadioMessage(protoId));
|
|
}
|
|
}
|