mirror of
https://github.com/wega-team/ss14-wega.git
synced 2026-06-09 10:06:49 +02:00
29 lines
682 B
C#
29 lines
682 B
C#
using Content.Shared.Blood.Cult;
|
|
using Robust.Client.UserInterface;
|
|
|
|
namespace Content.Client._Wega.BloodCult.Ui;
|
|
|
|
public sealed partial class SummoningRuneBoundUserInterface : BoundUserInterface
|
|
{
|
|
[ViewVariables]
|
|
private SummoningRuneMenu? _menu;
|
|
|
|
public SummoningRuneBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey)
|
|
{
|
|
}
|
|
|
|
protected override void Open()
|
|
{
|
|
base.Open();
|
|
|
|
_menu = this.CreateWindow<SummoningRuneMenu>();
|
|
_menu.OnCultistSelected += cultist =>
|
|
{
|
|
SendMessage(new SummoningRuneSelectCultistMessage(cultist));
|
|
Close();
|
|
};
|
|
|
|
_menu.OpenCentered();
|
|
}
|
|
}
|