added bet mechanism (currently without checks for invalid bets)

This commit is contained in:
2025-07-15 11:51:02 +02:00
parent 3a22a4e95d
commit 2f3f4dbc14
4 changed files with 42 additions and 13 deletions
+5
View File
@@ -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()