feat: update vfx

This commit is contained in:
2026-06-18 14:04:06 +08:00
parent 5354d8b30f
commit 78f071b728
18 changed files with 704 additions and 62 deletions
+11
View File
@@ -140,6 +140,10 @@ var _bot_names: Dictionary = {}
# Room list filter ("" = all, "Freemode", "Stop n Go", etc.)
var _room_mode_filter: String = ""
# Re-entry guard for the async host flow (prevents double-click from starting
# two overlapping create_match() calls).
var _is_hosting: bool = false
# =============================================================================
# Chat System
# =============================================================================
@@ -248,6 +252,13 @@ func _ready():
# Connect UserProfileManager signals
UserProfileManager.profile_loaded.connect(func(_p): _sync_room_profile_card())
UserProfileManager.profile_updated.connect(func(): _sync_room_profile_card())
# Clear the host re-entry guard whenever the host flow concludes — success,
# failure, or leaving the room.
LobbyManager.room_joined.connect(func(_r): _is_hosting = false)
LobbyManager.room_left.connect(func(): _is_hosting = false)
NakamaManager.match_join_error.connect(func(_e): _is_hosting = false)
NakamaManager.connection_failed.connect(func(_e): _is_hosting = false)
# Connect Mailbox UI
if MailManager: