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