OpenSimplexNoise_Viewer.tscn 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. [gd_scene load_steps=5 format=2]
  2. [ext_resource path="res://OpenSimplexNoise_Viewer.gd" type="Script" id=1]
  3. [ext_resource path="res://OpenSimplexNoise_Viewer.tres" type="Material" id=2]
  4. [sub_resource type="OpenSimplexNoise" id=1]
  5. [sub_resource type="NoiseTexture" id=2]
  6. noise = SubResource( 1 )
  7. [node name="OpenSimplexNoise Viewer" type="Control"]
  8. anchor_right = 1.0
  9. anchor_bottom = 1.0
  10. margin_left = 24.0
  11. margin_top = 24.0
  12. margin_right = -24.0
  13. margin_bottom = -24.0
  14. script = ExtResource( 1 )
  15. __meta__ = {
  16. "_edit_use_anchors_": false
  17. }
  18. [node name="SeamlessNoiseTexture" type="TextureRect" parent="."]
  19. material = ExtResource( 2 )
  20. anchor_left = 0.5
  21. anchor_top = 0.5
  22. anchor_right = 0.5
  23. anchor_bottom = 0.5
  24. margin_left = -196.0
  25. margin_top = -256.0
  26. margin_right = 316.0
  27. margin_bottom = 256.0
  28. grow_horizontal = 2
  29. grow_vertical = 2
  30. texture = SubResource( 2 )
  31. __meta__ = {
  32. "_edit_use_anchors_": false
  33. }
  34. [node name="ButtonsContainer" type="VBoxContainer" parent="."]
  35. anchor_left = 1.0
  36. anchor_right = 1.0
  37. margin_left = -137.0
  38. margin_bottom = 44.0
  39. __meta__ = {
  40. "_edit_use_anchors_": false
  41. }
  42. [node name="DocumentationButton" type="Button" parent="ButtonsContainer"]
  43. margin_right = 137.0
  44. margin_bottom = 20.0
  45. grow_horizontal = 0
  46. text = "API Documentation"
  47. __meta__ = {
  48. "_edit_use_anchors_": false
  49. }
  50. [node name="RandomSeedButton" type="Button" parent="ButtonsContainer"]
  51. margin_top = 24.0
  52. margin_right = 137.0
  53. margin_bottom = 44.0
  54. grow_horizontal = 0
  55. text = "Random Seed"
  56. __meta__ = {
  57. "_edit_use_anchors_": false
  58. }
  59. [node name="ParameterContainer" type="VBoxContainer" parent="."]
  60. margin_right = 280.0
  61. margin_bottom = 136.0
  62. __meta__ = {
  63. "_edit_use_anchors_": false
  64. }
  65. [node name="SeedSpinBox" type="SpinBox" parent="ParameterContainer"]
  66. margin_right = 280.0
  67. margin_bottom = 24.0
  68. min_value = -2.14748e+09
  69. max_value = 2.14748e+09
  70. allow_greater = true
  71. allow_lesser = true
  72. prefix = "Seed:"
  73. [node name="LacunaritySpinBox" type="SpinBox" parent="ParameterContainer"]
  74. margin_top = 28.0
  75. margin_right = 280.0
  76. margin_bottom = 52.0
  77. step = 0.1
  78. allow_greater = true
  79. prefix = "Lacunarity:"
  80. [node name="PeriodSpinBox" type="SpinBox" parent="ParameterContainer"]
  81. margin_top = 56.0
  82. margin_right = 280.0
  83. margin_bottom = 80.0
  84. min_value = -100000.0
  85. max_value = 100000.0
  86. allow_greater = true
  87. prefix = "Period:"
  88. [node name="PersistenceSpinBox" type="SpinBox" parent="ParameterContainer"]
  89. margin_top = 84.0
  90. margin_right = 280.0
  91. margin_bottom = 108.0
  92. max_value = 1000.0
  93. allow_greater = true
  94. prefix = "Persistance:"
  95. [node name="OctavesSpinBox" type="SpinBox" parent="ParameterContainer"]
  96. margin_top = 112.0
  97. margin_right = 280.0
  98. margin_bottom = 136.0
  99. min_value = 1.0
  100. max_value = 9.0
  101. value = 1.0
  102. prefix = "Octaves:"
  103. [node name="ClipContainer" type="VBoxContainer" parent="."]
  104. anchor_top = 1.0
  105. anchor_bottom = 1.0
  106. margin_top = -52.0
  107. margin_right = 280.0
  108. grow_vertical = 0
  109. __meta__ = {
  110. "_edit_use_anchors_": false
  111. }
  112. [node name="MinClipSpinBox" type="SpinBox" parent="ClipContainer"]
  113. margin_right = 280.0
  114. margin_bottom = 24.0
  115. min_value = -1.0
  116. max_value = 1.0
  117. step = 0.01
  118. value = -1.0
  119. prefix = "Min:"
  120. [node name="MaxClipSpinBox" type="SpinBox" parent="ClipContainer"]
  121. margin_top = 28.0
  122. margin_right = 280.0
  123. margin_bottom = 52.0
  124. min_value = -1.0
  125. max_value = 1.0
  126. step = 0.01
  127. value = 1.0
  128. prefix = "Max:"
  129. [connection signal="pressed" from="ButtonsContainer/DocumentationButton" to="." method="_on_DocumentationButton_pressed"]
  130. [connection signal="pressed" from="ButtonsContainer/RandomSeedButton" to="." method="_on_RandomSeedButton_pressed"]
  131. [connection signal="value_changed" from="ParameterContainer/SeedSpinBox" to="." method="_on_SeedSpinBox_value_changed"]
  132. [connection signal="value_changed" from="ParameterContainer/LacunaritySpinBox" to="." method="_on_LacunaritySpinBox_value_changed"]
  133. [connection signal="value_changed" from="ParameterContainer/PeriodSpinBox" to="." method="_on_PeriodSpinBox_value_changed"]
  134. [connection signal="value_changed" from="ParameterContainer/PersistenceSpinBox" to="." method="_on_PersistenceSpinBox_value_changed"]
  135. [connection signal="value_changed" from="ParameterContainer/OctavesSpinBox" to="." method="_on_OctavesSpinBox_value_changed"]
  136. [connection signal="value_changed" from="ClipContainer/MinClipSpinBox" to="." method="_on_MinClipSpinBox_value_changed"]
  137. [connection signal="value_changed" from="ClipContainer/MaxClipSpinBox" to="." method="_on_MaxClipSpinBox_value_changed"]