added delay before host submits play winner to allow displaying last card played

This commit is contained in:
2025-07-18 15:11:25 +02:00
parent 06652ff910
commit 6870d1c89d
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -95,6 +95,8 @@ func _on_web_client_tcp_received_play_winner_request() -> void:
if not $"../HBoxContainer/GameUI"._is_host:
return
await get_tree().create_timer(1.5).timeout
var card_ids: Array[int] = []
card_ids.assign(_plays.map(func(p: Play): return p.card_id))
var winning_card_id: int = CardManager.get_winning_card(card_ids, _trump_id)
+1 -1
View File
@@ -51,7 +51,7 @@ custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="../00 Exports/magician/20250705/index.html"
export_path="../Exports/magician/20250718/index.html"
patches=PackedStringArray()
encryption_include_filters=""
encryption_exclude_filters=""
+1 -1
View File
@@ -77,7 +77,7 @@ layout_mode = 2
[node name="URLInput" type="LineEdit" parent="HBoxContainer/ClientInterface/MarginContainer/VBoxContainer/ServerInputs"]
layout_mode = 2
text = "127.0.0.1:9974"
text = "wss://denizk0461.dev/magsrv/"
placeholder_text = "URL"
[node name="ConnectButton" type="Button" parent="HBoxContainer/ClientInterface/MarginContainer/VBoxContainer/ServerInputs"]