Fixes a bug that lets you move words when the minigame is done.

This commit is contained in:
Dylan Sarrazyn
2024-06-19 16:28:03 +02:00
parent 8a230495e9
commit b6c92cd4bc
2 changed files with 16 additions and 14 deletions
File diff suppressed because one or more lines are too long
+4 -2
View File
@@ -30,6 +30,8 @@ func _find_stimuli_and_distractions() -> void:
var current_words: = Database.get_words_in_sentence(stimulus.ID)
if current_words.size() >= 2:
stimuli.append(stimulus)
# TODO Revoir la récupération des phrases
print(stimuli)
func _start() -> void:
@@ -178,8 +180,8 @@ func _on_word_answer(stimulus: String, expected_stimulus: String, word: TextureB
words.get_child(i).current_anchor = ants.get_child(i)
ants.get_child(i).set_monitorable(false)
for word_i in words.get_children():
word_i.disabled = false
for word_i in words.get_children():
word_i.disabled = false
func _on_word_no_answer(word: TextureButton) -> void:
answersed[word.get_index()] = false