перенос файлов клиента из папки White в _White

This commit is contained in:
Remuchi
2024-01-28 17:32:55 +07:00
parent c80b10a688
commit 21dbccfec9
139 changed files with 345 additions and 434 deletions

View File

@@ -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();
}
}

View File

@@ -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"),
})
}
},
}
},
}
});
}
}