custom_material_dock.tscn 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. [gd_scene load_steps=2 format=2]
  2. [ext_resource path="res://addons/custom_material_creator/silly_material_creator.gd" type="Script" id=1]
  3. [node name="Silly Material Creator" type="Panel"]
  4. anchor_left = 0.0
  5. anchor_top = 0.0
  6. anchor_right = 0.0
  7. anchor_bottom = 0.0
  8. margin_right = 220.0
  9. margin_bottom = 340.0
  10. rect_pivot_offset = Vector2( 0, 0 )
  11. rect_clip_content = false
  12. mouse_filter = 0
  13. size_flags_horizontal = 1
  14. size_flags_vertical = 1
  15. script = ExtResource( 1 )
  16. _sections_unfolded = [ "custom_styles" ]
  17. [node name="Label_dock_name" type="Label" parent="."]
  18. anchor_left = 0.5
  19. anchor_top = 0.0
  20. anchor_right = 0.5
  21. anchor_bottom = 0.0
  22. margin_left = -110.0
  23. margin_top = 10.0
  24. margin_right = 73.0
  25. margin_bottom = 24.0
  26. rect_scale = Vector2( 1.2, 1.2 )
  27. rect_pivot_offset = Vector2( 0, 0 )
  28. rect_clip_content = false
  29. mouse_filter = 2
  30. size_flags_horizontal = 1
  31. size_flags_vertical = 4
  32. custom_colors/font_color_shadow = Color( 0, 0, 0, 1 )
  33. custom_constants/shadow_as_outline = 1
  34. text = "Silly material creator"
  35. align = 1
  36. percent_visible = 1.0
  37. lines_skipped = 0
  38. max_lines_visible = -1
  39. _sections_unfolded = [ "Rect", "custom_colors" ]
  40. [node name="Label_albedo" type="Label" parent="."]
  41. anchor_left = 0.5
  42. anchor_top = 0.0
  43. anchor_right = 0.5
  44. anchor_bottom = 0.0
  45. margin_left = -100.0
  46. margin_top = 50.0
  47. margin_right = 100.0
  48. margin_bottom = 64.0
  49. rect_pivot_offset = Vector2( 0, 0 )
  50. rect_clip_content = false
  51. mouse_filter = 2
  52. size_flags_horizontal = 1
  53. size_flags_vertical = 4
  54. text = "Albedo color"
  55. align = 1
  56. percent_visible = 1.0
  57. lines_skipped = 0
  58. max_lines_visible = -1
  59. [node name="ColorPicker_albedo" type="ColorPickerButton" parent="."]
  60. anchor_left = 0.5
  61. anchor_top = 0.0
  62. anchor_right = 0.5
  63. anchor_bottom = 0.0
  64. margin_left = -100.0
  65. margin_top = 70.0
  66. margin_right = 100.0
  67. margin_bottom = 90.0
  68. rect_pivot_offset = Vector2( 0, 0 )
  69. rect_clip_content = false
  70. mouse_filter = 0
  71. size_flags_horizontal = 1
  72. size_flags_vertical = 1
  73. toggle_mode = false
  74. enabled_focus_mode = 2
  75. shortcut = null
  76. group = null
  77. flat = false
  78. color = Color( 1, 1, 1, 1 )
  79. edit_alpha = true
  80. [node name="Label_metallic" type="Label" parent="."]
  81. anchor_left = 0.5
  82. anchor_top = 0.0
  83. anchor_right = 0.5
  84. anchor_bottom = 0.0
  85. margin_left = -100.0
  86. margin_top = 100.0
  87. margin_right = 100.0
  88. margin_bottom = 114.0
  89. rect_pivot_offset = Vector2( 0, 0 )
  90. rect_clip_content = false
  91. mouse_filter = 2
  92. size_flags_horizontal = 1
  93. size_flags_vertical = 4
  94. text = "Metallic strength"
  95. align = 1
  96. percent_visible = 1.0
  97. lines_skipped = 0
  98. max_lines_visible = -1
  99. [node name="HSlider_metallic" type="HSlider" parent="."]
  100. anchor_left = 0.5
  101. anchor_top = 0.0
  102. anchor_right = 0.5
  103. anchor_bottom = 0.0
  104. margin_left = -100.0
  105. margin_top = 120.0
  106. margin_right = 100.0
  107. margin_bottom = 136.0
  108. rect_pivot_offset = Vector2( 0, 0 )
  109. rect_clip_content = false
  110. mouse_filter = 0
  111. size_flags_horizontal = 1
  112. size_flags_vertical = 0
  113. min_value = 0.0
  114. max_value = 1.0
  115. step = 0.05
  116. page = 0.0
  117. value = 0.0
  118. exp_edit = false
  119. rounded = false
  120. editable = true
  121. tick_count = 0
  122. ticks_on_borders = false
  123. focus_mode = 2
  124. [node name="Label_roughness" type="Label" parent="."]
  125. anchor_left = 0.5
  126. anchor_top = 0.0
  127. anchor_right = 0.5
  128. anchor_bottom = 0.0
  129. margin_left = -100.0
  130. margin_top = 150.0
  131. margin_right = 100.0
  132. margin_bottom = 164.0
  133. rect_pivot_offset = Vector2( 0, 0 )
  134. rect_clip_content = false
  135. mouse_filter = 2
  136. size_flags_horizontal = 1
  137. size_flags_vertical = 4
  138. text = "Roughness strength"
  139. align = 1
  140. percent_visible = 1.0
  141. lines_skipped = 0
  142. max_lines_visible = -1
  143. [node name="HSlider_roughness" type="HSlider" parent="."]
  144. anchor_left = 0.5
  145. anchor_top = 0.0
  146. anchor_right = 0.5
  147. anchor_bottom = 0.0
  148. margin_left = -100.0
  149. margin_top = 170.0
  150. margin_right = 100.0
  151. margin_bottom = 186.0
  152. rect_pivot_offset = Vector2( 0, 0 )
  153. rect_clip_content = false
  154. mouse_filter = 0
  155. size_flags_horizontal = 1
  156. size_flags_vertical = 0
  157. min_value = 0.0
  158. max_value = 1.0
  159. step = 0.05
  160. page = 0.0
  161. value = 0.0
  162. exp_edit = false
  163. rounded = false
  164. editable = true
  165. tick_count = 0
  166. ticks_on_borders = false
  167. focus_mode = 2
  168. [node name="Button_save" type="Button" parent="."]
  169. anchor_left = 0.5
  170. anchor_top = 0.0
  171. anchor_right = 0.5
  172. anchor_bottom = 0.0
  173. margin_left = -100.0
  174. margin_top = 210.0
  175. margin_right = 100.0
  176. margin_bottom = 260.0
  177. rect_pivot_offset = Vector2( 0, 0 )
  178. rect_clip_content = false
  179. mouse_filter = 0
  180. size_flags_horizontal = 1
  181. size_flags_vertical = 1
  182. toggle_mode = false
  183. enabled_focus_mode = 2
  184. shortcut = null
  185. group = null
  186. text = "Save silly material"
  187. flat = false
  188. [node name="Button_load" type="Button" parent="."]
  189. editor/display_folded = true
  190. anchor_left = 0.5
  191. anchor_top = 0.0
  192. anchor_right = 0.5
  193. anchor_bottom = 0.0
  194. margin_left = -100.0
  195. margin_top = 270.0
  196. margin_right = 100.0
  197. margin_bottom = 330.0
  198. rect_pivot_offset = Vector2( 0, 0 )
  199. rect_clip_content = false
  200. mouse_filter = 0
  201. size_flags_horizontal = 1
  202. size_flags_vertical = 1
  203. toggle_mode = false
  204. enabled_focus_mode = 2
  205. shortcut = null
  206. group = null
  207. flat = false
  208. clip_text = true
  209. __meta__ = {
  210. "_edit_group_": true
  211. }
  212. [node name="Label" type="Label" parent="Button_load"]
  213. anchor_left = 0.0
  214. anchor_top = 0.0
  215. anchor_right = 0.0
  216. anchor_bottom = 0.0
  217. margin_right = 200.0
  218. margin_bottom = 60.0
  219. rect_pivot_offset = Vector2( 0, 0 )
  220. rect_clip_content = false
  221. mouse_filter = 2
  222. size_flags_horizontal = 1
  223. size_flags_vertical = 4
  224. text = "Load silly material
  225. and apply to selected node(s)"
  226. align = 1
  227. valign = 1
  228. autowrap = true
  229. percent_visible = 1.0
  230. lines_skipped = 0
  231. max_lines_visible = -1
  232. [node name="Save_FileDialog" type="FileDialog" parent="."]
  233. visible = false
  234. anchor_left = 0.0
  235. anchor_top = 0.0
  236. anchor_right = 0.0
  237. anchor_bottom = 0.0
  238. margin_left = 150.0
  239. margin_top = 20.0
  240. margin_right = 600.0
  241. margin_bottom = 360.0
  242. rect_min_size = Vector2( 200, 70 )
  243. rect_pivot_offset = Vector2( 0, 0 )
  244. rect_clip_content = false
  245. mouse_filter = 0
  246. size_flags_horizontal = 1
  247. size_flags_vertical = 1
  248. popup_exclusive = false
  249. window_title = "Save a File"
  250. resizable = true
  251. dialog_hide_on_ok = false
  252. mode = 4
  253. access = 0
  254. filters = PoolStringArray( "*.silly_mat" )
  255. show_hidden_files = false
  256. [node name="Load_FileDialog" type="FileDialog" parent="."]
  257. visible = false
  258. anchor_left = 0.0
  259. anchor_top = 0.0
  260. anchor_right = 0.0
  261. anchor_bottom = 0.0
  262. margin_left = 150.0
  263. margin_top = 20.0
  264. margin_right = 600.0
  265. margin_bottom = 360.0
  266. rect_min_size = Vector2( 200, 70 )
  267. rect_pivot_offset = Vector2( 0, 0 )
  268. rect_clip_content = false
  269. mouse_filter = 0
  270. size_flags_horizontal = 1
  271. size_flags_vertical = 1
  272. popup_exclusive = false
  273. window_title = "Open a File"
  274. resizable = true
  275. dialog_hide_on_ok = false
  276. mode = 0
  277. access = 0
  278. filters = PoolStringArray( "*.silly_mat" )
  279. show_hidden_files = false