From b059543354ba9444fcaa41db27e9c2a7e48b9307 Mon Sep 17 00:00:00 2001 From: pseidemann Date: Fri, 18 Nov 2022 11:02:42 +0100 Subject: [PATCH 1/2] opensimplexnoise: fix persistence, doc url + layout tweaks --- .../OpenSimplexNoise_Viewer.gd | 2 +- .../OpenSimplexNoise_Viewer.tscn | 81 ++++++++----------- misc/opensimplexnoise/project.godot | 1 - 3 files changed, 36 insertions(+), 48 deletions(-) diff --git a/misc/opensimplexnoise/OpenSimplexNoise_Viewer.gd b/misc/opensimplexnoise/OpenSimplexNoise_Viewer.gd index 6cf5b7afc3..71ab25c4f0 100644 --- a/misc/opensimplexnoise/OpenSimplexNoise_Viewer.gd +++ b/misc/opensimplexnoise/OpenSimplexNoise_Viewer.gd @@ -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(): diff --git a/misc/opensimplexnoise/OpenSimplexNoise_Viewer.tscn b/misc/opensimplexnoise/OpenSimplexNoise_Viewer.tscn index f1a3a232d0..096daa8e36 100644 --- a/misc/opensimplexnoise/OpenSimplexNoise_Viewer.tscn +++ b/misc/opensimplexnoise/OpenSimplexNoise_Viewer.tscn @@ -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 diff --git a/misc/opensimplexnoise/project.godot b/misc/opensimplexnoise/project.godot index e315bbc64e..15cb4be89d 100644 --- a/misc/opensimplexnoise/project.godot +++ b/misc/opensimplexnoise/project.godot @@ -18,7 +18,6 @@ config/icon="res://icon.png" [display] -window/dpi/allow_hidpi=true window/stretch/mode="2d" window/stretch/aspect="expand" From ed99f1bc2e3d46f58a43a4efa83a966f7685de4f Mon Sep 17 00:00:00 2001 From: pseidemann Date: Mon, 21 Nov 2022 15:25:12 +0100 Subject: [PATCH 2/2] revert allow hidpi change --- misc/opensimplexnoise/project.godot | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/opensimplexnoise/project.godot b/misc/opensimplexnoise/project.godot index 15cb4be89d..e315bbc64e 100644 --- a/misc/opensimplexnoise/project.godot +++ b/misc/opensimplexnoise/project.godot @@ -18,6 +18,7 @@ config/icon="res://icon.png" [display] +window/dpi/allow_hidpi=true window/stretch/mode="2d" window/stretch/aspect="expand"