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