PasswordInputDialog.gml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. @GUI::Widget {
  2. fill_with_background_color: true
  3. layout: @GUI::HorizontalBoxLayout {
  4. margins: [8]
  5. spacing: 8
  6. }
  7. @GUI::Widget {
  8. shrink_to_fit: true
  9. layout: @GUI::VerticalBoxLayout {}
  10. @GUI::Label {
  11. name: "key_icon_label"
  12. fixed_height: 32
  13. fixed_width: 32
  14. }
  15. }
  16. @GUI::Widget {
  17. layout: @GUI::VerticalBoxLayout {}
  18. @GUI::Widget {
  19. fixed_height: 24
  20. layout: @GUI::HorizontalBoxLayout {}
  21. @GUI::Label {
  22. text: "Server:"
  23. fixed_width: 80
  24. text_alignment: "CenterLeft"
  25. }
  26. @GUI::Label {
  27. name: "server_label"
  28. text: "server.ip"
  29. text_alignment: "CenterLeft"
  30. }
  31. }
  32. @GUI::Widget {
  33. fixed_height: 24
  34. layout: @GUI::HorizontalBoxLayout {}
  35. @GUI::Label {
  36. text: "Username:"
  37. fixed_width: 80
  38. text_alignment: "CenterLeft"
  39. }
  40. @GUI::Label {
  41. name: "username_label"
  42. text: "username"
  43. text_alignment: "CenterLeft"
  44. }
  45. }
  46. @GUI::Widget {
  47. fixed_height: 24
  48. layout: @GUI::HorizontalBoxLayout {}
  49. @GUI::Label {
  50. text: "Password:"
  51. fixed_width: 80
  52. text_alignment: "CenterLeft"
  53. }
  54. @GUI::PasswordBox {
  55. name: "password_box"
  56. }
  57. }
  58. @GUI::Layout::Spacer {}
  59. @GUI::Widget {
  60. shrink_to_fit: true
  61. layout: @GUI::HorizontalBoxLayout {
  62. spacing: 6
  63. }
  64. @GUI::Widget {}
  65. @GUI::DialogButton {
  66. text: "OK"
  67. name: "ok_button"
  68. }
  69. @GUI::DialogButton {
  70. text: "Cancel"
  71. name: "cancel_button"
  72. }
  73. }
  74. }
  75. }