added bet mechanism (currently without checks for invalid bets)
This commit is contained in:
@@ -58,4 +58,9 @@ func _on_player_hand_card_selected(card_id: int) -> void:
|
||||
play_card_button.disabled = card_id == -1
|
||||
|
||||
func _on_submit_bet_button_pressed() -> void:
|
||||
bet_container.hide()
|
||||
web_client.submit_bet(int(bet_input.text.strip_edges()), _current_round)
|
||||
|
||||
func _on_web_client_tcp_received_bet_request(disallowed_bet: int) -> void:
|
||||
bet_input.text = ""
|
||||
bet_container.show()
|
||||
|
||||
Reference in New Issue
Block a user