2023-07-08 14:08:32 +10:00
|
|
|
using System.Numerics;
|
2021-06-21 02:13:54 +02:00
|
|
|
using Robust.Client.UserInterface;
|
2020-09-02 06:07:54 -04:00
|
|
|
using Robust.Client.UserInterface.Controls;
|
|
|
|
|
using Robust.Client.UserInterface.CustomControls;
|
|
|
|
|
using Robust.Shared.Localization;
|
2021-07-18 18:39:31 +02:00
|
|
|
using static Robust.Client.UserInterface.Controls.BoxContainer;
|
2020-09-02 06:07:54 -04:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Client.Cloning.UI
|
2020-09-02 06:07:54 -04:00
|
|
|
{
|
2022-01-21 01:38:35 -08:00
|
|
|
public sealed class AcceptCloningWindow : DefaultWindow
|
2020-09-02 06:07:54 -04:00
|
|
|
{
|
|
|
|
|
public readonly Button DenyButton;
|
2021-01-03 17:20:17 +01:00
|
|
|
public readonly Button AcceptButton;
|
2020-09-02 06:07:54 -04:00
|
|
|
|
|
|
|
|
public AcceptCloningWindow()
|
|
|
|
|
{
|
|
|
|
|
|
2021-06-21 02:13:54 +02:00
|
|
|
Title = Loc.GetString("accept-cloning-window-title");
|
2020-09-02 06:07:54 -04:00
|
|
|
|
2021-07-18 18:39:31 +02:00
|
|
|
Contents.AddChild(new BoxContainer
|
2020-09-02 06:07:54 -04:00
|
|
|
{
|
2021-07-18 18:39:31 +02:00
|
|
|
Orientation = LayoutOrientation.Vertical,
|
2020-09-02 06:07:54 -04:00
|
|
|
Children =
|
|
|
|
|
{
|
2021-07-18 18:39:31 +02:00
|
|
|
new BoxContainer
|
2020-09-02 06:07:54 -04:00
|
|
|
{
|
2021-07-18 18:39:31 +02:00
|
|
|
Orientation = LayoutOrientation.Vertical,
|
2020-09-02 06:07:54 -04:00
|
|
|
Children =
|
|
|
|
|
{
|
2021-01-03 17:20:17 +01:00
|
|
|
(new Label()
|
2020-09-02 06:07:54 -04:00
|
|
|
{
|
2021-06-21 02:13:54 +02:00
|
|
|
Text = Loc.GetString("accept-cloning-window-prompt-text-part")
|
2020-09-02 06:07:54 -04:00
|
|
|
}),
|
2021-07-18 18:39:31 +02:00
|
|
|
new BoxContainer
|
2020-09-02 06:07:54 -04:00
|
|
|
{
|
2021-07-18 18:39:31 +02:00
|
|
|
Orientation = LayoutOrientation.Horizontal,
|
|
|
|
|
Align = AlignMode.Center,
|
2020-09-02 06:07:54 -04:00
|
|
|
Children =
|
|
|
|
|
{
|
2021-01-03 17:20:17 +01:00
|
|
|
(AcceptButton = new Button
|
2020-09-02 06:07:54 -04:00
|
|
|
{
|
2021-06-21 02:13:54 +02:00
|
|
|
Text = Loc.GetString("accept-cloning-window-accept-button"),
|
2020-09-02 06:07:54 -04:00
|
|
|
}),
|
2021-01-03 17:20:17 +01:00
|
|
|
|
|
|
|
|
(new Control()
|
|
|
|
|
{
|
2023-07-08 14:08:32 +10:00
|
|
|
MinSize = new Vector2(20, 0)
|
2021-01-03 17:20:17 +01:00
|
|
|
}),
|
|
|
|
|
|
2020-09-02 06:07:54 -04:00
|
|
|
(DenyButton = new Button
|
|
|
|
|
{
|
2021-06-21 02:13:54 +02:00
|
|
|
Text = Loc.GetString("accept-cloning-window-deny-button"),
|
2020-09-02 06:07:54 -04:00
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|