PasswordInputDialog.gml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. }
  11. @GUI::Label {
  12. name: "key_icon_label"
  13. fixed_height: 32
  14. fixed_width: 32
  15. }
  16. }
  17. @GUI::Widget {
  18. layout: @GUI::VerticalBoxLayout {
  19. }
  20. @GUI::Widget {
  21. fixed_height: 24
  22. layout: @GUI::HorizontalBoxLayout {
  23. }
  24. @GUI::Label {
  25. text: "Server:"
  26. fixed_width: 80
  27. text_alignment: "CenterLeft"
  28. }
  29. @GUI::Label {
  30. name: "server_label"
  31. text: "server.ip"
  32. text_alignment: "CenterLeft"
  33. }
  34. }
  35. @GUI::Widget {
  36. fixed_height: 24
  37. layout: @GUI::HorizontalBoxLayout {
  38. }
  39. @GUI::Label {
  40. text: "Username:"
  41. fixed_width: 80
  42. text_alignment: "CenterLeft"
  43. }
  44. @GUI::Label {
  45. name: "username_label"
  46. text: "username"
  47. text_alignment: "CenterLeft"
  48. }
  49. }
  50. @GUI::Widget {
  51. fixed_height: 24
  52. layout: @GUI::HorizontalBoxLayout {
  53. }
  54. @GUI::Label {
  55. text: "Password:"
  56. fixed_width: 80
  57. text_alignment: "CenterLeft"
  58. }
  59. @GUI::PasswordBox {
  60. name: "password_box"
  61. }
  62. }
  63. @GUI::Widget
  64. @GUI::Widget {
  65. shrink_to_fit: true
  66. layout: @GUI::HorizontalBoxLayout {
  67. spacing: 6
  68. }
  69. @GUI::Widget {
  70. }
  71. @GUI::Button {
  72. text: "OK"
  73. name: "ok_button"
  74. fixed_width: 75
  75. }
  76. @GUI::Button {
  77. text: "Cancel"
  78. name: "cancel_button"
  79. fixed_width: 75
  80. }
  81. }
  82. }
  83. }