feat: the rebuild gamemode of "Gauntlet"
This commit is contained in:
@@ -179,6 +179,7 @@ func _ready():
|
||||
|
||||
# Setup Game Mode specific UI dynamically
|
||||
_create_custom_settings_ui()
|
||||
_setup_game_modes()
|
||||
|
||||
# Initial UI update
|
||||
_sync_room_profile_card()
|
||||
@@ -504,6 +505,12 @@ func _sync_room_profile_card() -> void:
|
||||
if room_player_rank:
|
||||
room_player_rank.text = "Rank: %s" % (_local_player_rank if _local_player_rank > 0 else "-")
|
||||
|
||||
# Sync currency labels
|
||||
if gold_label:
|
||||
gold_label.text = str(UserProfileManager.wallet.get("gold", 0))
|
||||
if star_label:
|
||||
star_label.text = str(UserProfileManager.wallet.get("star", 0))
|
||||
|
||||
var avatar_path = UserProfileManager.get_avatar_url()
|
||||
if not avatar_path.is_empty() and ResourceLoader.exists(avatar_path):
|
||||
var tex = load(avatar_path)
|
||||
|
||||
Reference in New Issue
Block a user