material_dock.tscn 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. [gd_scene load_steps=2 format=2]
  2. [ext_resource path="res://addons/material_creator/material_creator.gd" type="Script" id=1]
  3. [node name="Material Creator Plugin" type="Panel"]
  4. margin_right = 220.0
  5. margin_bottom = 340.0
  6. rect_min_size = Vector2( 210, 410 )
  7. script = ExtResource( 1 )
  8. __meta__ = {
  9. "_edit_use_anchors_": false
  10. }
  11. [node name="VBoxContainer" type="VBoxContainer" parent="."]
  12. anchor_left = 0.5
  13. anchor_right = 0.5
  14. anchor_bottom = 1.0
  15. margin_left = -100.0
  16. margin_right = 100.0
  17. rect_min_size = Vector2( 0, 400 )
  18. [node name="DockName" type="Label" parent="VBoxContainer"]
  19. margin_right = 200.0
  20. margin_bottom = 30.0
  21. rect_min_size = Vector2( 200, 30 )
  22. custom_constants/shadow_as_outline = 1
  23. text = "Material creator"
  24. align = 1
  25. valign = 2
  26. [node name="AlbedoLabel" type="Label" parent="VBoxContainer"]
  27. margin_top = 34.0
  28. margin_right = 200.0
  29. margin_bottom = 64.0
  30. rect_min_size = Vector2( 200, 30 )
  31. text = "Albedo color"
  32. align = 1
  33. valign = 2
  34. [node name="AlbedoColorPicker" type="ColorPickerButton" parent="VBoxContainer"]
  35. margin_top = 68.0
  36. margin_right = 200.0
  37. margin_bottom = 98.0
  38. rect_min_size = Vector2( 200, 30 )
  39. color = Color( 1, 1, 1, 1 )
  40. [node name="MetallicLabel" type="Label" parent="VBoxContainer"]
  41. margin_top = 102.0
  42. margin_right = 200.0
  43. margin_bottom = 132.0
  44. rect_min_size = Vector2( 200, 30 )
  45. text = "Metallic strength"
  46. align = 1
  47. valign = 2
  48. [node name="MetallicSlider" type="HSlider" parent="VBoxContainer"]
  49. margin_top = 136.0
  50. margin_right = 200.0
  51. margin_bottom = 166.0
  52. rect_min_size = Vector2( 200, 30 )
  53. max_value = 1.0
  54. step = 0.05
  55. [node name="RoughnessLabel" type="Label" parent="VBoxContainer"]
  56. margin_top = 170.0
  57. margin_right = 200.0
  58. margin_bottom = 200.0
  59. rect_min_size = Vector2( 200, 30 )
  60. text = "Roughness strength"
  61. align = 1
  62. valign = 2
  63. [node name="RoughnessSlider" type="HSlider" parent="VBoxContainer"]
  64. margin_top = 204.0
  65. margin_right = 200.0
  66. margin_bottom = 234.0
  67. rect_min_size = Vector2( 200, 30 )
  68. max_value = 1.0
  69. step = 0.05
  70. ticks_on_borders = true
  71. [node name="HSeparator" type="HSeparator" parent="VBoxContainer"]
  72. margin_top = 238.0
  73. margin_right = 200.0
  74. margin_bottom = 258.0
  75. rect_min_size = Vector2( 200, 20 )
  76. [node name="ApplyButton" type="Button" parent="VBoxContainer"]
  77. margin_top = 262.0
  78. margin_right = 200.0
  79. margin_bottom = 312.0
  80. rect_min_size = Vector2( 200, 50 )
  81. text = "Apply material"
  82. [node name="SaveButton" type="Button" parent="VBoxContainer"]
  83. margin_top = 316.0
  84. margin_right = 200.0
  85. margin_bottom = 366.0
  86. rect_min_size = Vector2( 200, 50 )
  87. text = "Save material"
  88. [node name="LoadButton" type="Button" parent="VBoxContainer"]
  89. margin_top = 370.0
  90. margin_right = 200.0
  91. margin_bottom = 420.0
  92. rect_min_size = Vector2( 200, 50 )
  93. text = "Load material"
  94. clip_text = true
  95. [node name="Label" type="Label" parent="VBoxContainer/LoadButton"]
  96. visible = false
  97. anchor_right = 1.0
  98. anchor_bottom = 1.0
  99. margin_bottom = -10.0
  100. rect_min_size = Vector2( 0, 50 )
  101. text = "Load silly material and
  102. apply to selected node(s)"
  103. align = 1
  104. valign = 1
  105. autowrap = true
  106. [node name="SaveMaterialDialog" type="FileDialog" parent="."]
  107. margin_left = 150.0
  108. margin_top = 20.0
  109. margin_right = 600.0
  110. margin_bottom = 360.0
  111. resizable = true
  112. filters = PoolStringArray( "*.silly_mat" )
  113. [node name="LoadMaterialDialog" type="FileDialog" parent="."]
  114. margin_left = 150.0
  115. margin_top = 20.0
  116. margin_right = 600.0
  117. margin_bottom = 360.0
  118. rect_min_size = Vector2( 200, 100 )
  119. window_title = "Open a File"
  120. resizable = true
  121. mode = 0
  122. filters = PoolStringArray( "*.silly_mat" )