2015-05-12 03:34:29 +02:00
|
|
|
|
|
|
|
extends Panel
|
|
|
|
|
|
|
|
|
|
|
|
func _goto_scene():
|
|
|
|
var s = load("res://controls.scn")
|
|
|
|
var si = s.instance()
|
|
|
|
get_parent().add_child(si)
|
|
|
|
queue_free()
|
|
|
|
|
|
|
|
|
|
|
|
func _on_system_pressed():
|
2015-11-21 13:31:25 +01:00
|
|
|
# Will autodetect based on system, then fall back
|
2015-12-09 08:38:23 +01:00
|
|
|
# to english if not found
|
2015-05-12 03:34:29 +02:00
|
|
|
_goto_scene()
|
|
|
|
|
2015-12-09 08:38:23 +01:00
|
|
|
# NOTE: Changing locale will not change the text in the controls,
|
|
|
|
# The scene must be reloaded for changes to take effect.
|
2015-05-12 03:34:29 +02:00
|
|
|
|
|
|
|
func _on_english_pressed():
|
|
|
|
TranslationServer.set_locale("en")
|
|
|
|
_goto_scene()
|
|
|
|
|
|
|
|
|
|
|
|
func _on_spanish_pressed():
|
|
|
|
TranslationServer.set_locale("es")
|
|
|
|
_goto_scene()
|
|
|
|
|
|
|
|
|
|
|
|
func _on_japanese_pressed():
|
|
|
|
TranslationServer.set_locale("ja")
|
|
|
|
_goto_scene()
|