1
0

ReturnToBodyMenu.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using System.Numerics;
  2. using Robust.Client.UserInterface;
  3. using Robust.Client.UserInterface.Controls;
  4. using Robust.Client.UserInterface.CustomControls;
  5. using static Robust.Client.UserInterface.Controls.BoxContainer;
  6. namespace Content.Client.Ghost.UI;
  7. public sealed class ReturnToBodyMenu : DefaultWindow
  8. {
  9. public readonly Button DenyButton;
  10. public readonly Button AcceptButton;
  11. public ReturnToBodyMenu()
  12. {
  13. Title = Loc.GetString("ghost-return-to-body-title");
  14. Contents.AddChild(new BoxContainer
  15. {
  16. Orientation = LayoutOrientation.Vertical,
  17. Children =
  18. {
  19. new BoxContainer
  20. {
  21. Orientation = LayoutOrientation.Vertical,
  22. Children =
  23. {
  24. (new Label()
  25. {
  26. Text = Loc.GetString("ghost-return-to-body-text")
  27. }),
  28. new BoxContainer
  29. {
  30. Orientation = LayoutOrientation.Horizontal,
  31. Align = AlignMode.Center,
  32. Children =
  33. {
  34. (AcceptButton = new Button
  35. {
  36. Text = Loc.GetString("accept-cloning-window-accept-button"),
  37. }),
  38. (new Control()
  39. {
  40. MinSize = new Vector2(20, 0)
  41. }),
  42. (DenyButton = new Button
  43. {
  44. Text = Loc.GetString("accept-cloning-window-deny-button"),
  45. })
  46. }
  47. },
  48. }
  49. },
  50. }
  51. });
  52. }
  53. }