Added basic dialogic translation

This commit is contained in:
cblech
2024-10-28 12:27:17 +01:00
parent d231bb0773
commit 5ea5e5547c
9 changed files with 95 additions and 9 deletions
+13 -5
View File
@@ -9,14 +9,22 @@ func _ready() -> void:
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if(Input.is_action_pressed("move_right")):
if Input.is_action_pressed("move_right"):
position.x += speed * delta
if(Input.is_action_pressed("move_left")):
if Input.is_action_pressed("move_left"):
position.x -= speed * delta
if(Input.is_action_pressed("move_up")):
if Input.is_action_pressed("move_up"):
position.y -= speed * delta
if(Input.is_action_pressed("move_down")):
if Input.is_action_pressed("move_down"):
position.y += speed * delta
if(Input.is_action_just_pressed("ui_up")):
if Input.is_action_just_pressed("ui_up"):
Dialogic.start("test_time_line")
if Input.is_action_just_pressed("ui_down"):
if TranslationServer.get_locale() == "en":
TranslationServer.set_locale("de")
else:
TranslationServer.set_locale("en")
pass