fixed some warnings and a bug

This commit is contained in:
Laurent Tourte
2023-03-22 15:15:23 +01:00
parent 1c2469f3c9
commit c14dc829ab
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -11,4 +11,4 @@ func _on_crabs_button_pressed() -> void:
func _on_parakeets_button_pressed() -> void:
get_tree().change_scene_to_file("res://sources/minigames/parakeets/parakeets_minigame.gd")
get_tree().change_scene_to_file("res://sources/minigames/parakeets/parakeets_minigame.tscn")
+2 -1
View File
@@ -85,7 +85,6 @@ func _setup_minigame() -> void:
current_lives = max_number_of_lives
# Find the stimuli and distractions of the minigame.
func _find_stimuli_and_distractions() -> void:
return
@@ -178,6 +177,7 @@ func _on_minigame_ui_garden_button_pressed() -> void:
func _on_minigame_ui_stimulus_button_pressed() -> void:
get_tree().paused = true
minigame_ui.lock()
@warning_ignore("redundant_await")
await _play_stimulus()
minigame_ui.unlock()
get_tree().paused = false
@@ -227,6 +227,7 @@ func set_current_progression(p_current_progression: int) -> void:
if p_current_progression == max_progression and previous_progression != max_progression:
await _win()
else:
@warning_ignore("redundant_await")
await _on_current_progression_changed()
+1 -1
View File
@@ -2,7 +2,7 @@
[ext_resource type="Script" path="res://sources/minigames/base/base_minigame.gd" id="1_jdfsm"]
[ext_resource type="PackedScene" uid="uid://weree6bnlt6f" path="res://sources/minigames/base/minigame_ui.tscn" id="2_a3tib"]
[ext_resource type="PackedScene" uid="uid://b3ckdfnbc7077" path="res://sources/minigames/base/opening_curtain.tscn" id="3_p5ryr"]
[ext_resource type="PackedScene" path="res://sources/minigames/base/opening_curtain.tscn" id="3_p5ryr"]
[node name="BaseMinigame" type="Control"]
process_mode = 3
@@ -70,7 +70,6 @@ func _setup_minigame() -> void:
monkeys_node.set_drag_forwarding(Callable(), _monkeys_can_drop_data, _monkeys_drop_data)
func _on_current_progression_changed() -> void:
word_label.text = "_".repeat(stimuli[current_progression].Word.length())
await _set_current_letter(0)