Fixed look and learn with additional GPs

This commit is contained in:
Laurent Tourte
2024-05-14 17:36:48 +02:00
parent ab2459206a
commit 9da35a4ffd
3 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -90,7 +90,7 @@ func play_images_and_sounds() -> void:
func load_tracing() -> void:
tracing_manager.setup(gp_list[current_tracing]["Grapheme"])
await tracing_manager.setup(gp_list[current_tracing]["Grapheme"])
current_tracing += 1
@@ -121,7 +121,7 @@ func _on_audio_stream_player_finished() -> void:
func _on_tracing_manager_finished() -> void:
if current_tracing < gp_list.size():
tracing_manager.setup(gp_list[current_tracing]["Grapheme"])
await tracing_manager.setup(gp_list[current_tracing]["Grapheme"])
tracing_manager.start()
current_tracing += 1
else:
@@ -783,6 +783,8 @@ anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_12st1")
lesson_nb = 11
current_button_pressed = 2
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
+2 -1
View File
@@ -34,12 +34,13 @@ func reset() -> void:
lower_labels.visible = true
upper_labels.visible = false
await get_tree().process_frame
# --- Setup ---
func setup(grapheme: String) -> void:
reset()
await reset()
if not _is_grapheme_valid(grapheme):
finished.emit()