62 lines
2.2 KiB
C#
62 lines
2.2 KiB
C#
using Robust.Client.UserInterface;
|
|
using Robust.Client.UserInterface.Controls;
|
|
using Robust.Client.UserInterface.CustomControls;
|
|
using Robust.Shared.Localization;
|
|
using static Robust.Client.UserInterface.Controls.BoxContainer;
|
|
|
|
namespace Content.Client.Cloning.UI
|
|
{
|
|
public sealed class AcceptCloningWindow : DefaultWindow
|
|
{
|
|
public readonly Button DenyButton;
|
|
public readonly Button AcceptButton;
|
|
|
|
public AcceptCloningWindow()
|
|
{
|
|
|
|
Title = Loc.GetString("accept-cloning-window-title");
|
|
|
|
Contents.AddChild(new BoxContainer
|
|
{
|
|
Orientation = LayoutOrientation.Vertical,
|
|
Children =
|
|
{
|
|
new BoxContainer
|
|
{
|
|
Orientation = LayoutOrientation.Vertical,
|
|
Children =
|
|
{
|
|
(new Label()
|
|
{
|
|
Text = Loc.GetString("accept-cloning-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 = (20, 0)
|
|
}),
|
|
|
|
(DenyButton = new Button
|
|
{
|
|
Text = Loc.GetString("accept-cloning-window-deny-button"),
|
|
})
|
|
}
|
|
},
|
|
}
|
|
},
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|