|
@@ -1,10 +1,10 @@
|
|
-[gd_scene load_steps=6 format=2]
|
|
|
|
|
|
+[gd_scene load_steps=6 format=3 uid="uid://7bhrbgdbrped"]
|
|
|
|
|
|
-[ext_resource path="res://translation_demo.gd" type="Script" id=1]
|
|
|
|
-[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]
|
|
|
|
|
|
+[ext_resource type="Script" path="res://translation_demo.gd" id="1"]
|
|
|
|
+[ext_resource type="Font" path="res://font/droid_sans.tres" id="2_fnagj"]
|
|
|
|
+[ext_resource type="Texture2D" uid="uid://bbdxdamxifokx" path="res://speaker.png" id="3"]
|
|
|
|
+[ext_resource type="Texture2D" uid="uid://cxbco5txqcf40" path="res://flag_uk.png" id="4"]
|
|
|
|
+[ext_resource type="AudioStream" uid="uid://d3e12qtu6rlb6" path="res://hello_en.wav" id="5"]
|
|
|
|
|
|
[node name="TranslationDemo" type="Control"]
|
|
[node name="TranslationDemo" type="Control"]
|
|
anchor_left = 0.5
|
|
anchor_left = 0.5
|
|
@@ -17,7 +17,7 @@ offset_right = 512.0
|
|
offset_bottom = 300.0
|
|
offset_bottom = 300.0
|
|
size_flags_horizontal = 2
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
size_flags_vertical = 2
|
|
-script = ExtResource( 1 )
|
|
|
|
|
|
+script = ExtResource( "1" )
|
|
|
|
|
|
[node name="English" type="Button" parent="."]
|
|
[node name="English" type="Button" parent="."]
|
|
offset_left = 32.0
|
|
offset_left = 32.0
|
|
@@ -53,7 +53,6 @@ offset_right = 804.0
|
|
offset_bottom = 312.0
|
|
offset_bottom = 312.0
|
|
size_flags_horizontal = 2
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 0
|
|
size_flags_vertical = 0
|
|
-custom_fonts/font = ExtResource( 2 )
|
|
|
|
text = "This is a demo of how a game can be internationalized.
|
|
text = "This is a demo of how a game can be internationalized.
|
|
Translations are created in a CSV file and then imported into Godot.
|
|
Translations are created in a CSV file and then imported into Godot.
|
|
|
|
|
|
@@ -76,7 +75,7 @@ offset_top = 381.0
|
|
offset_right = 324.0
|
|
offset_right = 324.0
|
|
offset_bottom = 400.0
|
|
offset_bottom = 400.0
|
|
size_flags_vertical = 0
|
|
size_flags_vertical = 0
|
|
-custom_fonts/font = ExtResource( 2 )
|
|
|
|
|
|
+theme_override_fonts/font = ExtResource( "2_fnagj" )
|
|
text = "KEY_HELLO"
|
|
text = "KEY_HELLO"
|
|
|
|
|
|
[node name="PlayAudio" type="Button" parent="."]
|
|
[node name="PlayAudio" type="Button" parent="."]
|
|
@@ -84,19 +83,19 @@ offset_left = 243.0
|
|
offset_top = 442.0
|
|
offset_top = 442.0
|
|
offset_right = 475.0
|
|
offset_right = 475.0
|
|
offset_bottom = 467.0
|
|
offset_bottom = 467.0
|
|
-custom_fonts/font = ExtResource( 2 )
|
|
|
|
|
|
+theme_override_fonts/font = ExtResource( "2_fnagj" )
|
|
text = "KEY_PUSH"
|
|
text = "KEY_PUSH"
|
|
-icon = ExtResource( 3 )
|
|
|
|
|
|
+icon = ExtResource( "3" )
|
|
|
|
|
|
[node name="Flag" type="TextureRect" parent="."]
|
|
[node name="Flag" type="TextureRect" parent="."]
|
|
offset_left = 85.0
|
|
offset_left = 85.0
|
|
offset_top = 382.0
|
|
offset_top = 382.0
|
|
offset_right = 213.0
|
|
offset_right = 213.0
|
|
offset_bottom = 467.0
|
|
offset_bottom = 467.0
|
|
-texture = ExtResource( 4 )
|
|
|
|
|
|
+texture = ExtResource( "4" )
|
|
|
|
|
|
[node name="Audio" type="AudioStreamPlayer" parent="."]
|
|
[node name="Audio" type="AudioStreamPlayer" parent="."]
|
|
-stream = ExtResource( 5 )
|
|
|
|
|
|
+stream = ExtResource( "5" )
|
|
|
|
|
|
[connection signal="pressed" from="English" to="." method="_on_english_pressed"]
|
|
[connection signal="pressed" from="English" to="." method="_on_english_pressed"]
|
|
[connection signal="pressed" from="Spanish" to="." method="_on_spanish_pressed"]
|
|
[connection signal="pressed" from="Spanish" to="." method="_on_spanish_pressed"]
|