Skip to content

Commit

Permalink
Port UI mirror and translation demos to 4.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
bruvzg committed Oct 19, 2023
1 parent 7e9d31b commit 0401f28
Show file tree
Hide file tree
Showing 25 changed files with 234 additions and 396 deletions.
3 changes: 2 additions & 1 deletion gui/translation/flag_japan.png.import
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ dest_files=["res://.godot/imported/flag_japan.png-e7284e6af3de26ab9c66cac9c40620
[params]

compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
Expand All @@ -29,5 +29,6 @@ process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
3 changes: 2 additions & 1 deletion gui/translation/flag_spain.png.import
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ dest_files=["res://.godot/imported/flag_spain.png-fd2012b4e19487cfc4923df0c26855
[params]

compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
Expand All @@ -29,5 +29,6 @@ process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
3 changes: 2 additions & 1 deletion gui/translation/flag_uk.png.import
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ dest_files=["res://.godot/imported/flag_uk.png-eb8a2b26ac36f4d0cf0d7345e577ec2c.
[params]

compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
Expand All @@ -29,5 +29,6 @@ process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
24 changes: 12 additions & 12 deletions gui/translation/font/DroidSans.ttf.import
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[remap]

importer="font_data_dynamic"
type="FontData"
type="FontFile"
uid="uid://33p1pmbcp0bh"
path="res://.godot/imported/DroidSans.ttf-ba789e8a8b60473207799201d8a90bb4.fontdata"

Expand All @@ -12,22 +12,22 @@ dest_files=["res://.godot/imported/DroidSans.ttf-ba789e8a8b60473207799201d8a90bb

[params]

antialiased=true
Rendering=null
antialiasing=1
generate_mipmaps=false
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
embolden=0.0
transform=Transform2D(1, 0, 0, 1, 0, 0)
oversampling=0.0
Fallbacks=null
fallbacks=[Resource("res://font/DroidSansArabic.ttf"), Resource("res://font/DroidSansHebrew.ttf"), Resource("res://font/DroidSansJapanese.ttf"), Resource("res://font/DroidSansThai.ttf"), Resource("res://font/DroidSansFallback.ttf")]
Compress=null
compress=true
opentype_feature_overrides={}
preload/char_ranges=PackedStringArray()
preload/glyph_ranges=PackedStringArray()
preload/configurations=PackedStringArray()
support_overrides/language_enabled=PackedStringArray()
support_overrides/language_disabled=PackedStringArray()
support_overrides/script_enabled=PackedStringArray()
support_overrides/script_disabled=PackedStringArray()
preload=[]
language_support={}
script_support={}
opentype_features={}
24 changes: 12 additions & 12 deletions gui/translation/font/DroidSansArabic.ttf.import
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[remap]

importer="font_data_dynamic"
type="FontData"
type="FontFile"
uid="uid://c7ujio1oqntre"
path="res://.godot/imported/DroidSansArabic.ttf-da8dabd885d494269ba77c8d78d8ed5b.fontdata"

Expand All @@ -12,22 +12,22 @@ dest_files=["res://.godot/imported/DroidSansArabic.ttf-da8dabd885d494269ba77c8d7

[params]

antialiased=true
Rendering=null
antialiasing=1
generate_mipmaps=false
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
embolden=0.0
transform=Transform2D(1, 0, 0, 1, 0, 0)
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
opentype_feature_overrides={}
preload/char_ranges=PackedStringArray()
preload/glyph_ranges=PackedStringArray()
preload/configurations=PackedStringArray()
support_overrides/language_enabled=PackedStringArray()
support_overrides/language_disabled=PackedStringArray()
support_overrides/script_enabled=PackedStringArray()
support_overrides/script_disabled=PackedStringArray()
preload=[]
language_support={}
script_support={}
opentype_features={}
24 changes: 12 additions & 12 deletions gui/translation/font/DroidSansFallback.ttf.import
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[remap]

importer="font_data_dynamic"
type="FontData"
type="FontFile"
uid="uid://xesv5idkrqcd"
path="res://.godot/imported/DroidSansFallback.ttf-9bc560676e9de93a3474250e8f345fde.fontdata"

Expand All @@ -12,22 +12,22 @@ dest_files=["res://.godot/imported/DroidSansFallback.ttf-9bc560676e9de93a3474250

[params]

antialiased=true
Rendering=null
antialiasing=1
generate_mipmaps=false
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
embolden=0.0
transform=Transform2D(1, 0, 0, 1, 0, 0)
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
opentype_feature_overrides={}
preload/char_ranges=PackedStringArray()
preload/glyph_ranges=PackedStringArray()
preload/configurations=PackedStringArray()
support_overrides/language_enabled=PackedStringArray()
support_overrides/language_disabled=PackedStringArray()
support_overrides/script_enabled=PackedStringArray()
support_overrides/script_disabled=PackedStringArray()
preload=[]
language_support={}
script_support={}
opentype_features={}
24 changes: 12 additions & 12 deletions gui/translation/font/DroidSansHebrew.ttf.import
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[remap]

importer="font_data_dynamic"
type="FontData"
type="FontFile"
uid="uid://cft2167j0ba27"
path="res://.godot/imported/DroidSansHebrew.ttf-2fc88dbe58ef638a09561323f2a293d1.fontdata"

Expand All @@ -12,22 +12,22 @@ dest_files=["res://.godot/imported/DroidSansHebrew.ttf-2fc88dbe58ef638a09561323f

[params]

antialiased=true
Rendering=null
antialiasing=1
generate_mipmaps=false
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
embolden=0.0
transform=Transform2D(1, 0, 0, 1, 0, 0)
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
opentype_feature_overrides={}
preload/char_ranges=PackedStringArray()
preload/glyph_ranges=PackedStringArray()
preload/configurations=PackedStringArray()
support_overrides/language_enabled=PackedStringArray()
support_overrides/language_disabled=PackedStringArray()
support_overrides/script_enabled=PackedStringArray()
support_overrides/script_disabled=PackedStringArray()
preload=[]
language_support={}
script_support={}
opentype_features={}
24 changes: 12 additions & 12 deletions gui/translation/font/DroidSansJapanese.ttf.import
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[remap]

importer="font_data_dynamic"
type="FontData"
type="FontFile"
uid="uid://rdmplfeo1mfc"
path="res://.godot/imported/DroidSansJapanese.ttf-de3fc871b57fb078f93cf2bf5d96545a.fontdata"

Expand All @@ -12,22 +12,22 @@ dest_files=["res://.godot/imported/DroidSansJapanese.ttf-de3fc871b57fb078f93cf2b

[params]

antialiased=true
Rendering=null
antialiasing=1
generate_mipmaps=false
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
embolden=0.0
transform=Transform2D(1, 0, 0, 1, 0, 0)
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
opentype_feature_overrides={}
preload/char_ranges=PackedStringArray()
preload/glyph_ranges=PackedStringArray()
preload/configurations=PackedStringArray()
support_overrides/language_enabled=PackedStringArray()
support_overrides/language_disabled=PackedStringArray()
support_overrides/script_enabled=PackedStringArray()
support_overrides/script_disabled=PackedStringArray()
preload=[]
language_support={}
script_support={}
opentype_features={}
24 changes: 12 additions & 12 deletions gui/translation/font/DroidSansThai.ttf.import
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[remap]

importer="font_data_dynamic"
type="FontData"
type="FontFile"
uid="uid://ctmwkt7kh6cst"
path="res://.godot/imported/DroidSansThai.ttf-91e10bcf58a298496a7fd92e1d4cd8c4.fontdata"

Expand All @@ -12,22 +12,22 @@ dest_files=["res://.godot/imported/DroidSansThai.ttf-91e10bcf58a298496a7fd92e1d4

[params]

antialiased=true
Rendering=null
antialiasing=1
generate_mipmaps=false
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
embolden=0.0
transform=Transform2D(1, 0, 0, 1, 0, 0)
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
opentype_feature_overrides={}
preload/char_ranges=PackedStringArray()
preload/glyph_ranges=PackedStringArray()
preload/configurations=PackedStringArray()
support_overrides/language_enabled=PackedStringArray()
support_overrides/language_disabled=PackedStringArray()
support_overrides/script_enabled=PackedStringArray()
support_overrides/script_disabled=PackedStringArray()
preload=[]
language_support={}
script_support={}
opentype_features={}
22 changes: 0 additions & 22 deletions gui/translation/font/droid_sans.tres

This file was deleted.

2 changes: 1 addition & 1 deletion gui/translation/hello_en.wav.import
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[remap]

importer="wav"
type="AudioStreamSample"
type="AudioStreamWAV"
uid="uid://d3e12qtu6rlb6"
path="res://.godot/imported/hello_en.wav-27ed59f2d75c1ba813ab0abd069b6758.sample"

Expand Down
2 changes: 1 addition & 1 deletion gui/translation/hello_es.wav.import
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[remap]

importer="wav"
type="AudioStreamSample"
type="AudioStreamWAV"
uid="uid://s18obcimx61r"
path="res://.godot/imported/hello_es.wav-64fe245556f8642a1881ae257bd123f2.sample"

Expand Down
2 changes: 1 addition & 1 deletion gui/translation/hello_jp.wav.import
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[remap]

importer="wav"
type="AudioStreamSample"
type="AudioStreamWAV"
uid="uid://7fh3dentieog"
path="res://.godot/imported/hello_jp.wav-c31fbd7870b4b969789cb01f208809ac.sample"

Expand Down
6 changes: 3 additions & 3 deletions gui/translation/project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ config_version=5
config/name="Translation Demo"
config/description="A demo showing how Godot seamlessly enables
the use of localized resources and texts."
config/tags=PackedStringArray("demo", "internationalization", "official")
run/main_scene="res://translation_demo.tscn"
config/features=PackedStringArray("4.2")
config/icon="res://icon.webp"
config/features=PackedStringArray("4.0")
config/tags=PackedStringArray("demo", "internationalization", "official")

[display]

Expand All @@ -25,11 +25,11 @@ window/stretch/aspect="expand"

[internationalization]

locale/translations=PackedStringArray("res://text.en.translation", "res://text.es.translation", "res://text.ja.translation")
locale/translation_remaps={
"res://flag_uk.png": PackedStringArray("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")
}
locale/translations=PackedStringArray("res://text.en.translation", "res://text.es.translation", "res://text.ja.translation")
locale/locale_filter_mode=0

[locale]
Expand Down
Loading

0 comments on commit 0401f28

Please sign in to comment.