added PlayCardButton; influences card selection
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user