FilePickerDialog.gml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. @GUI::Widget {
  2. fill_with_background_color: true
  3. layout: @GUI::HorizontalBoxLayout {
  4. margins: [4]
  5. spacing: 3
  6. }
  7. @GUI::Widget {
  8. preferred_width: 103
  9. layout: @GUI::VerticalBoxLayout {
  10. margins: [0, 4]
  11. }
  12. @GUI::Label {
  13. text: "Look in:"
  14. text_alignment: "CenterRight"
  15. fixed_height: 24
  16. }
  17. @GUI::Tray {
  18. name: "common_locations_tray"
  19. min_width: 60
  20. }
  21. @GUI::Label {
  22. text: "Filename:"
  23. text_alignment: "CenterRight"
  24. fixed_height: 24
  25. }
  26. @GUI::Widget {
  27. fixed_height: 20
  28. }
  29. }
  30. @GUI::Widget {
  31. layout: @GUI::VerticalBoxLayout {}
  32. @GUI::Widget {
  33. preferred_height: "fit"
  34. layout: @GUI::HorizontalBoxLayout {}
  35. @GUI::TextBox {
  36. name: "location_textbox"
  37. preferred_width: "opportunistic_grow"
  38. min_width: 80
  39. }
  40. @GUI::Toolbar {
  41. name: "toolbar"
  42. preferred_width: "shrink"
  43. }
  44. }
  45. @GUI::MultiView {
  46. name: "view"
  47. }
  48. @GUI::Widget {
  49. preferred_height: "fit"
  50. layout: @GUI::VerticalBoxLayout {}
  51. @GUI::Widget {
  52. fixed_height: 22
  53. layout: @GUI::HorizontalBoxLayout {}
  54. @GUI::TextBox {
  55. name: "filename_textbox"
  56. }
  57. @GUI::Widget {
  58. fixed_width: 20
  59. }
  60. @GUI::DialogButton {
  61. name: "ok_button"
  62. text: "OK"
  63. }
  64. }
  65. @GUI::Widget {
  66. fixed_height: 22
  67. layout: @GUI::HorizontalBoxLayout {}
  68. @GUI::Layout::Spacer {}
  69. @GUI::DialogButton {
  70. name: "cancel_button"
  71. text: "Cancel"
  72. }
  73. }
  74. }
  75. }
  76. }