mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-05 10:09:47 +03: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/mona.png-a5ce9963ac8c7ef765aeb0f5428366a9.stex"
|
||||
type="StreamTexture2D"
|
||||
path="res://.godot/imported/mona.png-a5ce9963ac8c7ef765aeb0f5428366a9.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
@@ -10,7 +10,7 @@ metadata={
|
||||
[deps]
|
||||
|
||||
source_file="res://mona.png"
|
||||
dest_files=[ "res://.import/mona.png-a5ce9963ac8c7ef765aeb0f5428366a9.stex" ]
|
||||
dest_files=["res://.godot/imported/mona.png-a5ce9963ac8c7ef765aeb0f5428366a9.stex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ window/stretch/aspect="expand"
|
||||
|
||||
[gdnative]
|
||||
|
||||
singletons=[ ]
|
||||
singletons=[]
|
||||
|
||||
[memory]
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ func _bg_load_done():
|
||||
# Wait for the thread to complete, get the returned value
|
||||
var tex = thread.wait_to_finish()
|
||||
# Set to the sprite
|
||||
get_node("Sprite").set_texture(tex)
|
||||
get_node(^"Sprite2D").set_texture(tex)
|
||||
|
||||
|
||||
func _on_load_pressed():
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="Load" type="Button" parent="."]
|
||||
margin_left = 432.0
|
||||
margin_top = 82.0
|
||||
margin_right = 560.0
|
||||
margin_bottom = 114.0
|
||||
offset_left = 432.0
|
||||
offset_top = 82.0
|
||||
offset_right = 560.0
|
||||
offset_bottom = 114.0
|
||||
size_flags_horizontal = 2
|
||||
size_flags_vertical = 2
|
||||
text = "Load in Thread"
|
||||
@@ -17,11 +17,11 @@ __meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
position = Vector2( 494, 336 )
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
position = Vector2(494, 336)
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
offset = Vector2( 512, 300 )
|
||||
offset = Vector2(512, 300)
|
||||
current = true
|
||||
|
||||
[connection signal="pressed" from="Load" to="." method="_on_load_pressed"]
|
||||
|
||||
Reference in New Issue
Block a user