перенос файлов клиента из папки White в _White
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
using Content.Client.Eui;
|
||||
using Content.Shared.White.GhostRecruitment;
|
||||
using Robust.Client.Graphics;
|
||||
|
||||
namespace Content.Client._White.GhostRecruitment;
|
||||
|
||||
public sealed class GhostRecruitmentEuiAccept : BaseEui
|
||||
{
|
||||
private readonly GhostRecruitmentEuiAcceptWindow _window;
|
||||
|
||||
public GhostRecruitmentEuiAccept()
|
||||
{
|
||||
_window = new GhostRecruitmentEuiAcceptWindow();
|
||||
|
||||
_window.DenyButton.OnPressed += _ =>
|
||||
{
|
||||
SendMessage(new AcceptRecruitmentChoiceMessage(AcceptRecruitmentUiButton.Deny));
|
||||
_window.Close();
|
||||
};
|
||||
|
||||
_window.OnClose += () => SendMessage(new AcceptRecruitmentChoiceMessage(AcceptRecruitmentUiButton.Deny));
|
||||
|
||||
_window.AcceptButton.OnPressed += _ =>
|
||||
{
|
||||
SendMessage(new AcceptRecruitmentChoiceMessage(AcceptRecruitmentUiButton.Accept));
|
||||
_window.Close();
|
||||
};
|
||||
}
|
||||
|
||||
public override void Opened()
|
||||
{
|
||||
IoCManager.Resolve<IClyde>().RequestWindowAttention();
|
||||
_window.OpenCentered();
|
||||
}
|
||||
|
||||
public override void Closed()
|
||||
{
|
||||
_window.Close();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
using System.Numerics;
|
||||
using Robust.Client.UserInterface;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
using Robust.Client.UserInterface.CustomControls;
|
||||
using static Robust.Client.UserInterface.Controls.BoxContainer;
|
||||
|
||||
namespace Content.Client._White.GhostRecruitment;
|
||||
|
||||
public sealed class GhostRecruitmentEuiAcceptWindow : DefaultWindow
|
||||
{
|
||||
public readonly Button DenyButton;
|
||||
public readonly Button AcceptButton;
|
||||
|
||||
public GhostRecruitmentEuiAcceptWindow()
|
||||
{
|
||||
|
||||
Title = Loc.GetString("accept-ert-window-title");
|
||||
|
||||
Contents.AddChild(new BoxContainer
|
||||
{
|
||||
Orientation = LayoutOrientation.Vertical,
|
||||
Children =
|
||||
{
|
||||
new BoxContainer
|
||||
{
|
||||
Orientation = LayoutOrientation.Vertical,
|
||||
Children =
|
||||
{
|
||||
(new Label()
|
||||
{
|
||||
Text = Loc.GetString("accept-ert-window-prompt-text-part")
|
||||
}),
|
||||
new BoxContainer
|
||||
{
|
||||
Orientation = LayoutOrientation.Horizontal,
|
||||
Align = AlignMode.Center,
|
||||
Children =
|
||||
{
|
||||
(AcceptButton = new Button
|
||||
{
|
||||
Text = Loc.GetString("accept-cloning-window-accept-button"),
|
||||
}),
|
||||
|
||||
(new Control()
|
||||
{
|
||||
MinSize = new Vector2(20, 0)
|
||||
}),
|
||||
|
||||
(DenyButton = new Button
|
||||
{
|
||||
Text = Loc.GetString("accept-cloning-window-deny-button"),
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user