| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- 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.Ghost.UI;
- public sealed class ReturnToBodyMenu : DefaultWindow
- {
- public readonly Button DenyButton;
- public readonly Button AcceptButton;
- public ReturnToBodyMenu()
- {
- Title = Loc.GetString("ghost-return-to-body-title");
- Contents.AddChild(new BoxContainer
- {
- Orientation = LayoutOrientation.Vertical,
- Children =
- {
- new BoxContainer
- {
- Orientation = LayoutOrientation.Vertical,
- Children =
- {
- (new Label()
- {
- Text = Loc.GetString("ghost-return-to-body-text")
- }),
- 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"),
- })
- }
- },
- }
- },
- }
- });
- }
- }
|