mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 23:10:08 +01:00
Convert demos to Godot 4 using regular expressions in a script
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
|
||||
type="StreamTexture2D"
|
||||
path="res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
@@ -10,7 +10,7 @@ metadata={
|
||||
[deps]
|
||||
|
||||
source_file="res://icon.png"
|
||||
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
|
||||
dest_files=["res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ func _ready():
|
||||
# process even when the SceneTree is paused. Without that it would
|
||||
# not be able to unpause the game. Note that you can set this through
|
||||
# the inspector as well.
|
||||
pause_mode = Node.PAUSE_MODE_PROCESS
|
||||
process_mode = Node.PROCESS_MODE_ALWAYS
|
||||
|
||||
|
||||
func _toggled(button_pressed):
|
||||
|
||||
@@ -23,7 +23,7 @@ window/stretch/aspect="expand"
|
||||
|
||||
[gdnative]
|
||||
|
||||
singletons=[ ]
|
||||
singletons=[]
|
||||
|
||||
[rendering]
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
[ext_resource path="res://pause_button.gd" type="Script" id=1]
|
||||
|
||||
[sub_resource type="CubeMesh" id=1]
|
||||
[sub_resource type="BoxMesh" id=1]
|
||||
|
||||
[sub_resource type="Animation" id=2]
|
||||
length = 10.0
|
||||
@@ -14,20 +14,20 @@ tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/keys = {
|
||||
"times": PoolRealArray( 0, 10 ),
|
||||
"transitions": PoolRealArray( 1, 1 ),
|
||||
"times": PackedFloat32Array(0, 10),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [ Vector3( 0, 0, 0 ), Vector3( 0, -360, 0 ) ]
|
||||
"values": [Vector3(0, 0, 0), Vector3(0, -360, 0)]
|
||||
}
|
||||
|
||||
[node name="PauseScene" type="Spatial"]
|
||||
[node name="PauseScene" type="Node3D"]
|
||||
|
||||
[node name="Cube" type="MeshInstance" parent="."]
|
||||
[node name="Cube" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource( 1 )
|
||||
material/0 = null
|
||||
surface_material_override/0 = null
|
||||
|
||||
[node name="Camera" type="Camera" parent="."]
|
||||
transform = Transform( 0.571594, 0.275303, -0.772974, 0, 0.942035, 0.335515, 0.820537, -0.191779, 0.538461, -5.59754, 2.75935, 4.01344 )
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(0.571594, 0.275303, -0.772974, 0, 0.942035, 0.335515, 0.820537, -0.191779, 0.538461, -5.59754, 2.75935, 4.01344)
|
||||
fov = 74.0
|
||||
near = 0.1
|
||||
|
||||
@@ -35,21 +35,21 @@ near = 0.1
|
||||
autoplay = "spin"
|
||||
anims/spin = SubResource( 2 )
|
||||
|
||||
[node name="SpotLight" type="SpotLight" parent="."]
|
||||
transform = Transform( 0.792992, 0.251051, -0.555101, 0, 0.911149, 0.412078, 0.609232, -0.326775, 0.722534, -3.05357, 1.80053, 3.64099 )
|
||||
[node name="SpotLight3D" type="SpotLight3D" parent="."]
|
||||
transform = Transform3D(0.792992, 0.251051, -0.555101, 0, 0.911149, 0.412078, 0.609232, -0.326775, 0.722534, -3.05357, 1.80053, 3.64099)
|
||||
spot_range = 6.0
|
||||
|
||||
[node name="PauseButton" type="Button" parent="."]
|
||||
pause_mode = 2
|
||||
process_mode = 3
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -125.0
|
||||
margin_top = 150.0
|
||||
margin_right = 125.0
|
||||
margin_bottom = 200.0
|
||||
rect_pivot_offset = Vector2( 123, 25 )
|
||||
offset_left = -125.0
|
||||
offset_top = 150.0
|
||||
offset_right = 125.0
|
||||
offset_bottom = 200.0
|
||||
rect_pivot_offset = Vector2(123, 25)
|
||||
toggle_mode = true
|
||||
text = "Pause"
|
||||
script = ExtResource( 1 )
|
||||
|
||||
Reference in New Issue
Block a user