OpenSimplexNoise_Viewer.tscn 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. [gd_scene load_steps=3 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. [node name="OpenSimplexNoise Viewer" type="Control"]
  5. anchor_right = 1.0
  6. anchor_bottom = 1.0
  7. margin_left = 8.42108
  8. margin_top = -5.26315
  9. margin_right = 8.42114
  10. margin_bottom = -5.26318
  11. script = ExtResource( 1 )
  12. __meta__ = {
  13. "_edit_use_anchors_": false
  14. }
  15. [node name="DocumentationButton" type="Button" parent="."]
  16. anchor_left = 1.0
  17. anchor_right = 1.0
  18. margin_left = -170.0
  19. margin_top = 30.0
  20. margin_right = -33.0
  21. margin_bottom = 50.0
  22. grow_horizontal = 0
  23. text = "API Documentation"
  24. __meta__ = {
  25. "_edit_use_anchors_": false
  26. }
  27. [node name="SeamlessNoiseTexture" type="TextureRect" parent="."]
  28. material = ExtResource( 2 )
  29. anchor_left = 0.5
  30. anchor_top = 0.5
  31. anchor_right = 0.5
  32. anchor_bottom = 0.5
  33. margin_left = 40.0
  34. margin_top = -20.0
  35. margin_right = 80.0
  36. margin_bottom = 20.0
  37. grow_horizontal = 2
  38. grow_vertical = 2
  39. __meta__ = {
  40. "_edit_use_anchors_": false
  41. }
  42. [node name="ParameterContainer" type="VBoxContainer" parent="."]
  43. margin_left = 20.0
  44. margin_top = 30.0
  45. margin_right = 300.0
  46. margin_bottom = 166.0
  47. __meta__ = {
  48. "_edit_use_anchors_": false
  49. }
  50. [node name="SeedSpinBox" type="SpinBox" parent="ParameterContainer"]
  51. margin_right = 280.0
  52. margin_bottom = 24.0
  53. min_value = -1.53049e+09
  54. max_value = 1.53049e+09
  55. rounded = true
  56. allow_greater = true
  57. allow_lesser = true
  58. prefix = "Seed:"
  59. [node name="LacunaritySpinBox" type="SpinBox" parent="ParameterContainer"]
  60. margin_top = 28.0
  61. margin_right = 280.0
  62. margin_bottom = 52.0
  63. max_value = 1e+08
  64. step = 0.01
  65. allow_greater = true
  66. prefix = "Lacunarity:"
  67. [node name="PeriodSpinBox" type="SpinBox" parent="ParameterContainer"]
  68. margin_top = 56.0
  69. margin_right = 280.0
  70. margin_bottom = 80.0
  71. min_value = -1e+08
  72. max_value = 1e+08
  73. step = 0.01
  74. allow_greater = true
  75. prefix = "Period:"
  76. [node name="PersistenceSpinBox" type="SpinBox" parent="ParameterContainer"]
  77. margin_top = 84.0
  78. margin_right = 280.0
  79. margin_bottom = 108.0
  80. max_value = 1e+08
  81. step = 0.01
  82. allow_greater = true
  83. prefix = "Persistance:"
  84. [node name="OctavesSpinBox" type="SpinBox" parent="ParameterContainer"]
  85. margin_top = 112.0
  86. margin_right = 280.0
  87. margin_bottom = 136.0
  88. min_value = 1.0
  89. max_value = 10.0
  90. value = 1.0
  91. allow_greater = true
  92. prefix = "Octaves:"
  93. [node name="ClipContainer" type="VBoxContainer" parent="."]
  94. anchor_top = 1.0
  95. anchor_bottom = 1.0
  96. margin_left = 20.0
  97. margin_top = -72.0
  98. margin_right = 300.0
  99. margin_bottom = -20.0
  100. grow_vertical = 0
  101. [node name="MinClipSpinBox" type="SpinBox" parent="ClipContainer"]
  102. margin_right = 280.0
  103. margin_bottom = 24.0
  104. min_value = -1.0
  105. max_value = 1.0
  106. step = 0.01
  107. value = -1.0
  108. prefix = "Min:"
  109. [node name="MaxClipSpinBox" type="SpinBox" parent="ClipContainer"]
  110. margin_top = 28.0
  111. margin_right = 280.0
  112. margin_bottom = 52.0
  113. min_value = -1.0
  114. max_value = 1.0
  115. step = 0.01
  116. value = 1.0
  117. prefix = "Max:"
  118. [connection signal="pressed" from="DocumentationButton" to="." method="_on_DocumentationButton_pressed"]
  119. [connection signal="value_changed" from="ParameterContainer/SeedSpinBox" to="." method="_on_SeedSpinBox_value_changed"]
  120. [connection signal="value_changed" from="ParameterContainer/LacunaritySpinBox" to="." method="_on_LacunaritySpinBox_value_changed"]
  121. [connection signal="value_changed" from="ParameterContainer/PeriodSpinBox" to="." method="_on_PeriodSpinBox_value_changed"]
  122. [connection signal="value_changed" from="ParameterContainer/PersistenceSpinBox" to="." method="_on_PersistenceSpinBox_value_changed"]
  123. [connection signal="value_changed" from="ParameterContainer/OctavesSpinBox" to="." method="_on_OctavesSpinBox_value_changed"]
  124. [connection signal="value_changed" from="ClipContainer/MinClipSpinBox" to="." method="_on_MinClipSpinBox_value_changed"]
  125. [connection signal="value_changed" from="ClipContainer/MaxClipSpinBox" to="." method="_on_MaxClipSpinBox_value_changed"]