Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opensimplexnoise: Fix persistence, tweak documentation URL and layout #791

Merged
merged 2 commits into from
Feb 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion misc/opensimplexnoise/OpenSimplexNoise_Viewer.gd
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,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():
Expand Down
81 changes: 35 additions & 46 deletions misc/opensimplexnoise/OpenSimplexNoise_Viewer.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -16,64 +16,54 @@ 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 )
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__ = {
"_edit_use_anchors_": false
}

[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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down