fix: made buttons work again

This commit is contained in:
Sara Gerretsen 2025-11-04 21:28:06 +01:00
parent e8cce4933d
commit 67168e1061

View file

@ -64,6 +64,7 @@ func _pressed() -> void:
else:
print(\"Conclusion: \", %WeaponSlot.get_current_clue(), \", \", %MotiveSlot.get_current_clue(), \", \", %MurdererSlot.get_current_clue())
owner.notify_conclusion_sent(%WeaponSlot.get_current_clue(), %MotiveSlot.get_current_clue(), %MurdererSlot.get_current_clue())
func update_can_send():
self.disabled = not (%WeaponSlot.is_filled() and %MotiveSlot.is_filled() and %MurdererSlot.is_filled())
@ -123,7 +124,7 @@ texture = ExtResource("6_xic1t")
[node name="WeaponSlot" type="ConclusionField" parent="Handin"]
unique_name_in_owner = true
position = Vector2(-141.25034, 550.55273)
position = Vector2(-139.3271, 528.6141)
[node name="CollisionShape2D" type="CollisionShape2D" parent="Handin/WeaponSlot"]
position = Vector2(0, 43.237)
@ -203,12 +204,19 @@ clue = 20
position = Vector2(775, 381)
clue = 11
[node name="VictimFile" parent="." instance=ExtResource("2_vo7lu")]
[node name="VictimFile" parent="." node_paths=PackedStringArray("open_position") instance=ExtResource("2_vo7lu")]
open_position = NodePath("../FilePositionTarget")
[node name="WitnessReport" parent="." instance=ExtResource("3_wjago")]
[node name="WitnessReport" parent="." node_paths=PackedStringArray("open_position") instance=ExtResource("3_wjago")]
open_position = NodePath("../FilePositionTarget")
[node name="CaseFile" parent="." instance=ExtResource("4_cnvne")]
[node name="CaseFile" parent="." node_paths=PackedStringArray("open_position") instance=ExtResource("4_cnvne")]
open_position = NodePath("../FilePositionTarget")
[node name="FilePositionTarget" type="Node2D" parent="."]
position = Vector2(678.00006, 63.999996)
rotation = -0.0034519732
[connection signal="selection_changed" from="Handin/WeaponSlot" to="Handin/SubmitButton" method="_on_any_slot_selection_changed"]
[connection signal="selection_changed" from="Handin/MotiveSlot" to="Handin/SubmitButton" method="_on_any_slot_selection_changed"]
[connection signal="selection_changed" from="Handin/MurdererSlot" to="Handin/SubmitButton" method="_on_any_slot_selection_changed"]