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)
|
||||
|
||||
+4
-5
@@ -19,13 +19,13 @@
|
||||
[ext_resource type="Theme" uid="uid://cxab3xxy00" path="res://assets/themes/GUI_Tekton.tres" id="14_2630d"]
|
||||
[ext_resource type="FontFile" uid="uid://c2tryhyhlyb1u" path="res://assets/fonts/Supercell-Magic Regular.ttf" id="14_vwf6o"]
|
||||
[ext_resource type="Texture2D" uid="uid://kflvrkha1jwy" path="res://assets/graphics/gui/mainmenu/chat_enter.png" id="15_iwi7x"]
|
||||
[ext_resource type="Texture2D" uid="uid://q8vw41qd00lx" path="res://assets/graphics/gui/mainmenu/button_room.png" id="17_wjff0"]
|
||||
[ext_resource type="Texture2D" uid="uid://dq8ll26kexu3b" path="res://assets/graphics/gui/mainmenu/button_room.png" id="17_wjff0"]
|
||||
[ext_resource type="Texture2D" uid="uid://bcgu0jku4ntcw" path="res://assets/graphics/gui/mainmenu/button_room_interact.png" id="18_0jb4q"]
|
||||
[ext_resource type="Texture2D" uid="uid://dllwxub5n4361" path="res://assets/graphics/gui/mainmenu/button_play.png" id="18_h1rib"]
|
||||
[ext_resource type="Texture2D" uid="uid://l03huy5c0vvy" path="res://assets/graphics/gui/lobby/profile.png" id="18_u7tfn"]
|
||||
[ext_resource type="Texture2D" uid="uid://jted80o4uarv" path="res://assets/graphics/gui/lobby/leaderboards.png" id="19_2630d"]
|
||||
[ext_resource type="Texture2D" uid="uid://bvugtpcgc2qkx" path="res://assets/graphics/gui/lobby/shop.png" id="20_835bk"]
|
||||
[ext_resource type="Texture2D" uid="uid://c6ahbdxx23e3b" path="res://assets/graphics/gui/mainmenu/button_play_interact.png" id="20_vwf6o"]
|
||||
[ext_resource type="Texture2D" uid="uid://cdupokfxuufpl" path="res://assets/graphics/gui/mainmenu/button_play_interact.png" id="20_vwf6o"]
|
||||
[ext_resource type="Texture2D" uid="uid://6agwwbc1l4g3" path="res://assets/graphics/gui/play/selection_play0.png" id="21_h1rib"]
|
||||
[ext_resource type="Texture2D" uid="uid://bmmajc7h7o4dg" path="res://assets/graphics/gui/lobby/dailylogin.png" id="21_ucbax"]
|
||||
[ext_resource type="Texture2D" uid="uid://dv782w5t0xlcc" path="res://assets/graphics/gui/lobby/friends.png" id="22_1x1aw"]
|
||||
@@ -724,10 +724,11 @@ grow_vertical = 2
|
||||
texture = ExtResource("23_835bk")
|
||||
expand_mode = 3
|
||||
|
||||
[node name="MailBadge" type="Label" parent="MainMenuPanel/MainMargin/MainHBox/RightCol/TopRightPanel/MailboxBtn"]
|
||||
[node name="MailBadge" type="Label" parent="MainMenuPanel/MainMargin/MainHBox/RightCol/TopRightPanel/MailboxBtn" unique_id=156491696]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 1
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.0
|
||||
offset_left = -18.0
|
||||
@@ -735,12 +736,10 @@ offset_top = -2.0
|
||||
offset_right = 2.0
|
||||
offset_bottom = 16.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 1
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
theme_override_font_sizes/font_size = 10
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
text = ""
|
||||
|
||||
[node name="SocialBtn" type="Button" parent="MainMenuPanel/MainMargin/MainHBox/RightCol/TopRightPanel" unique_id=82719328]
|
||||
unique_name_in_owner = true
|
||||
|
||||
+8
-8
@@ -1856,14 +1856,14 @@ func randomize_item_at_position(grid_position: Vector2i):
|
||||
if is_ground:
|
||||
var new_item = 7
|
||||
|
||||
var get_mode_specific_tile = func():
|
||||
if LobbyManager.game_mode != "Stop n Go" and LobbyManager.game_mode != "Tekton Doors":
|
||||
# 60% Chance for Common (7-10), 40% for PowerUp
|
||||
if randf() <= 0.6:
|
||||
return [7, 8, 9, 10].pick_random()
|
||||
else:
|
||||
return ScarcityModel.SPECIAL_TILES.pick_random()
|
||||
return ScarcityController.get_random_tile_id()
|
||||
var get_mode_specific_tile = func():
|
||||
if LobbyManager.game_mode != "Stop n Go" and LobbyManager.game_mode != "Tekton Doors" and LobbyManager.game_mode != "Candy Cannon Survival":
|
||||
# 60% Chance for Common (7-10), 40% for PowerUp
|
||||
if randf() <= 0.6:
|
||||
return [7, 8, 9, 10].pick_random()
|
||||
else:
|
||||
return ScarcityModel.SPECIAL_TILES.pick_random()
|
||||
return ScarcityController.get_random_tile_id()
|
||||
|
||||
new_item = get_mode_specific_tile.call()
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
*** Begin Patch
|
||||
*** Update File: scenes/player.gd
|
||||
@@ -37,6 +37,11 @@
|
||||
if is_stop_frozen == value: return
|
||||
is_stop_frozen = value
|
||||
_refresh_player_visuals()
|
||||
+
|
||||
+@rpc("any_peer", "call_local", "reliable")
|
||||
+func sync_modulate(color: Color) -> void:
|
||||
+ _apply_tint_recursive(self, color, 1.0)
|
||||
+
|
||||
*** End Patch
|
||||
@@ -146,9 +146,9 @@ func _on_chat_send_pressed() -> void:
|
||||
_refresh_chat_display()
|
||||
if _chat_channel and NakamaManager.session and NakamaManager.client:
|
||||
var payload = JSON.stringify({"channel_id": _chat_channel.id})
|
||||
var rpc_result = await NakamaManager.client.rpc_async(NakamaManager.session, "admin_clear_global_chat", payload)
|
||||
if rpc_result.is_exception():
|
||||
push_warning("[Chat] admin_clear_global_chat RPC failed: " + rpc_result.get_exception().message)
|
||||
var rpc_result = await BackendService.admin_clear_global_chat(payload)
|
||||
if rpc_result.get("success", false) == false:
|
||||
push_warning("[Chat] admin_clear_global_chat RPC failed: " + str(rpc_result.get("message", "")))
|
||||
else:
|
||||
_inject_local_message("[SYSTEM] : Global chat cleared by admin.")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user