Added translations management

Prepares work for line voiceovers management.
This commit is contained in:
Julian Murgia
2021-04-07 08:39:59 +02:00
parent 40dd4a6718
commit 909031f536
22 changed files with 324 additions and 164 deletions

View File

@@ -5,6 +5,18 @@ func _ready():
escoria.esc_level_runner.set_sound_state(["bg_music",
"res://game/sfx/Game-Menu_Looping.mp3", true])
func _on_continue_pressed():
pass
func switch_language(lang : String):
TranslationServer.set_locale(lang)
func _on_new_game_pressed():
escoria.new_game()
@@ -12,9 +24,19 @@ func _on_load_game_pressed():
# Show Loading screen
pass
func _on_options_pressed():
$Panel/main.hide()
$Panel/options.show()
func _on_quit_pressed():
get_tree().quit()
###########################################################################
###########################################################################
# OPTIONS
func _on_continue_pressed():
pass # Replace with function body.
func _on_back_pressed():
$Panel/options.hide()
$Panel/main.show()