added PlayCardButton; influences card selection

This commit is contained in:
2025-07-08 17:07:32 +02:00
parent 167b455160
commit e0693725ea
4 changed files with 44 additions and 6 deletions
+4
View File
@@ -3,6 +3,7 @@ extends Node
@export var web_client: WebClientTCP
@export var start_game_button: Button
@export var play_card_button: Button
var _is_host: bool = false
var _current_player_count: int = 0
@@ -50,3 +51,6 @@ func _on_web_client_tcp_client_joined_lobby(client_name: String, connected_clien
func _on_web_client_tcp_client_left_lobby(client_name: String, connected_client_names: Array[String]) -> void:
_update_player_count(connected_client_names.size())
func _on_player_hand_card_selected(card_id: int) -> void:
play_card_button.disabled = card_id == -1