42 lines
1.0 KiB
C#
42 lines
1.0 KiB
C#
using Content.Client.Eui;
|
|
using Content.Shared.GameObjects.Components.Medical;
|
|
using Content.Shared.GameObjects.Components.Observer;
|
|
using JetBrains.Annotations;
|
|
|
|
namespace Content.Client.GameObjects.Components.Observer
|
|
{
|
|
[UsedImplicitly]
|
|
public class AcceptCloningEui : BaseEui
|
|
{
|
|
private readonly AcceptCloningWindow _window;
|
|
|
|
public AcceptCloningEui()
|
|
{
|
|
_window = new AcceptCloningWindow();
|
|
|
|
_window.DenyButton.OnPressed += _ =>
|
|
{
|
|
SendMessage(new AcceptCloningChoiceMessage(AcceptCloningUiButton.Deny));
|
|
_window.Close();
|
|
};
|
|
|
|
_window.AcceptButton.OnPressed += _ =>
|
|
{
|
|
SendMessage(new AcceptCloningChoiceMessage(AcceptCloningUiButton.Accept));
|
|
_window.Close();
|
|
};
|
|
}
|
|
|
|
public override void Opened()
|
|
{
|
|
_window.OpenCentered();
|
|
}
|
|
|
|
public override void Closed()
|
|
{
|
|
_window.Close();
|
|
}
|
|
|
|
}
|
|
}
|