feat: 2.3.2

This commit is contained in:
2026-05-19 17:30:29 +08:00
parent 7ca11c6534
commit 8430d1054e
39 changed files with 6581 additions and 738 deletions
+205 -60
View File
@@ -1,33 +1,82 @@
[gd_scene format=3 uid="uid://c018oue81jm44"]
[ext_resource type="Script" uid="uid://w0ddjofws4ib" path="res://scripts/ui/shop_panel.gd" id="1"]
[ext_resource type="Theme" uid="uid://da337sh5qxi0s" path="res://assets/themes/ui_theme.tres" id="1_jr3vq"]
[ext_resource type="Texture2D" uid="uid://2d1ks5pmblc7" path="res://assets/graphics/main_menu/bg_back.png" id="3_qjhny"]
[ext_resource type="Theme" uid="uid://cxab3xxy00" path="res://assets/themes/GUI_Tekton.tres" id="1_jr3vq"]
[ext_resource type="Texture2D" uid="uid://jqvv6s55mlsk" path="res://assets/graphics/gui/BG.png" id="3_qjhny"]
[ext_resource type="FontFile" uid="uid://xnjx058n4tsw" path="res://assets/fonts/Nougat-ExtraBlack.ttf" id="3_udh10"]
[ext_resource type="PackedScene" uid="uid://ejeamn0pyey4" path="res://assets/characters/Bob.glb" id="4_bob"]
[ext_resource type="PackedScene" uid="uid://d4cul3w3wem5w" path="res://assets/characters/Gatot.glb" id="4_gatot"]
[ext_resource type="PackedScene" uid="uid://1vk0mjnwkngi" path="res://assets/characters/Masbro.glb" id="4_masbro"]
[ext_resource type="PackedScene" uid="uid://bmln7v6v5kvxg" path="res://assets/characters/Oldpop.glb" id="4_oldpop"]
[ext_resource type="AnimationLibrary" uid="uid://c3pyopnwibckj" path="res://assets/characters/animations/animation-pack.res" id="5_animlib"]
[ext_resource type="Texture2D" uid="uid://b5pp08fke7ptd" path="res://assets/graphics/gui/lobby/gold.png" id="12_gufxi"]
[ext_resource type="Texture2D" uid="uid://d0ouvm3x8h42c" path="res://assets/graphics/gui/lobby/star.png" id="13_arjad"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_bg"]
bg_color = Color(0.08, 0.09, 0.12, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_gd4oi"]
bg_color = Color(0, 0, 0, 0.48235294)
border_color = Color(0.92941177, 0.91764706, 0.8862745, 1)
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_tab_normal"]
content_margin_left = 16.0
content_margin_top = 10.0
content_margin_right = 16.0
content_margin_bottom = 10.0
bg_color = Color(0.15, 0.18, 0.22, 1)
corner_radius_top_left = 6
corner_radius_top_right = 6
corner_radius_bottom_right = 6
corner_radius_bottom_left = 6
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_tab_hover"]
content_margin_left = 16.0
content_margin_top = 10.0
content_margin_right = 16.0
content_margin_bottom = 10.0
bg_color = Color(0.22, 0.26, 0.3, 1)
corner_radius_top_left = 6
corner_radius_top_right = 6
corner_radius_bottom_right = 6
corner_radius_bottom_left = 6
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_banner"]
content_margin_left = 12.0
content_margin_top = 12.0
content_margin_right = 12.0
content_margin_bottom = 12.0
bg_color = Color(0.18, 0.22, 0.26, 1)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_btn_back"]
content_margin_left = 18.0
content_margin_top = 12.0
content_margin_right = 18.0
content_margin_bottom = 12.0
bg_color = Color(0.15, 0.18, 0.22, 1)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_card"]
content_margin_left = 12.0
content_margin_top = 12.0
content_margin_right = 12.0
content_margin_bottom = 12.0
bg_color = Color(0.91, 0.86, 0.61, 1)
border_width_left = 4
border_width_top = 4
border_width_right = 4
border_width_bottom = 4
border_color = Color(0.72, 0.52, 0.1, 1)
corner_radius_top_left = 10
corner_radius_top_right = 10
corner_radius_bottom_right = 10
corner_radius_bottom_left = 10
bg_color = Color(0.25, 0.3, 0.35, 1)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[node name="ShopPanel" type="Control" unique_id=1967851868]
layout_mode = 3
@@ -49,7 +98,6 @@ grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_bg")
[node name="Background2" type="TextureRect" parent="." unique_id=1682487151]
modulate = Color(1, 1, 1, 0.28235295)
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
@@ -57,7 +105,7 @@ anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("3_qjhny")
expand_mode = 2
expand_mode = 1
[node name="MainMargin" type="MarginContainer" parent="." unique_id=1416392345]
layout_mode = 1
@@ -78,37 +126,81 @@ theme_override_constants/separation = 20
[node name="TopBar" type="HBoxContainer" parent="MainMargin/MainVBox" unique_id=1421665563]
layout_mode = 2
[node name="Wallet" type="HBoxContainer" parent="MainMargin/MainVBox/TopBar" unique_id=382704727]
[node name="Wallet" type="HBoxContainer" parent="MainMargin/MainVBox/TopBar" unique_id=333280079]
layout_mode = 2
theme_override_constants/separation = 15
theme_override_constants/separation = 6
[node name="StarPanel" type="PanelContainer" parent="MainMargin/MainVBox/TopBar/Wallet" unique_id=1049443997]
custom_minimum_size = Vector2(150, 50)
[node name="Panel" type="Panel" parent="MainMargin/MainVBox/TopBar/Wallet" unique_id=885749275]
custom_minimum_size = Vector2(160, 46)
layout_mode = 2
theme = ExtResource("1_jr3vq")
size_flags_horizontal = 3
theme_override_styles/panel = SubResource("StyleBoxFlat_gd4oi")
[node name="StarLabel" type="Label" parent="MainMargin/MainVBox/TopBar/Wallet/StarPanel" unique_id=593135182]
[node name="MarginContainer" type="MarginContainer" parent="MainMargin/MainVBox/TopBar/Wallet/Panel" unique_id=471921005]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 3
theme_override_constants/margin_top = 3
theme_override_constants/margin_right = 6
theme_override_constants/margin_bottom = 3
[node name="HBoxContainer" type="HBoxContainer" parent="MainMargin/MainVBox/TopBar/Wallet/Panel/MarginContainer" unique_id=1931322340]
layout_mode = 2
[node name="TextureRect" type="TextureRect" parent="MainMargin/MainVBox/TopBar/Wallet/Panel/MarginContainer/HBoxContainer" unique_id=918981910]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("12_gufxi")
[node name="GoldLabel" type="Label" parent="MainMargin/MainVBox/TopBar/Wallet/Panel/MarginContainer/HBoxContainer" unique_id=1446969934]
unique_name_in_owner = true
layout_mode = 2
theme_override_colors/font_color = Color(0, 0, 0, 1)
size_flags_horizontal = 3
theme_override_fonts/font = ExtResource("3_udh10")
theme_override_font_sizes/font_size = 18
text = "0"
horizontal_alignment = 1
text = "0"
horizontal_alignment = 2
[node name="GoldPanel" type="PanelContainer" parent="MainMargin/MainVBox/TopBar/Wallet" unique_id=132289]
custom_minimum_size = Vector2(150, 50)
[node name="Panel2" type="Panel" parent="MainMargin/MainVBox/TopBar/Wallet" unique_id=63717008]
custom_minimum_size = Vector2(160, 46)
layout_mode = 2
theme = ExtResource("1_jr3vq")
size_flags_horizontal = 3
theme_override_styles/panel = SubResource("StyleBoxFlat_gd4oi")
[node name="GoldLabel" type="Label" parent="MainMargin/MainVBox/TopBar/Wallet/GoldPanel" unique_id=1638818024]
[node name="MarginContainer" type="MarginContainer" parent="MainMargin/MainVBox/TopBar/Wallet/Panel2" unique_id=26646029]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 3
theme_override_constants/margin_top = 3
theme_override_constants/margin_right = 6
theme_override_constants/margin_bottom = 3
[node name="HBoxContainer" type="HBoxContainer" parent="MainMargin/MainVBox/TopBar/Wallet/Panel2/MarginContainer" unique_id=1913617815]
layout_mode = 2
[node name="TextureRect" type="TextureRect" parent="MainMargin/MainVBox/TopBar/Wallet/Panel2/MarginContainer/HBoxContainer" unique_id=1840630206]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("13_arjad")
[node name="StarLabel" type="Label" parent="MainMargin/MainVBox/TopBar/Wallet/Panel2/MarginContainer/HBoxContainer" unique_id=1963734128]
unique_name_in_owner = true
layout_mode = 2
theme_override_colors/font_color = Color(0, 0, 0, 1)
size_flags_horizontal = 3
theme_override_fonts/font = ExtResource("3_udh10")
theme_override_font_sizes/font_size = 18
text = "0"
horizontal_alignment = 1
text = "0"
horizontal_alignment = 2
[node name="Spacer" type="Control" parent="MainMargin/MainVBox/TopBar" unique_id=1578035202]
layout_mode = 2
@@ -120,45 +212,69 @@ theme_override_constants/separation = 10
[node name="TabHead" type="Button" parent="MainMargin/MainVBox/TopBar/TabsHBox" unique_id=212253926]
unique_name_in_owner = true
custom_minimum_size = Vector2(60, 50)
custom_minimum_size = Vector2(80, 44)
layout_mode = 2
theme_override_fonts/font = ExtResource("3_udh10")
theme_override_font_sizes/font_size = 14
theme_override_styles/normal = SubResource("StyleBoxFlat_tab_normal")
theme_override_styles/pressed = SubResource("StyleBoxFlat_tab_normal")
theme_override_styles/hover = SubResource("StyleBoxFlat_tab_hover")
text = "HAT"
[node name="TabCostume" type="Button" parent="MainMargin/MainVBox/TopBar/TabsHBox" unique_id=1953478397]
unique_name_in_owner = true
custom_minimum_size = Vector2(60, 50)
custom_minimum_size = Vector2(80, 44)
layout_mode = 2
theme_override_fonts/font = ExtResource("3_udh10")
theme_override_font_sizes/font_size = 14
theme_override_styles/normal = SubResource("StyleBoxFlat_tab_normal")
theme_override_styles/pressed = SubResource("StyleBoxFlat_tab_normal")
theme_override_styles/hover = SubResource("StyleBoxFlat_tab_hover")
text = "CLOTHING"
[node name="TabGlove" type="Button" parent="MainMargin/MainVBox/TopBar/TabsHBox" unique_id=1900195629]
unique_name_in_owner = true
custom_minimum_size = Vector2(60, 50)
custom_minimum_size = Vector2(80, 44)
layout_mode = 2
theme_override_fonts/font = ExtResource("3_udh10")
theme_override_font_sizes/font_size = 14
theme_override_styles/normal = SubResource("StyleBoxFlat_tab_normal")
theme_override_styles/pressed = SubResource("StyleBoxFlat_tab_normal")
theme_override_styles/hover = SubResource("StyleBoxFlat_tab_hover")
text = "GLOVES"
[node name="TabAccessory" type="Button" parent="MainMargin/MainVBox/TopBar/TabsHBox" unique_id=228390814]
unique_name_in_owner = true
visible = false
custom_minimum_size = Vector2(60, 50)
custom_minimum_size = Vector2(80, 44)
layout_mode = 2
theme_override_fonts/font = ExtResource("3_udh10")
theme_override_font_sizes/font_size = 14
theme_override_styles/normal = SubResource("StyleBoxFlat_tab_normal")
theme_override_styles/pressed = SubResource("StyleBoxFlat_tab_normal")
theme_override_styles/hover = SubResource("StyleBoxFlat_tab_hover")
text = "COSTUME"
[node name="TabGold" type="Button" parent="MainMargin/MainVBox/TopBar/TabsHBox" unique_id=1246468211]
unique_name_in_owner = true
custom_minimum_size = Vector2(60, 50)
custom_minimum_size = Vector2(80, 44)
layout_mode = 2
theme_override_fonts/font = ExtResource("3_udh10")
theme_override_font_sizes/font_size = 14
theme_override_styles/normal = SubResource("StyleBoxFlat_tab_normal")
theme_override_styles/pressed = SubResource("StyleBoxFlat_tab_normal")
theme_override_styles/hover = SubResource("StyleBoxFlat_tab_hover")
text = "GET GOLD"
[node name="TabStar" type="Button" parent="MainMargin/MainVBox/TopBar/TabsHBox" unique_id=378819506]
unique_name_in_owner = true
custom_minimum_size = Vector2(60, 50)
custom_minimum_size = Vector2(80, 44)
layout_mode = 2
theme_override_fonts/font = ExtResource("3_udh10")
theme_override_font_sizes/font_size = 14
theme_override_styles/normal = SubResource("StyleBoxFlat_tab_normal")
theme_override_styles/pressed = SubResource("StyleBoxFlat_tab_normal")
theme_override_styles/hover = SubResource("StyleBoxFlat_tab_hover")
text = "GET STAR"
[node name="ContentHBox" type="HBoxContainer" parent="MainMargin/MainVBox" unique_id=908636948]
@@ -172,23 +288,35 @@ layout_mode = 2
theme_override_constants/separation = 20
[node name="Banner1" type="Button" parent="MainMargin/MainVBox/ContentHBox/LeftSidebar" unique_id=785866623]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 100)
layout_mode = 2
theme_override_fonts/font = ExtResource("3_udh10")
theme_override_styles/normal = SubResource("StyleBoxFlat_banner")
theme_override_styles/pressed = SubResource("StyleBoxFlat_banner")
theme_override_styles/hover = SubResource("StyleBoxFlat_banner")
disabled = true
text = "Banner Slot"
[node name="Banner2" type="Button" parent="MainMargin/MainVBox/ContentHBox/LeftSidebar" unique_id=1108522673]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 100)
layout_mode = 2
theme_override_fonts/font = ExtResource("3_udh10")
theme_override_styles/normal = SubResource("StyleBoxFlat_banner")
theme_override_styles/pressed = SubResource("StyleBoxFlat_banner")
theme_override_styles/hover = SubResource("StyleBoxFlat_banner")
disabled = true
text = "Banner Slot"
[node name="Banner3" type="Button" parent="MainMargin/MainVBox/ContentHBox/LeftSidebar" unique_id=1479545458]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 100)
layout_mode = 2
theme_override_fonts/font = ExtResource("3_udh10")
theme_override_styles/normal = SubResource("StyleBoxFlat_banner")
theme_override_styles/pressed = SubResource("StyleBoxFlat_banner")
theme_override_styles/hover = SubResource("StyleBoxFlat_banner")
disabled = true
text = "Banner Slot"
@@ -201,6 +329,10 @@ unique_name_in_owner = true
custom_minimum_size = Vector2(80, 60)
layout_mode = 2
size_flags_horizontal = 0
theme_override_fonts/font = ExtResource("3_udh10")
theme_override_styles/normal = SubResource("StyleBoxFlat_btn_back")
theme_override_styles/pressed = SubResource("StyleBoxFlat_btn_back")
theme_override_styles/hover = SubResource("StyleBoxFlat_tab_hover")
text = "←"
[node name="CenterScroll" type="ScrollContainer" parent="MainMargin/MainVBox/ContentHBox" unique_id=953911053]
@@ -217,10 +349,11 @@ theme_override_constants/v_separation = 20
columns = 2
[node name="Divider" type="ColorRect" parent="MainMargin/MainVBox/ContentHBox" unique_id=221156668]
visible = false
custom_minimum_size = Vector2(8, 0)
layout_direction = 2
layout_mode = 2
color = Color(0.85, 0.72, 0.35, 1)
color = Color(0.25, 0.3, 0.35, 1)
[node name="RightPanel" type="VBoxContainer" parent="MainMargin/MainVBox/ContentHBox" unique_id=472452762]
custom_minimum_size = Vector2(350, 0)
@@ -235,7 +368,7 @@ stretch = true
[node name="SubViewport" type="SubViewport" parent="MainMargin/MainVBox/ContentHBox/RightPanel/SubViewportContainer" unique_id=1223822678]
transparent_bg = true
handle_input_locally = false
size = Vector2i(350, 450)
size = Vector2i(350, 516)
render_target_update_mode = 4
[node name="Camera3D" type="Camera3D" parent="MainMargin/MainVBox/ContentHBox/RightPanel/SubViewportContainer/SubViewport" unique_id=24602145]
@@ -329,23 +462,26 @@ theme_override_constants/separation = 14
[node name="Icon" type="ColorRect" parent="Templates/GoldCard/HBox" unique_id=1987319256]
custom_minimum_size = Vector2(125, 125)
layout_mode = 2
color = Color(0.8, 0.7, 0.4, 1)
color = Color(0.15, 0.18, 0.22, 1)
[node name="VBox" type="VBoxContainer" parent="Templates/GoldCard/HBox" unique_id=1510531971]
layout_mode = 2
size_flags_horizontal = 3
alignment = 1
[node name="AmountLabel" type="Label" parent="Templates/GoldCard/HBox/VBox" unique_id=581128094]
[node name="AmountLabel" type="RichTextLabel" parent="Templates/GoldCard/HBox/VBox" unique_id=581128094]
layout_mode = 2
theme_override_colors/font_color = Color(0.15, 0.1, 0.05, 1)
theme_override_font_sizes/font_size = 18
text = "⭐ 100"
horizontal_alignment = 2
theme_override_colors/default_color = Color(1, 1, 1, 1)
theme_override_fonts/normal_font = ExtResource("3_udh10")
theme_override_font_sizes/normal_font_size = 18
bbcode_enabled = true
text = "[right][img=24x24]res://assets/graphics/gui/lobby/gold.png[/img] 100[/right]"
fit_content = true
scroll_active = false
[node name="BonusLabel" type="Label" parent="Templates/GoldCard/HBox/VBox" unique_id=31159053]
layout_mode = 2
theme_override_colors/font_color = Color(0.9, 0.45, 0.1, 1)
theme_override_colors/font_color = Color(1, 1, 1, 1)
text = "+50"
horizontal_alignment = 2
@@ -381,23 +517,29 @@ layout_mode = 2
size_flags_horizontal = 3
alignment = 1
[node name="AmountLabel" type="Label" parent="Templates/StarCard/HBox/VBox" unique_id=1276779551]
[node name="AmountLabel" type="RichTextLabel" parent="Templates/StarCard/HBox/VBox" unique_id=1276779551]
layout_mode = 2
theme_override_colors/font_color = Color(0.15, 0.1, 0.05, 1)
theme_override_font_sizes/font_size = 18
text = "✦ 100"
horizontal_alignment = 2
theme_override_colors/default_color = Color(1, 1, 1, 1)
theme_override_fonts/normal_font = ExtResource("3_udh10")
theme_override_font_sizes/normal_font_size = 18
bbcode_enabled = true
text = "[right][img=24x24]res://assets/graphics/gui/lobby/star.png[/img] 100[/right]"
fit_content = true
scroll_active = false
[node name="HSeparator" type="Control" parent="Templates/StarCard/HBox/VBox" unique_id=1627096153]
clip_contents = true
layout_mode = 2
size_flags_vertical = 3
[node name="CostLabel" type="Label" parent="Templates/StarCard/HBox/VBox" unique_id=1937011106]
[node name="CostLabel" type="RichTextLabel" parent="Templates/StarCard/HBox/VBox" unique_id=1937011106]
layout_mode = 2
theme_override_colors/font_color = Color(0.55, 0.35, 0.05, 1)
text = "⭐ 500 Gold"
horizontal_alignment = 1
theme_override_colors/default_color = Color(0.8, 0.7, 0.4, 1)
theme_override_fonts/normal_font = ExtResource("3_udh10")
bbcode_enabled = true
text = "[center]Cost: [img=20x20]res://assets/graphics/gui/lobby/gold.png[/img] 500[/center]"
fit_content = true
scroll_active = false
[node name="BuyBtn" type="Button" parent="Templates/StarCard/HBox/VBox" unique_id=1523983544]
layout_mode = 2
@@ -418,7 +560,7 @@ theme_override_constants/separation = 14
[node name="Icon" type="ColorRect" parent="Templates/CosmeticCard/HBox" unique_id=1136185378]
custom_minimum_size = Vector2(125, 125)
layout_mode = 2
color = Color(0.8, 0.7, 0.4, 1)
color = Color(0.15, 0.18, 0.22, 1)
[node name="VBox" type="VBoxContainer" parent="Templates/CosmeticCard/HBox" unique_id=1048501562]
layout_mode = 2
@@ -427,7 +569,7 @@ alignment = 1
[node name="NameLabel" type="Label" parent="Templates/CosmeticCard/HBox/VBox" unique_id=958903842]
layout_mode = 2
theme_override_colors/font_color = Color(0.1, 0.08, 0.04, 1)
theme_override_colors/font_color = Color(1, 1, 1, 1)
text = "Item Name"
[node name="RarityLabel" type="Label" parent="Templates/CosmeticCard/HBox/VBox" unique_id=882234879]
@@ -435,12 +577,15 @@ layout_mode = 2
theme_override_colors/font_color = Color(0.5, 0.5, 0.5, 1)
text = "Common"
[node name="PriceLabel" type="Label" parent="Templates/CosmeticCard/HBox/VBox" unique_id=489381936]
[node name="PriceLabel" type="RichTextLabel" parent="Templates/CosmeticCard/HBox/VBox" unique_id=489381936]
layout_mode = 2
size_flags_vertical = 6
theme_override_colors/font_color = Color(0.15, 0.1, 0.05, 1)
text = "⭐ 0 ✦ 0"
horizontal_alignment = 1
theme_override_colors/default_color = Color(1, 1, 1, 1)
theme_override_fonts/normal_font = ExtResource("3_udh10")
bbcode_enabled = true
text = "[center][img=20x20]res://assets/graphics/gui/lobby/gold.png[/img] 0 [img=20x20]res://assets/graphics/gui/lobby/star.png[/img] 0[/center]"
fit_content = true
scroll_active = false
[node name="BtnRow" type="HBoxContainer" parent="Templates/CosmeticCard/HBox/VBox" unique_id=1035177281]
layout_mode = 2