Update most demos for Godot 4.0.beta10 (#782)

This commit is contained in:
Hugo Locurcio
2023-01-05 16:50:17 +01:00
committed by GitHub
parent 85ca2fb2a1
commit 1d5184e235
758 changed files with 24258 additions and 9624 deletions

View File

@@ -29,5 +29,6 @@ process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@@ -13,23 +13,17 @@ config_version=5
config/name="Pause"
config/description="A demo showing how a game made in Godot can be paused."
run/main_scene="res://spinpause.tscn"
config/icon="res://icon.png"
config/features=PackedStringArray("4.0")
config/icon="res://icon.png"
[display]
window/stretch/mode="viewport"
window/stretch/aspect="expand"
[gdnative]
singletons=[]
[rendering]
vulkan/rendering/back_end=1
environment/defaults/default_clear_color=Color(0.133333, 0.133333, 0.133333, 1)
quality/intended_usage/framebuffer_allocation=3
vram_compression/import_etc=true
vram_compression/import_etc2=false
quality/filters/msaa=2
anti_aliasing/quality/msaa_3d=2
anti_aliasing/quality/use_debanding=true
vulkan/rendering/back_end=1

View File

@@ -1,12 +1,14 @@
[gd_scene load_steps=5 format=3 uid="uid://cwa8rglnrg4yb"]
[gd_scene load_steps=6 format=3 uid="uid://cwa8rglnrg4yb"]
[ext_resource type="Script" path="res://pause_button.gd" id="1"]
[ext_resource type="Script" path="res://process_mode.gd" id="2_0dpmq"]
[sub_resource type="BoxMesh" id="1"]
size = Vector3(1.5, 1.5, 1.5)
[sub_resource type="Animation" id="2"]
length = 10.0
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
@@ -20,10 +22,15 @@ tracks/0/keys = {
"values": [Vector3(0, 0, 0), Vector3(0, -6.28319, 0)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_5vmwp"]
_data = {
"spin": SubResource("2")
}
[node name="PauseScene" type="Node3D"]
[node name="Cube" type="MeshInstance3D" parent="."]
mesh = SubResource( "1" )
mesh = SubResource("1")
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(0.707107, -0.241845, 0.664463, 0, 0.939693, 0.34202, -0.707107, -0.241845, 0.664463, 2, 1, 2)
@@ -32,7 +39,9 @@ near = 0.1
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "spin"
anims/spin = SubResource( "2" )
libraries = {
"": SubResource("AnimationLibrary_5vmwp")
}
[node name="SpotLight3D" type="SpotLight3D" parent="."]
transform = Transform3D(0.707107, -0.353554, 0.612373, 0, 0.866026, 0.5, -0.707107, -0.353554, 0.612373, 2, 2, 2)
@@ -40,6 +49,7 @@ spot_range = 6.0
[node name="PauseButton" type="Button" parent="."]
process_mode = 3
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
@@ -48,11 +58,14 @@ offset_left = -125.0
offset_top = 150.0
offset_right = 125.0
offset_bottom = 200.0
grow_horizontal = 2
grow_vertical = 2
toggle_mode = true
text = "Pause"
script = ExtResource( "1" )
script = ExtResource("1")
[node name="ProcessMode" type="HBoxContainer" parent="."]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
@@ -61,18 +74,21 @@ offset_left = -185.502
offset_top = -250.0
offset_right = 185.503
offset_bottom = -210.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 12
[node name="Label" type="Label" parent="ProcessMode"]
layout_mode = 2
offset_top = 7.0
offset_right = 151.0
offset_bottom = 33.0
text = "Cube Process Mode"
[node name="OptionButton" type="OptionButton" parent="ProcessMode"]
minimum_size = Vector2(200, 0)
layout_mode = 2
offset_left = 163.0
offset_right = 363.0
offset_right = 334.0
offset_bottom = 40.0
item_count = 5
selected = 0
@@ -86,9 +102,6 @@ popup/item_3/text = "Always"
popup/item_3/id = 3
popup/item_4/text = "Disabled (Never)"
popup/item_4/id = 4
script = ExtResource( "2_0dpmq" )
__meta__ = {
"_edit_use_custom_anchors": false
}
script = ExtResource("2_0dpmq")
[connection signal="item_selected" from="ProcessMode/OptionButton" to="ProcessMode/OptionButton" method="_on_option_button_item_selected"]