material_dock.tscn 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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 Plugin" type="Panel"]
  4. offset_right = 220.0
  5. offset_bottom = 340.0
  6. script = ExtResource("1")
  7. [node name="VBoxContainer" type="VBoxContainer" parent="."]
  8. anchors_preset = 13
  9. anchor_left = 0.5
  10. anchor_right = 0.5
  11. anchor_bottom = 1.0
  12. offset_left = -100.0
  13. offset_right = 100.0
  14. grow_horizontal = 2
  15. grow_vertical = 2
  16. [node name="DockName" type="Label" parent="VBoxContainer"]
  17. offset_right = 200.0
  18. offset_bottom = 26.0
  19. text = "Material creator"
  20. [node name="AlbedoLabel" type="Label" parent="VBoxContainer"]
  21. offset_top = 30.0
  22. offset_right = 200.0
  23. offset_bottom = 56.0
  24. text = "Albedo color"
  25. [node name="AlbedoColorPicker" type="ColorPickerButton" parent="VBoxContainer"]
  26. offset_top = 60.0
  27. offset_right = 200.0
  28. offset_bottom = 68.0
  29. color = Color(1, 1, 1, 1)
  30. [node name="MetallicLabel" type="Label" parent="VBoxContainer"]
  31. offset_top = 72.0
  32. offset_right = 200.0
  33. offset_bottom = 98.0
  34. text = "Metallic strength"
  35. [node name="MetallicSlider" type="HSlider" parent="VBoxContainer"]
  36. offset_top = 102.0
  37. offset_right = 200.0
  38. offset_bottom = 118.0
  39. max_value = 1.0
  40. step = 0.05
  41. [node name="RoughnessLabel" type="Label" parent="VBoxContainer"]
  42. offset_top = 122.0
  43. offset_right = 200.0
  44. offset_bottom = 148.0
  45. text = "Roughness strength"
  46. [node name="RoughnessSlider" type="HSlider" parent="VBoxContainer"]
  47. offset_top = 152.0
  48. offset_right = 200.0
  49. offset_bottom = 168.0
  50. max_value = 1.0
  51. step = 0.05
  52. ticks_on_borders = true
  53. [node name="HSeparator" type="HSeparator" parent="VBoxContainer"]
  54. offset_top = 172.0
  55. offset_right = 200.0
  56. offset_bottom = 176.0
  57. [node name="ApplyButton" type="Button" parent="VBoxContainer"]
  58. offset_top = 180.0
  59. offset_right = 200.0
  60. offset_bottom = 211.0
  61. text = "Apply material"
  62. [node name="SaveButton" type="Button" parent="VBoxContainer"]
  63. offset_top = 215.0
  64. offset_right = 200.0
  65. offset_bottom = 246.0
  66. text = "Save material"
  67. [node name="LoadButton" type="Button" parent="VBoxContainer"]
  68. offset_top = 250.0
  69. offset_right = 200.0
  70. offset_bottom = 281.0
  71. text = "Load material"
  72. clip_text = true
  73. [node name="Label" type="Label" parent="VBoxContainer/LoadButton"]
  74. visible = false
  75. anchors_preset = 15
  76. anchor_right = 1.0
  77. anchor_bottom = 1.0
  78. offset_bottom = -10.0
  79. grow_horizontal = 2
  80. grow_vertical = 2
  81. text = "Load silly material and
  82. apply to selected node(s)"
  83. [node name="SaveMaterialDialog" type="FileDialog" parent="."]
  84. filters = PackedStringArray("*.silly_mat")
  85. [node name="LoadMaterialDialog" type="FileDialog" parent="."]
  86. title = "Open a File"
  87. ok_button_text = "Open"
  88. file_mode = 0
  89. filters = PackedStringArray("*.silly_mat")