Fixed look and learn with additional GPs
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user