mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-06 07:50:22 +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/flag_japan.png-e7284e6af3de26ab9c66cac9c4062038.stex"
|
||||
type="StreamTexture2D"
|
||||
path="res://.godot/imported/flag_japan.png-e7284e6af3de26ab9c66cac9c4062038.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
@@ -10,7 +10,7 @@ metadata={
|
||||
[deps]
|
||||
|
||||
source_file="res://flag_japan.png"
|
||||
dest_files=[ "res://.import/flag_japan.png-e7284e6af3de26ab9c66cac9c4062038.stex" ]
|
||||
dest_files=["res://.godot/imported/flag_japan.png-e7284e6af3de26ab9c66cac9c4062038.stex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/flag_spain.png-fd2012b4e19487cfc4923df0c268553f.stex"
|
||||
type="StreamTexture2D"
|
||||
path="res://.godot/imported/flag_spain.png-fd2012b4e19487cfc4923df0c268553f.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
@@ -10,7 +10,7 @@ metadata={
|
||||
[deps]
|
||||
|
||||
source_file="res://flag_spain.png"
|
||||
dest_files=[ "res://.import/flag_spain.png-fd2012b4e19487cfc4923df0c268553f.stex" ]
|
||||
dest_files=["res://.godot/imported/flag_spain.png-fd2012b4e19487cfc4923df0c268553f.stex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/flag_uk.png-eb8a2b26ac36f4d0cf0d7345e577ec2c.stex"
|
||||
type="StreamTexture2D"
|
||||
path="res://.godot/imported/flag_uk.png-eb8a2b26ac36f4d0cf0d7345e577ec2c.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
@@ -10,7 +10,7 @@ metadata={
|
||||
[deps]
|
||||
|
||||
source_file="res://flag_uk.png"
|
||||
dest_files=[ "res://.import/flag_uk.png-eb8a2b26ac36f4d0cf0d7345e577ec2c.stex" ]
|
||||
dest_files=["res://.godot/imported/flag_uk.png-eb8a2b26ac36f4d0cf0d7345e577ec2c.stex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
[gd_resource type="DynamicFont" load_steps=7 format=2]
|
||||
[gd_resource type="Font" load_steps=7 format=2]
|
||||
|
||||
[ext_resource path="res://font/DroidSansArabic.ttf" type="DynamicFontData" id=1]
|
||||
[ext_resource path="res://font/DroidSansFallback.ttf" type="DynamicFontData" id=2]
|
||||
[ext_resource path="res://font/DroidSansHebrew.ttf" type="DynamicFontData" id=3]
|
||||
[ext_resource path="res://font/DroidSansJapanese.ttf" type="DynamicFontData" id=4]
|
||||
[ext_resource path="res://font/DroidSansThai.ttf" type="DynamicFontData" id=5]
|
||||
[ext_resource path="res://font/DroidSans.ttf" type="DynamicFontData" id=6]
|
||||
[ext_resource path="res://font/DroidSansArabic.ttf" type="FontData" id=1]
|
||||
[ext_resource path="res://font/DroidSansFallback.ttf" type="FontData" id=2]
|
||||
[ext_resource path="res://font/DroidSansHebrew.ttf" type="FontData" id=3]
|
||||
[ext_resource path="res://font/DroidSansJapanese.ttf" type="FontData" id=4]
|
||||
[ext_resource path="res://font/DroidSansThai.ttf" type="FontData" id=5]
|
||||
[ext_resource path="res://font/DroidSans.ttf" type="FontData" id=6]
|
||||
|
||||
[resource]
|
||||
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamSample"
|
||||
path="res://.import/hello_en.wav-27ed59f2d75c1ba813ab0abd069b6758.sample"
|
||||
path="res://.godot/imported/hello_en.wav-27ed59f2d75c1ba813ab0abd069b6758.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://hello_en.wav"
|
||||
dest_files=[ "res://.import/hello_en.wav-27ed59f2d75c1ba813ab0abd069b6758.sample" ]
|
||||
dest_files=["res://.godot/imported/hello_en.wav-27ed59f2d75c1ba813ab0abd069b6758.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamSample"
|
||||
path="res://.import/hello_es.wav-64fe245556f8642a1881ae257bd123f2.sample"
|
||||
path="res://.godot/imported/hello_es.wav-64fe245556f8642a1881ae257bd123f2.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://hello_es.wav"
|
||||
dest_files=[ "res://.import/hello_es.wav-64fe245556f8642a1881ae257bd123f2.sample" ]
|
||||
dest_files=["res://.godot/imported/hello_es.wav-64fe245556f8642a1881ae257bd123f2.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamSample"
|
||||
path="res://.import/hello_jp.wav-c31fbd7870b4b969789cb01f208809ac.sample"
|
||||
path="res://.godot/imported/hello_jp.wav-c31fbd7870b4b969789cb01f208809ac.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://hello_jp.wav"
|
||||
dest_files=[ "res://.import/hello_jp.wav-c31fbd7870b4b969789cb01f208809ac.sample" ]
|
||||
dest_files=["res://.godot/imported/hello_jp.wav-c31fbd7870b4b969789cb01f208809ac.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
|
||||
@@ -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]
|
||||
|
||||
|
||||
@@ -24,15 +24,15 @@ window/stretch/aspect="expand"
|
||||
|
||||
[gdnative]
|
||||
|
||||
singletons=[ ]
|
||||
singletons=[]
|
||||
|
||||
[locale]
|
||||
|
||||
translation_remaps={
|
||||
"res://flag_uk.png": [ "res://flag_spain.png:es", "res://flag_japan.png:ja" ],
|
||||
"res://hello_en.wav": PoolStringArray( "res://hello_es.wav:es", "res://hello_jp.wav:ja" )
|
||||
"res://flag_uk.png": ["res://flag_spain.png:es", "res://flag_japan.png:ja"],
|
||||
"res://hello_en.wav": PackedStringArray("res://hello_es.wav:es", "res://hello_jp.wav:ja")
|
||||
}
|
||||
translations=PoolStringArray( "res://text.en.translation", "res://text.es.translation", "res://text.ja.translation" )
|
||||
translations=PackedStringArray("res://text.en.translation", "res://text.es.translation", "res://text.ja.translation")
|
||||
|
||||
[memory]
|
||||
|
||||
@@ -43,4 +43,4 @@ multithread/thread_rid_pool_prealloc=60
|
||||
quality/driver/driver_name="GLES2"
|
||||
vram_compression/import_etc=true
|
||||
vram_compression/import_etc2=false
|
||||
environment/default_clear_color=Color( 0.145098, 0.145098, 0.164706, 1 )
|
||||
environment/default_clear_color=Color(0.145098, 0.145098, 0.164706, 1)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/speaker.png-045bf6684b83b55b088824f14e175d16.stex"
|
||||
type="StreamTexture2D"
|
||||
path="res://.godot/imported/speaker.png-045bf6684b83b55b088824f14e175d16.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
@@ -10,7 +10,7 @@ metadata={
|
||||
[deps]
|
||||
|
||||
source_file="res://speaker.png"
|
||||
dest_files=[ "res://.import/speaker.png-045bf6684b83b55b088824f14e175d16.stex" ]
|
||||
dest_files=["res://.godot/imported/speaker.png-045bf6684b83b55b088824f14e175d16.stex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
||||
@@ -5,10 +5,10 @@ type="Translation"
|
||||
|
||||
[deps]
|
||||
|
||||
files=[ "res://text.en.translation", "res://text.es.translation", "res://text.ja.translation" ]
|
||||
files=["res://text.en.translation", "res://text.es.translation", "res://text.ja.translation"]
|
||||
|
||||
source_file="res://text.csv"
|
||||
dest_files=[ "res://text.en.translation", "res://text.es.translation", "res://text.ja.translation" ]
|
||||
dest_files=["res://text.en.translation", "res://text.es.translation", "res://text.ja.translation"]
|
||||
|
||||
[params]
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://translation_demo.gd" type="Script" id=1]
|
||||
[ext_resource path="res://font/droid_sans.tres" type="DynamicFont" id=2]
|
||||
[ext_resource path="res://speaker.png" type="Texture" id=3]
|
||||
[ext_resource path="res://flag_uk.png" type="Texture" id=4]
|
||||
[ext_resource path="res://font/droid_sans.tres" type="Font" id=2]
|
||||
[ext_resource path="res://speaker.png" type="Texture2D" id=3]
|
||||
[ext_resource path="res://flag_uk.png" type="Texture2D" id=4]
|
||||
[ext_resource path="res://hello_en.wav" type="AudioStream" id=5]
|
||||
|
||||
[node name="TranslationDemo" type="Control"]
|
||||
@@ -11,46 +11,46 @@ anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -512.0
|
||||
margin_top = -300.0
|
||||
margin_right = 512.0
|
||||
margin_bottom = 300.0
|
||||
offset_left = -512.0
|
||||
offset_top = -300.0
|
||||
offset_right = 512.0
|
||||
offset_bottom = 300.0
|
||||
size_flags_horizontal = 2
|
||||
size_flags_vertical = 2
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="English" type="Button" parent="."]
|
||||
margin_left = 32.0
|
||||
margin_top = 64.0
|
||||
margin_right = 192.0
|
||||
margin_bottom = 88.0
|
||||
offset_left = 32.0
|
||||
offset_top = 64.0
|
||||
offset_right = 192.0
|
||||
offset_bottom = 88.0
|
||||
size_flags_horizontal = 2
|
||||
size_flags_vertical = 2
|
||||
text = "Use English"
|
||||
|
||||
[node name="Spanish" type="Button" parent="."]
|
||||
margin_left = 32.0
|
||||
margin_top = 112.0
|
||||
margin_right = 192.0
|
||||
margin_bottom = 136.0
|
||||
offset_left = 32.0
|
||||
offset_top = 112.0
|
||||
offset_right = 192.0
|
||||
offset_bottom = 136.0
|
||||
size_flags_horizontal = 2
|
||||
size_flags_vertical = 2
|
||||
text = "Use Spanish"
|
||||
|
||||
[node name="Japanese" type="Button" parent="."]
|
||||
margin_left = 32.0
|
||||
margin_top = 160.0
|
||||
margin_right = 192.0
|
||||
margin_bottom = 184.0
|
||||
offset_left = 32.0
|
||||
offset_top = 160.0
|
||||
offset_right = 192.0
|
||||
offset_bottom = 184.0
|
||||
size_flags_horizontal = 2
|
||||
size_flags_vertical = 2
|
||||
text = "Use Japanese"
|
||||
|
||||
[node name="Description" type="Label" parent="."]
|
||||
margin_left = 243.0
|
||||
margin_top = 42.0
|
||||
margin_right = 804.0
|
||||
margin_bottom = 312.0
|
||||
offset_left = 243.0
|
||||
offset_top = 42.0
|
||||
offset_right = 804.0
|
||||
offset_bottom = 312.0
|
||||
size_flags_horizontal = 2
|
||||
size_flags_vertical = 0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
@@ -65,34 +65,34 @@ modified. Resources can also be set internationalized alternatives and replaced
|
||||
automatically on locale change."
|
||||
|
||||
[node name="HSeparator" type="HSeparator" parent="."]
|
||||
margin_left = 33.0
|
||||
margin_top = 330.0
|
||||
margin_right = 1001.0
|
||||
margin_bottom = 370.0
|
||||
offset_left = 33.0
|
||||
offset_top = 330.0
|
||||
offset_right = 1001.0
|
||||
offset_bottom = 370.0
|
||||
|
||||
[node name="HelloText" type="Label" parent="."]
|
||||
margin_left = 246.0
|
||||
margin_top = 381.0
|
||||
margin_right = 324.0
|
||||
margin_bottom = 400.0
|
||||
offset_left = 246.0
|
||||
offset_top = 381.0
|
||||
offset_right = 324.0
|
||||
offset_bottom = 400.0
|
||||
size_flags_vertical = 0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
text = "KEY_HELLO"
|
||||
|
||||
[node name="PlayAudio" type="Button" parent="."]
|
||||
margin_left = 243.0
|
||||
margin_top = 442.0
|
||||
margin_right = 475.0
|
||||
margin_bottom = 467.0
|
||||
offset_left = 243.0
|
||||
offset_top = 442.0
|
||||
offset_right = 475.0
|
||||
offset_bottom = 467.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
text = "KEY_PUSH"
|
||||
icon = ExtResource( 3 )
|
||||
|
||||
[node name="Flag" type="TextureRect" parent="."]
|
||||
margin_left = 85.0
|
||||
margin_top = 382.0
|
||||
margin_right = 213.0
|
||||
margin_bottom = 467.0
|
||||
offset_left = 85.0
|
||||
offset_top = 382.0
|
||||
offset_right = 213.0
|
||||
offset_bottom = 467.0
|
||||
texture = ExtResource( 4 )
|
||||
|
||||
[node name="Audio" type="AudioStreamPlayer" parent="."]
|
||||
|
||||
Reference in New Issue
Block a user