|
@@ -3,88 +3,110 @@
|
|
[ext_resource type="Texture2D" uid="uid://ddpix5j1t4swg" path="res://icon.png" id="1"]
|
|
[ext_resource type="Texture2D" uid="uid://ddpix5j1t4swg" path="res://icon.png" id="1"]
|
|
[ext_resource type="Script" path="res://Pseudolocalization.gd" id="2"]
|
|
[ext_resource type="Script" path="res://Pseudolocalization.gd" id="2"]
|
|
|
|
|
|
-[node name="Pseudolocalization" type="Node2D"]
|
|
|
|
|
|
+[node name="Pseudolocalization" type="Control"]
|
|
|
|
+anchor_right = 1.0
|
|
|
|
+anchor_bottom = 1.0
|
|
script = ExtResource( "2" )
|
|
script = ExtResource( "2" )
|
|
|
|
|
|
-[node name="Title" type="Label" parent="."]
|
|
|
|
-offset_left = 140.0
|
|
|
|
-offset_top = 19.0
|
|
|
|
-offset_right = 1024.0
|
|
|
|
-offset_bottom = 114.0
|
|
|
|
|
|
+[node name="Title" type="HBoxContainer" parent="."]
|
|
|
|
+anchor_right = 1.0
|
|
|
|
+offset_left = 20.0
|
|
|
|
+offset_top = 30.0
|
|
|
|
+offset_right = -20.0
|
|
|
|
+offset_bottom = 130.0
|
|
|
|
+grow_horizontal = 2
|
|
|
|
+metadata/_edit_layout_mode = 1
|
|
|
|
+metadata/_edit_use_custom_anchors = false
|
|
|
|
+
|
|
|
|
+[node name="TextureRect" type="TextureRect" parent="Title"]
|
|
|
|
+minimum_size = Vector2(110, 0)
|
|
|
|
+offset_right = 110.0
|
|
|
|
+offset_bottom = 100.0
|
|
|
|
+texture = ExtResource( "1" )
|
|
|
|
+ignore_texture_size = true
|
|
|
|
+stretch_mode = 4
|
|
|
|
+
|
|
|
|
+[node name="Label" type="Label" parent="Title"]
|
|
|
|
+offset_left = 114.0
|
|
|
|
+offset_top = 27.0
|
|
|
|
+offset_right = 984.0
|
|
|
|
+offset_bottom = 72.0
|
|
|
|
+size_flags_horizontal = 3
|
|
theme_override_font_sizes/font_size = 30
|
|
theme_override_font_sizes/font_size = 30
|
|
text = "Pseudolocalization Demo"
|
|
text = "Pseudolocalization Demo"
|
|
vertical_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
|
|
-[node name="icon" type="Sprite2D" parent="Title"]
|
|
|
|
-position = Vector2(-66, 47)
|
|
|
|
-scale = Vector2(0.78563, 0.78563)
|
|
|
|
-texture = ExtResource( "1" )
|
|
|
|
-
|
|
|
|
-[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
|
|
|
-offset_left = 19.0
|
|
|
|
-offset_top = 142.0
|
|
|
|
-offset_right = 1031.0
|
|
|
|
-offset_bottom = 600.0
|
|
|
|
|
|
+[node name="Main" type="HBoxContainer" parent="."]
|
|
|
|
+anchor_right = 1.0
|
|
|
|
+anchor_bottom = 1.0
|
|
|
|
+offset_left = 20.0
|
|
|
|
+offset_top = 150.0
|
|
|
|
+offset_right = -20.0
|
|
|
|
+grow_horizontal = 2
|
|
|
|
+grow_vertical = 2
|
|
size_flags_vertical = 3
|
|
size_flags_vertical = 3
|
|
|
|
+theme_override_constants/separation = 20
|
|
|
|
+metadata/_edit_layout_mode = 1
|
|
|
|
+metadata/_edit_use_custom_anchors = false
|
|
|
|
|
|
-[node name="Pseudolocalization_options" type="VBoxContainer" parent="HBoxContainer"]
|
|
|
|
|
|
+[node name="Pseudolocalization_options" type="VBoxContainer" parent="Main"]
|
|
layout_direction = 2
|
|
layout_direction = 2
|
|
-offset_right = 502.0
|
|
|
|
-offset_bottom = 458.0
|
|
|
|
|
|
+offset_right = 472.0
|
|
|
|
+offset_bottom = 450.0
|
|
size_flags_horizontal = 3
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
size_flags_vertical = 3
|
|
|
|
|
|
-[node name="toggle" type="CheckButton" parent="HBoxContainer/Pseudolocalization_options"]
|
|
|
|
-offset_right = 502.0
|
|
|
|
|
|
+[node name="toggle" type="CheckButton" parent="Main/Pseudolocalization_options"]
|
|
|
|
+offset_right = 472.0
|
|
offset_bottom = 31.0
|
|
offset_bottom = 31.0
|
|
size_flags_horizontal = 3
|
|
size_flags_horizontal = 3
|
|
text = "Toggle Pseudolocalization"
|
|
text = "Toggle Pseudolocalization"
|
|
|
|
|
|
-[node name="accents" type="CheckButton" parent="HBoxContainer/Pseudolocalization_options"]
|
|
|
|
|
|
+[node name="accents" type="CheckButton" parent="Main/Pseudolocalization_options"]
|
|
offset_top = 35.0
|
|
offset_top = 35.0
|
|
-offset_right = 502.0
|
|
|
|
|
|
+offset_right = 472.0
|
|
offset_bottom = 66.0
|
|
offset_bottom = 66.0
|
|
size_flags_horizontal = 3
|
|
size_flags_horizontal = 3
|
|
text = "Toggle Accents"
|
|
text = "Toggle Accents"
|
|
|
|
|
|
-[node name="doublevowels" type="CheckButton" parent="HBoxContainer/Pseudolocalization_options"]
|
|
|
|
|
|
+[node name="doublevowels" type="CheckButton" parent="Main/Pseudolocalization_options"]
|
|
offset_top = 70.0
|
|
offset_top = 70.0
|
|
-offset_right = 502.0
|
|
|
|
|
|
+offset_right = 472.0
|
|
offset_bottom = 101.0
|
|
offset_bottom = 101.0
|
|
size_flags_horizontal = 3
|
|
size_flags_horizontal = 3
|
|
text = "Toggle Double Vowels"
|
|
text = "Toggle Double Vowels"
|
|
|
|
|
|
-[node name="fakebidi" type="CheckButton" parent="HBoxContainer/Pseudolocalization_options"]
|
|
|
|
|
|
+[node name="fakebidi" type="CheckButton" parent="Main/Pseudolocalization_options"]
|
|
offset_top = 105.0
|
|
offset_top = 105.0
|
|
-offset_right = 502.0
|
|
|
|
|
|
+offset_right = 472.0
|
|
offset_bottom = 136.0
|
|
offset_bottom = 136.0
|
|
size_flags_horizontal = 3
|
|
size_flags_horizontal = 3
|
|
text = "Toggle Fake Bidi"
|
|
text = "Toggle Fake Bidi"
|
|
|
|
|
|
-[node name="override" type="CheckButton" parent="HBoxContainer/Pseudolocalization_options"]
|
|
|
|
|
|
+[node name="override" type="CheckButton" parent="Main/Pseudolocalization_options"]
|
|
offset_top = 140.0
|
|
offset_top = 140.0
|
|
-offset_right = 502.0
|
|
|
|
|
|
+offset_right = 472.0
|
|
offset_bottom = 171.0
|
|
offset_bottom = 171.0
|
|
size_flags_horizontal = 3
|
|
size_flags_horizontal = 3
|
|
text = "Toggle Override"
|
|
text = "Toggle Override"
|
|
|
|
|
|
-[node name="skipplaceholders" type="CheckButton" parent="HBoxContainer/Pseudolocalization_options"]
|
|
|
|
|
|
+[node name="skipplaceholders" type="CheckButton" parent="Main/Pseudolocalization_options"]
|
|
offset_top = 175.0
|
|
offset_top = 175.0
|
|
-offset_right = 502.0
|
|
|
|
|
|
+offset_right = 472.0
|
|
offset_bottom = 206.0
|
|
offset_bottom = 206.0
|
|
size_flags_horizontal = 3
|
|
size_flags_horizontal = 3
|
|
text = "Skip Placeholders"
|
|
text = "Skip Placeholders"
|
|
|
|
|
|
-[node name="exp_ratio" type="HBoxContainer" parent="HBoxContainer/Pseudolocalization_options"]
|
|
|
|
|
|
+[node name="exp_ratio" type="HBoxContainer" parent="Main/Pseudolocalization_options"]
|
|
offset_top = 210.0
|
|
offset_top = 210.0
|
|
-offset_right = 502.0
|
|
|
|
|
|
+offset_right = 472.0
|
|
offset_bottom = 241.0
|
|
offset_bottom = 241.0
|
|
size_flags_vertical = 0
|
|
size_flags_vertical = 0
|
|
|
|
|
|
-[node name="MarginContainer" type="MarginContainer" parent="HBoxContainer/Pseudolocalization_options/exp_ratio"]
|
|
|
|
|
|
+[node name="MarginContainer" type="MarginContainer" parent="Main/Pseudolocalization_options/exp_ratio"]
|
|
offset_bottom = 31.0
|
|
offset_bottom = 31.0
|
|
|
|
|
|
-[node name="Label" type="Label" parent="HBoxContainer/Pseudolocalization_options/exp_ratio"]
|
|
|
|
|
|
+[node name="Label" type="Label" parent="Main/Pseudolocalization_options/exp_ratio"]
|
|
offset_left = 4.0
|
|
offset_left = 4.0
|
|
offset_right = 141.0
|
|
offset_right = 141.0
|
|
offset_bottom = 31.0
|
|
offset_bottom = 31.0
|
|
@@ -93,128 +115,134 @@ size_flags_vertical = 1
|
|
size_flags_stretch_ratio = 4.0
|
|
size_flags_stretch_ratio = 4.0
|
|
text = "Expansion Ratio : "
|
|
text = "Expansion Ratio : "
|
|
|
|
|
|
-[node name="TextEdit" type="LineEdit" parent="HBoxContainer/Pseudolocalization_options/exp_ratio"]
|
|
|
|
-offset_left = 403.0
|
|
|
|
-offset_right = 502.0
|
|
|
|
|
|
+[node name="TextEdit" type="LineEdit" parent="Main/Pseudolocalization_options/exp_ratio"]
|
|
|
|
+offset_left = 379.0
|
|
|
|
+offset_right = 472.0
|
|
offset_bottom = 31.0
|
|
offset_bottom = 31.0
|
|
size_flags_horizontal = 3
|
|
size_flags_horizontal = 3
|
|
|
|
+caret_blink = true
|
|
|
|
+caret_blink_speed = 0.5
|
|
|
|
|
|
-[node name="prefix" type="Control" parent="HBoxContainer/Pseudolocalization_options"]
|
|
|
|
|
|
+[node name="prefix" type="Control" parent="Main/Pseudolocalization_options"]
|
|
offset_top = 245.0
|
|
offset_top = 245.0
|
|
-offset_right = 502.0
|
|
|
|
|
|
+offset_right = 472.0
|
|
offset_bottom = 245.0
|
|
offset_bottom = 245.0
|
|
size_flags_horizontal = 3
|
|
size_flags_horizontal = 3
|
|
|
|
|
|
-[node name="TextEdit" type="LineEdit" parent="HBoxContainer/Pseudolocalization_options/prefix"]
|
|
|
|
|
|
+[node name="TextEdit" type="LineEdit" parent="Main/Pseudolocalization_options/prefix"]
|
|
offset_left = 5.0
|
|
offset_left = 5.0
|
|
offset_top = 32.8613
|
|
offset_top = 32.8613
|
|
offset_right = 385.0
|
|
offset_right = 385.0
|
|
offset_bottom = 62.8613
|
|
offset_bottom = 62.8613
|
|
size_flags_horizontal = 3
|
|
size_flags_horizontal = 3
|
|
|
|
+caret_blink = true
|
|
|
|
+caret_blink_speed = 0.5
|
|
|
|
|
|
-[node name="Label" type="Label" parent="HBoxContainer/Pseudolocalization_options/prefix"]
|
|
|
|
|
|
+[node name="Label" type="Label" parent="Main/Pseudolocalization_options/prefix"]
|
|
offset_left = 6.0
|
|
offset_left = 6.0
|
|
offset_top = 2.86133
|
|
offset_top = 2.86133
|
|
offset_right = 297.0
|
|
offset_right = 297.0
|
|
offset_bottom = 28.8613
|
|
offset_bottom = 28.8613
|
|
text = "Pseudolocalization Prefix :"
|
|
text = "Pseudolocalization Prefix :"
|
|
|
|
|
|
-[node name="suffix" type="Control" parent="HBoxContainer/Pseudolocalization_options"]
|
|
|
|
|
|
+[node name="suffix" type="Control" parent="Main/Pseudolocalization_options"]
|
|
offset_top = 249.0
|
|
offset_top = 249.0
|
|
-offset_right = 502.0
|
|
|
|
|
|
+offset_right = 472.0
|
|
offset_bottom = 249.0
|
|
offset_bottom = 249.0
|
|
size_flags_horizontal = 3
|
|
size_flags_horizontal = 3
|
|
|
|
|
|
-[node name="TextEdit" type="LineEdit" parent="HBoxContainer/Pseudolocalization_options/suffix"]
|
|
|
|
|
|
+[node name="TextEdit" type="LineEdit" parent="Main/Pseudolocalization_options/suffix"]
|
|
offset_left = 3.811
|
|
offset_left = 3.811
|
|
offset_top = 106.592
|
|
offset_top = 106.592
|
|
offset_right = 383.811
|
|
offset_right = 383.811
|
|
offset_bottom = 136.592
|
|
offset_bottom = 136.592
|
|
size_flags_horizontal = 3
|
|
size_flags_horizontal = 3
|
|
|
|
+caret_blink = true
|
|
|
|
+caret_blink_speed = 0.5
|
|
|
|
|
|
-[node name="Label" type="Label" parent="HBoxContainer/Pseudolocalization_options/suffix"]
|
|
|
|
|
|
+[node name="Label" type="Label" parent="Main/Pseudolocalization_options/suffix"]
|
|
offset_left = 6.0
|
|
offset_left = 6.0
|
|
offset_top = 76.5923
|
|
offset_top = 76.5923
|
|
offset_right = 297.0
|
|
offset_right = 297.0
|
|
offset_bottom = 102.592
|
|
offset_bottom = 102.592
|
|
text = "Pseudolocalization Suffix :"
|
|
text = "Pseudolocalization Suffix :"
|
|
|
|
|
|
-[node name="Pseudolocalizer" type="VBoxContainer" parent="HBoxContainer"]
|
|
|
|
-offset_left = 506.0
|
|
|
|
-offset_right = 1008.0
|
|
|
|
-offset_bottom = 458.0
|
|
|
|
|
|
+[node name="Pseudolocalizer" type="VBoxContainer" parent="Main"]
|
|
|
|
+offset_left = 492.0
|
|
|
|
+offset_right = 964.0
|
|
|
|
+offset_bottom = 450.0
|
|
grow_horizontal = 0
|
|
grow_horizontal = 0
|
|
size_flags_horizontal = 3
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
size_flags_vertical = 3
|
|
|
|
|
|
-[node name="Label" type="Label" parent="HBoxContainer/Pseudolocalizer"]
|
|
|
|
-offset_right = 502.0
|
|
|
|
|
|
+[node name="Label" type="Label" parent="Main/Pseudolocalizer"]
|
|
|
|
+offset_right = 472.0
|
|
offset_bottom = 26.0
|
|
offset_bottom = 26.0
|
|
size_flags_horizontal = 3
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 5
|
|
size_flags_vertical = 5
|
|
text = "Pseudolocalization key :"
|
|
text = "Pseudolocalization key :"
|
|
|
|
|
|
-[node name="Key" type="TextEdit" parent="HBoxContainer/Pseudolocalizer"]
|
|
|
|
|
|
+[node name="Key" type="TextEdit" parent="Main/Pseudolocalizer"]
|
|
offset_top = 30.0
|
|
offset_top = 30.0
|
|
-offset_right = 502.0
|
|
|
|
-offset_bottom = 145.0
|
|
|
|
|
|
+offset_right = 472.0
|
|
|
|
+offset_bottom = 143.0
|
|
size_flags_horizontal = 3
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
size_flags_vertical = 3
|
|
text = "The quick brown fox jumped over the lazy dog."
|
|
text = "The quick brown fox jumped over the lazy dog."
|
|
|
|
|
|
-[node name="margin" type="MarginContainer" parent="HBoxContainer/Pseudolocalizer"]
|
|
|
|
-offset_top = 149.0
|
|
|
|
-offset_bottom = 149.0
|
|
|
|
|
|
+[node name="margin" type="MarginContainer" parent="Main/Pseudolocalizer"]
|
|
|
|
+offset_top = 147.0
|
|
|
|
+offset_bottom = 147.0
|
|
size_flags_horizontal = 0
|
|
size_flags_horizontal = 0
|
|
size_flags_vertical = 0
|
|
size_flags_vertical = 0
|
|
|
|
|
|
-[node name="Pseudolocalize" type="Button" parent="HBoxContainer/Pseudolocalizer"]
|
|
|
|
-offset_left = 189.0
|
|
|
|
-offset_top = 153.0
|
|
|
|
-offset_right = 312.0
|
|
|
|
-offset_bottom = 184.0
|
|
|
|
|
|
+[node name="Pseudolocalize" type="Button" parent="Main/Pseudolocalizer"]
|
|
|
|
+offset_left = 174.0
|
|
|
|
+offset_top = 151.0
|
|
|
|
+offset_right = 297.0
|
|
|
|
+offset_bottom = 182.0
|
|
size_flags_horizontal = 6
|
|
size_flags_horizontal = 6
|
|
text = "Pseudolocalize"
|
|
text = "Pseudolocalize"
|
|
|
|
|
|
-[node name="margin2" type="MarginContainer" parent="HBoxContainer/Pseudolocalizer"]
|
|
|
|
-offset_top = 188.0
|
|
|
|
-offset_bottom = 188.0
|
|
|
|
|
|
+[node name="margin2" type="MarginContainer" parent="Main/Pseudolocalizer"]
|
|
|
|
+offset_top = 186.0
|
|
|
|
+offset_bottom = 186.0
|
|
size_flags_horizontal = 0
|
|
size_flags_horizontal = 0
|
|
size_flags_vertical = 0
|
|
size_flags_vertical = 0
|
|
|
|
|
|
-[node name="Label2" type="Label" parent="HBoxContainer/Pseudolocalizer"]
|
|
|
|
-offset_top = 192.0
|
|
|
|
-offset_right = 502.0
|
|
|
|
-offset_bottom = 218.0
|
|
|
|
|
|
+[node name="Label2" type="Label" parent="Main/Pseudolocalizer"]
|
|
|
|
+offset_top = 190.0
|
|
|
|
+offset_right = 472.0
|
|
|
|
+offset_bottom = 216.0
|
|
text = "Pseudolocalization result :"
|
|
text = "Pseudolocalization result :"
|
|
|
|
|
|
-[node name="Result" type="TextEdit" parent="HBoxContainer/Pseudolocalizer"]
|
|
|
|
-offset_top = 222.0
|
|
|
|
-offset_right = 502.0
|
|
|
|
-offset_bottom = 338.0
|
|
|
|
|
|
+[node name="Result" type="TextEdit" parent="Main/Pseudolocalizer"]
|
|
|
|
+offset_top = 220.0
|
|
|
|
+offset_right = 472.0
|
|
|
|
+offset_bottom = 333.0
|
|
size_flags_horizontal = 3
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
size_flags_vertical = 3
|
|
|
|
|
|
-[node name="A2Z" type="Label" parent="HBoxContainer/Pseudolocalizer"]
|
|
|
|
-offset_top = 342.0
|
|
|
|
-offset_right = 502.0
|
|
|
|
-offset_bottom = 458.0
|
|
|
|
|
|
+[node name="A2Z" type="Label" parent="Main/Pseudolocalizer"]
|
|
|
|
+offset_top = 337.0
|
|
|
|
+offset_right = 472.0
|
|
|
|
+offset_bottom = 450.0
|
|
size_flags_vertical = 7
|
|
size_flags_vertical = 7
|
|
text = "ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
|
text = "ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
|
abcdefghijklmnopqrstuvwxyz"
|
|
abcdefghijklmnopqrstuvwxyz"
|
|
|
|
|
|
-[node name="MarginContainer" type="MarginContainer" parent="HBoxContainer"]
|
|
|
|
-offset_left = 1012.0
|
|
|
|
-offset_right = 1012.0
|
|
|
|
-offset_bottom = 458.0
|
|
|
|
-
|
|
|
|
-[connection signal="toggled" from="HBoxContainer/Pseudolocalization_options/toggle" to="." method="_on_toggle_toggled"]
|
|
|
|
-[connection signal="toggled" from="HBoxContainer/Pseudolocalization_options/accents" to="." method="_on_accents_toggled"]
|
|
|
|
-[connection signal="toggled" from="HBoxContainer/Pseudolocalization_options/doublevowels" to="." method="_on_doublevowels_toggled"]
|
|
|
|
-[connection signal="toggled" from="HBoxContainer/Pseudolocalization_options/fakebidi" to="." method="_on_fakebidi_toggled"]
|
|
|
|
-[connection signal="toggled" from="HBoxContainer/Pseudolocalization_options/override" to="." method="_on_override_toggled"]
|
|
|
|
-[connection signal="toggled" from="HBoxContainer/Pseudolocalization_options/skipplaceholders" to="." method="_on_skipplaceholders_toggled"]
|
|
|
|
-[connection signal="text_changed" from="HBoxContainer/Pseudolocalization_options/exp_ratio/TextEdit" to="." method="_on_expansion_ratio_text_changed"]
|
|
|
|
-[connection signal="text_changed" from="HBoxContainer/Pseudolocalization_options/prefix/TextEdit" to="." method="_on_prefix_changed"]
|
|
|
|
-[connection signal="text_changed" from="HBoxContainer/Pseudolocalization_options/suffix/TextEdit" to="." method="_on_suffix_changed"]
|
|
|
|
-[connection signal="pressed" from="HBoxContainer/Pseudolocalizer/Pseudolocalize" to="." method="_on_Pseudolocalize_pressed"]
|
|
|
|
|
|
+[node name="MarginContainer" type="MarginContainer" parent="Main"]
|
|
|
|
+offset_left = 984.0
|
|
|
|
+offset_right = 984.0
|
|
|
|
+offset_bottom = 450.0
|
|
|
|
+
|
|
|
|
+[connection signal="toggled" from="Main/Pseudolocalization_options/toggle" to="." method="_on_toggle_toggled"]
|
|
|
|
+[connection signal="toggled" from="Main/Pseudolocalization_options/accents" to="." method="_on_accents_toggled"]
|
|
|
|
+[connection signal="toggled" from="Main/Pseudolocalization_options/doublevowels" to="." method="_on_doublevowels_toggled"]
|
|
|
|
+[connection signal="toggled" from="Main/Pseudolocalization_options/fakebidi" to="." method="_on_fakebidi_toggled"]
|
|
|
|
+[connection signal="toggled" from="Main/Pseudolocalization_options/override" to="." method="_on_override_toggled"]
|
|
|
|
+[connection signal="toggled" from="Main/Pseudolocalization_options/skipplaceholders" to="." method="_on_skipplaceholders_toggled"]
|
|
|
|
+[connection signal="text_changed" from="Main/Pseudolocalization_options/exp_ratio/TextEdit" to="." method="_on_expansion_ratio_text_changed"]
|
|
|
|
+[connection signal="text_changed" from="Main/Pseudolocalization_options/prefix/TextEdit" to="." method="_on_prefix_changed"]
|
|
|
|
+[connection signal="text_changed" from="Main/Pseudolocalization_options/suffix/TextEdit" to="." method="_on_suffix_changed"]
|
|
|
|
+[connection signal="pressed" from="Main/Pseudolocalizer/Pseudolocalize" to="." method="_on_Pseudolocalize_pressed"]
|