PasswordInputDialog.gml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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::Widget {}
  59. @GUI::Widget {
  60. shrink_to_fit: true
  61. layout: @GUI::HorizontalBoxLayout {
  62. spacing: 6
  63. }
  64. @GUI::Widget {}
  65. @GUI::Button {
  66. text: "OK"
  67. name: "ok_button"
  68. fixed_width: 75
  69. }
  70. @GUI::Button {
  71. text: "Cancel"
  72. name: "cancel_button"
  73. fixed_width: 75
  74. }
  75. }
  76. }
  77. }