mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 06:09:46 +03:00
opensimplexnoise: Fix persistence, tweak documentation URL and layout (#791)
This commit is contained in:
@@ -33,7 +33,7 @@ func _refresh_shader_params():
|
||||
|
||||
func _on_DocumentationButton_pressed():
|
||||
#warning-ignore:return_value_discarded
|
||||
OS.shell_open("https://docs.godotengine.org/en/latest/classes/class_opensimplexnoise.html")
|
||||
OS.shell_open("https://docs.godotengine.org/en/3.6/classes/class_opensimplexnoise.html")
|
||||
|
||||
|
||||
func _on_RandomSeedButton_pressed():
|
||||
|
||||
@@ -16,9 +16,6 @@ margin_top = 24.0
|
||||
margin_right = -24.0
|
||||
margin_bottom = -24.0
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="SeamlessNoiseTexture" type="TextureRect" parent="."]
|
||||
material = ExtResource( 2 )
|
||||
@@ -26,39 +23,34 @@ anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -196.0
|
||||
margin_left = -256.0
|
||||
margin_top = -256.0
|
||||
margin_right = 316.0
|
||||
margin_right = 256.0
|
||||
margin_bottom = 256.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource( 2 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="ButtonsContainer" type="VBoxContainer" parent="."]
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.0
|
||||
margin_left = -137.0
|
||||
margin_bottom = 44.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
margin_left = -200.0
|
||||
margin_bottom = 48.0
|
||||
custom_constants/separation = 8
|
||||
|
||||
[node name="DocumentationButton" type="Button" parent="ButtonsContainer"]
|
||||
margin_right = 137.0
|
||||
margin_right = 200.0
|
||||
margin_bottom = 20.0
|
||||
grow_horizontal = 0
|
||||
text = "API Documentation"
|
||||
text = "API Documentation 3.6"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="RandomSeedButton" type="Button" parent="ButtonsContainer"]
|
||||
margin_top = 24.0
|
||||
margin_right = 137.0
|
||||
margin_bottom = 44.0
|
||||
margin_top = 28.0
|
||||
margin_right = 200.0
|
||||
margin_bottom = 48.0
|
||||
grow_horizontal = 0
|
||||
text = "Random Seed"
|
||||
__meta__ = {
|
||||
@@ -66,14 +58,12 @@ __meta__ = {
|
||||
}
|
||||
|
||||
[node name="ParameterContainer" type="VBoxContainer" parent="."]
|
||||
margin_right = 280.0
|
||||
margin_bottom = 136.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
margin_right = 200.0
|
||||
margin_bottom = 152.0
|
||||
custom_constants/separation = 8
|
||||
|
||||
[node name="SeedSpinBox" type="SpinBox" parent="ParameterContainer"]
|
||||
margin_right = 280.0
|
||||
margin_right = 200.0
|
||||
margin_bottom = 24.0
|
||||
min_value = -2.14748e+09
|
||||
max_value = 2.14748e+09
|
||||
@@ -82,34 +72,35 @@ allow_lesser = true
|
||||
prefix = "Seed:"
|
||||
|
||||
[node name="LacunaritySpinBox" type="SpinBox" parent="ParameterContainer"]
|
||||
margin_top = 28.0
|
||||
margin_right = 280.0
|
||||
margin_bottom = 52.0
|
||||
margin_top = 32.0
|
||||
margin_right = 200.0
|
||||
margin_bottom = 56.0
|
||||
step = 0.1
|
||||
allow_greater = true
|
||||
prefix = "Lacunarity:"
|
||||
|
||||
[node name="PeriodSpinBox" type="SpinBox" parent="ParameterContainer"]
|
||||
margin_top = 56.0
|
||||
margin_right = 280.0
|
||||
margin_bottom = 80.0
|
||||
margin_top = 64.0
|
||||
margin_right = 200.0
|
||||
margin_bottom = 88.0
|
||||
min_value = -100000.0
|
||||
max_value = 100000.0
|
||||
allow_greater = true
|
||||
prefix = "Period:"
|
||||
|
||||
[node name="PersistenceSpinBox" type="SpinBox" parent="ParameterContainer"]
|
||||
margin_top = 84.0
|
||||
margin_right = 280.0
|
||||
margin_bottom = 108.0
|
||||
margin_top = 96.0
|
||||
margin_right = 200.0
|
||||
margin_bottom = 120.0
|
||||
max_value = 1000.0
|
||||
step = 0.05
|
||||
allow_greater = true
|
||||
prefix = "Persistance:"
|
||||
prefix = "Persistence:"
|
||||
|
||||
[node name="OctavesSpinBox" type="SpinBox" parent="ParameterContainer"]
|
||||
margin_top = 112.0
|
||||
margin_right = 280.0
|
||||
margin_bottom = 136.0
|
||||
margin_top = 128.0
|
||||
margin_right = 200.0
|
||||
margin_bottom = 152.0
|
||||
min_value = 1.0
|
||||
max_value = 9.0
|
||||
value = 1.0
|
||||
@@ -118,15 +109,13 @@ prefix = "Octaves:"
|
||||
[node name="ClipContainer" type="VBoxContainer" parent="."]
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_top = -52.0
|
||||
margin_right = 280.0
|
||||
margin_top = -56.0
|
||||
margin_right = 200.0
|
||||
grow_vertical = 0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
custom_constants/separation = 8
|
||||
|
||||
[node name="MinClipSpinBox" type="SpinBox" parent="ClipContainer"]
|
||||
margin_right = 280.0
|
||||
margin_right = 200.0
|
||||
margin_bottom = 24.0
|
||||
min_value = -1.0
|
||||
max_value = 1.0
|
||||
@@ -135,9 +124,9 @@ value = -1.0
|
||||
prefix = "Min:"
|
||||
|
||||
[node name="MaxClipSpinBox" type="SpinBox" parent="ClipContainer"]
|
||||
margin_top = 28.0
|
||||
margin_right = 280.0
|
||||
margin_bottom = 52.0
|
||||
margin_top = 32.0
|
||||
margin_right = 200.0
|
||||
margin_bottom = 56.0
|
||||
min_value = -1.0
|
||||
max_value = 1.0
|
||||
step = 0.01
|
||||
|
||||
Reference in New Issue
Block a user