added translations
This commit is contained in:
@@ -52,17 +52,16 @@ func _process(delta: float) -> void:
|
||||
|
||||
if not_congratulated_1 and aliens.get_child_count() <= aliens_start_count-5:
|
||||
not_congratulated_1 = false
|
||||
show_congratulations("Glückwunsch!
|
||||
Die erste Aufgabe ist geschafft.", "Definitionen von KI")
|
||||
show_congratulations("TASK1_CONGRATS", "TOPIC_AI_DEFS")
|
||||
|
||||
|
||||
func show_congratulations(text, text_2) -> void:
|
||||
print(text)
|
||||
$Player/helper/helper.celebrate()
|
||||
$Hilfestellung/CanvasLayer.visible = false
|
||||
$Congratulations/CanvasLayer/Panel/Label.text = text
|
||||
$Congratulations/CanvasLayer/Panel/Label.text = tr(text)
|
||||
$Congratulations/CanvasLayer.visible = true
|
||||
$Congratulations/CanvasLayer/Panel/Label_repeat.text = "(Um die "+ text_2 + " noch einmal nachzulesen, sprechen Sie mit ihrem Helfer)"
|
||||
$Congratulations/CanvasLayer/Panel/Label_repeat.text = tr("CONGRATS_REPEAT") % tr(text_2)
|
||||
await get_tree().create_timer(5.0).timeout
|
||||
$Player/helper/helper.stop_anim()
|
||||
$Congratulations/CanvasLayer.visible = false
|
||||
@@ -110,8 +109,8 @@ func _on_pressure_block_a3_activated() -> void:
|
||||
func _on_pressure_block_a_1_activated() -> void:
|
||||
current_task = 1
|
||||
DialogueState.currentTask = 1
|
||||
current_text = "[Enter] oder [t] drücken, um mit den Aliens zu reden"
|
||||
$Hinweistexte/CanvasLayer/Panel/Label.text = "Wenn Sie weiterlaufen werden Ihnen einige Aliens begegnen. Sprechen Sie mit ihnen, um verschiedene Definitionen von Künstlicher Intelligenz (KI) kennenzulernen."
|
||||
current_text = tr("HINT_TALK_ALIENS")
|
||||
$Hinweistexte/CanvasLayer/Panel/Label.text = tr("HINT_ALIENS")
|
||||
$Hinweistexte/CanvasLayer.visible = true
|
||||
if $Tutorial:
|
||||
$Tutorial.queue_free()
|
||||
@@ -123,11 +122,8 @@ func _on_pressure_block_a_1_activated() -> void:
|
||||
|
||||
func _on_pressure_block_a_2_activated() -> void:
|
||||
current_task = 2
|
||||
current_text = "Zielen mit der Maus, Klicken zum Werfen, [r] zum Wechsel zwischen Wurf- und Kameramodus"
|
||||
$Hinweistexte/CanvasLayer/Panel/Label.text = "Laufen Sie weiter zur Wurfzone.
|
||||
Dort angekommen, können Sie die Ballons abwerfen, um zu entdecken, in was für Systemen KI bereits eingesetzt wird bzw. werden kann.
|
||||
Sammeln Sie danach die Batterien, Sie werden sie im weiteren Verlauf benötigen.
|
||||
Zur Erinnerung: Zielen mit der Maus (Fadenkreuz) und Werfen durch Klicken. Wenn Sie kein Fadenkreuz sehen, evtl. [r] drücken, um den Modus zu wechseln."
|
||||
current_text = tr("HINT_THROW_CONTROLS")
|
||||
$Hinweistexte/CanvasLayer/Panel/Label.text = tr("HINT_THROW_ZONE")
|
||||
$Hinweistexte/CanvasLayer.visible = true
|
||||
|
||||
|
||||
@@ -141,7 +137,7 @@ func _on_pressure_block_a_3_1_activated() -> void:
|
||||
reset_music_volume()
|
||||
current_task = 3
|
||||
DialogueState.currentTask = 3
|
||||
current_text = "Auswahl der Batterien im Inventar [c], Einfügen mit [f] - ([e] zum wieder rausholen, [q] ablegen)"
|
||||
current_text = tr("HINT_BATTERY_CONTROLS")
|
||||
$Objects/pressure_blocks/PressureBlock_A3_1.current_weight = 10.0
|
||||
$AnimationPlayer.play("start_ordering_game")
|
||||
_on_pressure_block_deactivated()
|
||||
@@ -152,11 +148,10 @@ func _on_balloon_tree_exited() -> void:
|
||||
if popped_balloons == Global.TOTAL_BALLOONS_A2 and current_task == 2:
|
||||
not_congratulated_2 = false
|
||||
DialogueState.batteriesFlag = true
|
||||
show_congratulations("Glückwunsch!
|
||||
Die 2. Aufgabe ist geschafft.", "KI-Systeme")
|
||||
show_congratulations("TASK2_CONGRATS", "TOPIC_AI_SYSTEMS")
|
||||
$Objects/arrows/after_throw.visible = true
|
||||
$Objects/Fences/no_arrows/barrier_throw.position.x = 4.0
|
||||
$Hilfestellung/CanvasLayer/Panel/Label.text = "Sammeln Sie die Batterien auf (durch Vorbeilaufen) - einen Counter dazu sehen Sie oben links"
|
||||
$Hilfestellung/CanvasLayer/Panel/Label.text = tr("HINT_COLLECT_BATTERIES")
|
||||
$Hilfestellung/CanvasLayer.visible = true
|
||||
|
||||
|
||||
@@ -166,7 +161,7 @@ func _on_pressure_block_a_4_activated() -> void:
|
||||
DialogueState.currentTask = 4
|
||||
DialogueState.personalDataFlag = true
|
||||
$Objects/spaceship/keypad.visible = true
|
||||
current_text = "[k] drücken zum Starten des nächsten Minispiels"
|
||||
current_text = tr("HINT_START_KEYPAD")
|
||||
$Hilfestellung/CanvasLayer.visible = true
|
||||
$Objects/pressure_blocks/PressureBlock_A4.current_weight = 10.0
|
||||
DialogueManager.show_chosen_dialogue_balloon(load($Objects/pressure_blocks/PressureBlock_A4.text_on_activation), "/game_balloons/game_balloon_v_2.tscn", "start")
|
||||
@@ -176,7 +171,7 @@ func _on_pressure_block_a_4_activated() -> void:
|
||||
func _on_keypad_game_finished() -> void:
|
||||
$Keypad.visible = false
|
||||
$Objects/spaceship/keypad.visible = false
|
||||
$Hilfestellung/CanvasLayer/Panel/Label.text = "Gehen Sie durch die Tür ins Raumschiff"
|
||||
$Hilfestellung/CanvasLayer/Panel/Label.text = tr("HINT_ENTER_SHIP")
|
||||
$Hilfestellung/CanvasLayer.visible = true
|
||||
show_door.emit()
|
||||
|
||||
@@ -193,8 +188,7 @@ func _on_animation_player_animation_finished(anim_name: StringName) -> void:
|
||||
$AnimationPlayer.play('rotate_label')
|
||||
if anim_name == "ordering_finished":
|
||||
generators.queue_free()
|
||||
show_congratulations("Glückwunsch!
|
||||
Die 3. Aufgabe ist geschafft.", "Risikostufen von KI")
|
||||
show_congratulations("TASK3_CONGRATS", "TOPIC_AI_RISKS")
|
||||
$Objects/pressure_blocks/PressureBlock_A4.position = Vector3(-87.26, 3.787, 209.9)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user