added commands for requesting and receiving bets and starting rounds
This commit is contained in:
@@ -4,6 +4,8 @@ extends Node
|
||||
@export var web_client: WebClientTCP
|
||||
@export var start_game_button: Button
|
||||
@export var play_card_button: Button
|
||||
@export var bet_container: Control
|
||||
@export var bet_input: LineEdit
|
||||
|
||||
var _is_host: bool = false
|
||||
var _current_player_count: int = 0
|
||||
@@ -54,3 +56,6 @@ func _on_web_client_tcp_client_left_lobby(client_name: String, connected_client_
|
||||
|
||||
func _on_player_hand_card_selected(card_id: int) -> void:
|
||||
play_card_button.disabled = card_id == -1
|
||||
|
||||
func _on_submit_bet_button_pressed() -> void:
|
||||
web_client.submit_bet(int(bet_input.text.strip_edges()), _current_round)
|
||||
|
||||
Reference in New Issue
Block a user