material_dialog.tscn 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. [gd_scene load_steps=2 format=1]
  2. [ext_resource path="res://addons/custom_import_plugin/material_dialog.gd" type="Script" id=1]
  3. [node name="MaterialImport" type="ConfirmationDialog"]
  4. margin/right = 276.0
  5. margin/bottom = 154.0
  6. focus/ignore_mouse = false
  7. focus/stop_mouse = true
  8. size_flags/horizontal = 2
  9. size_flags/vertical = 2
  10. popup/exclusive = false
  11. window/title = "Silly Material Import"
  12. dialog/hide_on_ok = true
  13. script/script = ExtResource( 1 )
  14. __meta__ = { "__editor_plugin_screen__":"Script" }
  15. [node name="src_file" type="LineEdit" parent="."]
  16. margin/left = 19.0
  17. margin/top = 6.0
  18. margin/right = 190.0
  19. margin/bottom = 29.0
  20. focus/ignore_mouse = false
  21. focus/stop_mouse = true
  22. size_flags/horizontal = 2
  23. size_flags/vertical = 2
  24. text = ""
  25. max_length = 0
  26. editable = true
  27. secret = false
  28. [node name="src_browse" type="Button" parent="."]
  29. margin/left = 195.0
  30. margin/top = 7.0
  31. margin/right = 249.0
  32. margin/bottom = 29.0
  33. focus/ignore_mouse = false
  34. focus/stop_mouse = true
  35. size_flags/horizontal = 2
  36. size_flags/vertical = 2
  37. toggle_mode = false
  38. text = "browse"
  39. flat = false
  40. [node name="dst_browse" type="Button" parent="."]
  41. margin/left = 195.0
  42. margin/top = 47.0
  43. margin/right = 249.0
  44. margin/bottom = 69.0
  45. focus/ignore_mouse = false
  46. focus/stop_mouse = true
  47. size_flags/horizontal = 2
  48. size_flags/vertical = 2
  49. toggle_mode = false
  50. text = "browse"
  51. flat = false
  52. [node name="dst_file" type="LineEdit" parent="."]
  53. margin/left = 19.0
  54. margin/top = 46.0
  55. margin/right = 190.0
  56. margin/bottom = 69.0
  57. focus/ignore_mouse = false
  58. focus/stop_mouse = true
  59. size_flags/horizontal = 2
  60. size_flags/vertical = 2
  61. text = ""
  62. max_length = 0
  63. editable = true
  64. secret = false
  65. [node name="use_red_anyway" type="CheckBox" parent="."]
  66. margin/left = 20.0
  67. margin/top = 84.0
  68. margin/right = 144.0
  69. margin/bottom = 106.0
  70. focus/ignore_mouse = false
  71. focus/stop_mouse = true
  72. size_flags/horizontal = 2
  73. size_flags/vertical = 2
  74. toggle_mode = true
  75. text = "Use Red Anyway"
  76. flat = false
  77. align = 0
  78. [node name="error" type="AcceptDialog" parent="."]
  79. visibility/visible = false
  80. margin/right = 40.0
  81. margin/bottom = 40.0
  82. focus/ignore_mouse = false
  83. focus/stop_mouse = true
  84. size_flags/horizontal = 2
  85. size_flags/vertical = 2
  86. popup/exclusive = false
  87. window/title = "Alert!"
  88. dialog/hide_on_ok = true
  89. [connection signal="confirmed" from="." to="." method="_on_MaterialImport_confirmed"]
  90. [connection signal="pressed" from="src_browse" to="." method="_on_src_browse_pressed"]
  91. [connection signal="pressed" from="dst_browse" to="." method="_on_dst_browse_pressed"]