1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-11 14:17:13 +08:00

feat: 添加武器升华系统及相关UI组件

实现武器升华功能,包括:
- 新增SublimateOption类处理升华选项
- 添加SublimateOptionHandler UI组件
- 在武器卡片中集成升华界面
- 重构武器描述生成逻辑
- 新增钻石资源消耗机制
- 优化UI布局和样式
- 修复多处类型引用错误
This commit is contained in:
2026-05-10 11:49:17 +08:00
parent 1071e87da6
commit 7a0cf96d7d
39 changed files with 558 additions and 147 deletions
+62 -2
View File
@@ -11,6 +11,8 @@
[ext_resource type="PackedScene" uid="uid://bbm8l3hr4ihar" path="res://components/UI/ItemShow.tscn" id="4_k01vb"]
[ext_resource type="Texture2D" uid="uid://clobdvvfmj618" path="res://resources/ui/downdate-soul.svg" id="5_j7v7d"]
[ext_resource type="Texture2D" uid="uid://lrvlfvt55j0" path="res://resources/ui/once-update.svg" id="5_jv1l6"]
[ext_resource type="Script" uid="uid://5r8mvbag4m0q" path="res://scripts/Statemachine/TextSwitchButton.gd" id="5_us21t"]
[ext_resource type="Texture2D" uid="uid://bbny26fysoh57" path="res://resources/ui/sublimate.png" id="8_75t4v"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_n2ewr"]
content_margin_left = 30.0
@@ -30,6 +32,20 @@ corner_radius_bottom_right = 15
corner_radius_bottom_left = 15
corner_detail = 1
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_mjvvk"]
content_margin_left = 30.0
content_margin_top = 20.0
content_margin_right = 30.0
content_margin_bottom = 20.0
bg_color = Color(0, 0, 0, 0.5)
border_width_top = 10
border_width_bottom = 10
border_color = Color(1, 1, 1, 1)
border_blend = true
corner_radius_top_right = 15
corner_radius_bottom_left = 15
corner_detail = 1
[sub_resource type="LabelSettings" id="LabelSettings_b3nsw"]
font_size = 12
font_color = Color(0.55, 0.55, 0.55, 1)
@@ -69,6 +85,31 @@ layout_mode = 2
theme_override_constants/separation = 10
alignment = 1
[node name="anchor" type="Control" parent="container" unique_id=870492027]
layout_mode = 2
[node name="climatePanel" type="PanelContainer" parent="container/anchor" unique_id=653448699]
layout_mode = 1
anchors_preset = -1
anchor_left = 1.15
anchor_right = 1.15
offset_right = 40.0
offset_bottom = 40.0
theme_override_styles/panel = SubResource("StyleBoxFlat_mjvvk")
[node name="wrapper" type="VBoxContainer" parent="container/anchor/climatePanel" unique_id=1097849201]
layout_mode = 2
theme_override_constants/separation = 15
[node name="title" type="Label" parent="container/anchor/climatePanel/wrapper" unique_id=2006348917]
layout_mode = 2
text = "升华"
[node name="sublimateOptions" type="VBoxContainer" parent="container/anchor/climatePanel/wrapper" unique_id=738429306]
unique_name_in_owner = true
layout_mode = 2
theme_override_constants/separation = 10
[node name="wrapper" type="VBoxContainer" parent="container" unique_id=673686123]
layout_mode = 2
@@ -81,8 +122,11 @@ layout_mode = 2
size_flags_horizontal = 3
theme = ExtResource("2_fwkd3")
toggle_mode = true
text = "动强化"
text = "动强化"
icon = ExtResource("4_h3enm")
script = ExtResource("5_us21t")
pressedText = "自动强化"
unpressedText = "手动强化"
[node name="onceUpdateBtn" type="Button" parent="container/wrapper/updates" unique_id=1523224875]
unique_name_in_owner = true
@@ -98,6 +142,22 @@ layout_mode = 2
theme = ExtResource("2_fwkd3")
text = "强化武器"
icon = ExtResource("4_do015")
alignment = 2
[node name="separator" type="HSeparator" parent="container/wrapper" unique_id=2079058077]
layout_mode = 2
theme = ExtResource("2_fwkd3")
[node name="climateBtn" type="Button" parent="container/wrapper" unique_id=390423731]
unique_name_in_owner = true
layout_mode = 2
theme = ExtResource("2_fwkd3")
text = "升华"
icon = ExtResource("8_75t4v")
alignment = 2
script = ExtResource("5_us21t")
pressedText = "凝华"
unpressedText = "升华"
[node name="souls" type="HBoxContainer" parent="container/wrapper" unique_id=1439164733]
layout_mode = 2
@@ -213,7 +273,7 @@ unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
bbcode_enabled = true
text = "[center]造成[color=cyan]10[/color]点伤害。[/center]"
text = "造成[color=cyan]10[/color]点伤害。"
fit_content = true
[node name="tease" type="Label" parent="container" unique_id=689277044]