diff options
Diffstat (limited to 'demos/gui/translation')
-rw-r--r-- | demos/gui/translation/controls.gd | 20 | ||||
-rw-r--r-- | demos/gui/translation/controls.scn | bin | 1857 -> 2349 bytes | |||
-rw-r--r-- | demos/gui/translation/engine.cfg | 1 | ||||
-rw-r--r-- | demos/gui/translation/flag_japan.png | bin | 0 -> 1473 bytes | |||
-rw-r--r-- | demos/gui/translation/flag_spain.png | bin | 0 -> 3048 bytes | |||
-rw-r--r-- | demos/gui/translation/flag_uk.png | bin | 0 -> 6544 bytes | |||
-rw-r--r-- | demos/gui/translation/main.scn | bin | 2051 -> 2671 bytes |
7 files changed, 21 insertions, 0 deletions
diff --git a/demos/gui/translation/controls.gd b/demos/gui/translation/controls.gd new file mode 100644 index 0000000000..f8403f49a7 --- /dev/null +++ b/demos/gui/translation/controls.gd @@ -0,0 +1,20 @@ + +extends Panel + +# member variables here, example: +# var a=2 +# var b="textvar" + +func _ready(): + # Initialization here + pass + + + + +func _on_back_pressed(): + var s = load("res://main.scn") + var si = s.instance() + get_parent().add_child(si) + queue_free() + pass # replace with function body diff --git a/demos/gui/translation/controls.scn b/demos/gui/translation/controls.scn Binary files differindex 23e2413bc3..66e6d47702 100644 --- a/demos/gui/translation/controls.scn +++ b/demos/gui/translation/controls.scn diff --git a/demos/gui/translation/engine.cfg b/demos/gui/translation/engine.cfg index 4f01f200c6..169b65e154 100644 --- a/demos/gui/translation/engine.cfg +++ b/demos/gui/translation/engine.cfg @@ -6,3 +6,4 @@ main_scene="res://main.scn" [locale] translations=["res://translations/text.en.xl", "res://translations/text.es.xl", "res://translations/text.ja.xl"] +translation_remaps={"res://flag_uk.png":["res://flag_spain.png:es", "res://flag_japan.png:ja"]} diff --git a/demos/gui/translation/flag_japan.png b/demos/gui/translation/flag_japan.png Binary files differnew file mode 100644 index 0000000000..4cc8267a5c --- /dev/null +++ b/demos/gui/translation/flag_japan.png diff --git a/demos/gui/translation/flag_spain.png b/demos/gui/translation/flag_spain.png Binary files differnew file mode 100644 index 0000000000..4d00f93593 --- /dev/null +++ b/demos/gui/translation/flag_spain.png diff --git a/demos/gui/translation/flag_uk.png b/demos/gui/translation/flag_uk.png Binary files differnew file mode 100644 index 0000000000..53fbef3d67 --- /dev/null +++ b/demos/gui/translation/flag_uk.png diff --git a/demos/gui/translation/main.scn b/demos/gui/translation/main.scn Binary files differindex 1e1bd0141e..76c9ba7b45 100644 --- a/demos/gui/translation/main.scn +++ b/demos/gui/translation/main.scn |