AcceptCloningWindow.cs 2.2 KB

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