material_dock.tscn 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. [gd_scene load_steps=2 format=3 uid="uid://n44d53us24uu"]
  2. [ext_resource type="Script" path="res://addons/material_creator/material_creator.gd" id="1"]
  3. [node name="Material Creator" type="Panel"]
  4. custom_minimum_size = Vector2(208, 0)
  5. offset_right = 220.0
  6. offset_bottom = 340.0
  7. script = ExtResource("1")
  8. [node name="VBoxContainer" type="VBoxContainer" parent="."]
  9. layout_mode = 0
  10. anchor_left = 0.5
  11. anchor_right = 0.5
  12. anchor_bottom = 1.0
  13. offset_left = -100.0
  14. offset_right = 100.0
  15. grow_horizontal = 2
  16. grow_vertical = 2
  17. [node name="AlbedoLabel" type="Label" parent="VBoxContainer"]
  18. layout_mode = 2
  19. text = "Albedo Color:"
  20. [node name="AlbedoColorPicker" type="ColorPickerButton" parent="VBoxContainer"]
  21. custom_minimum_size = Vector2(0, 32)
  22. layout_mode = 2
  23. color = Color(1, 1, 1, 1)
  24. [node name="MetallicLabel" type="Label" parent="VBoxContainer"]
  25. layout_mode = 2
  26. text = "Metallic Strength:"
  27. [node name="MetallicSlider" type="HSlider" parent="VBoxContainer"]
  28. layout_mode = 2
  29. max_value = 1.0
  30. step = 0.05
  31. [node name="RoughnessLabel" type="Label" parent="VBoxContainer"]
  32. layout_mode = 2
  33. text = "Roughness Strength:"
  34. [node name="RoughnessSlider" type="HSlider" parent="VBoxContainer"]
  35. layout_mode = 2
  36. max_value = 1.0
  37. step = 0.05
  38. ticks_on_borders = true
  39. [node name="HSeparator" type="HSeparator" parent="VBoxContainer"]
  40. layout_mode = 2
  41. [node name="ApplyButton" type="Button" parent="VBoxContainer"]
  42. layout_mode = 2
  43. text = "Apply Material"
  44. [node name="SaveButton" type="Button" parent="VBoxContainer"]
  45. layout_mode = 2
  46. text = "Save Material"
  47. [node name="LoadButton" type="Button" parent="VBoxContainer"]
  48. layout_mode = 2
  49. text = "Load Material"
  50. clip_text = true
  51. [node name="Label" type="Label" parent="VBoxContainer/LoadButton"]
  52. visible = false
  53. layout_mode = 0
  54. anchor_right = 1.0
  55. anchor_bottom = 1.0
  56. offset_bottom = -10.0
  57. grow_horizontal = 2
  58. grow_vertical = 2
  59. text = "Load silly material and
  60. apply to selected node(s)"
  61. [node name="SaveMaterialDialog" type="FileDialog" parent="."]
  62. filters = PackedStringArray("*.silly_mat")
  63. [node name="LoadMaterialDialog" type="FileDialog" parent="."]
  64. title = "Open a File"
  65. ok_button_text = "Open"
  66. file_mode = 0
  67. filters = PackedStringArray("*.silly_mat")