Locks the minigame UI buttons when winning or losing the minigame.

This commit is contained in:
Dylan Sarrazyn
2024-07-23 17:00:14 +02:00
parent 1dd797ce7e
commit ff8a316574
+7
View File
@@ -188,6 +188,10 @@ func _reset() -> void:
func _win() -> void:
# Lock the UI
minigame_ui.lock()
if UserDataManager.student_progression:
UserDataManager.student_progression.game_completed(lesson_nb, minigame_number)
@@ -211,6 +215,9 @@ func _win() -> void:
func _lose() -> void:
# Lock the UI
minigame_ui.lock()
# Remediation
if scores:
UserDataManager.update_remediation_scores(scores)