mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-12 11:51:11 +03:00
40 lines
961 B
C#
40 lines
961 B
C#
using Content.Client.Eui;
|
|
using Content.Shared.Cloning;
|
|
using JetBrains.Annotations;
|
|
|
|
namespace Content.Client.Cloning.UI
|
|
{
|
|
[UsedImplicitly]
|
|
public sealed 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();
|
|
}
|
|
|
|
}
|
|
}
|