1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00

feat(武器系统): 添加自动强化和一键强化功能

- 新增自动强化开关和按钮图标资源
- 实现武器自动强化逻辑
- 添加一键强化功能可连续升级
- 优化武器卡UI布局和样式
- 增加强化操作时的提示信息
This commit is contained in:
2026-05-03 17:45:00 +08:00
parent bc89c93feb
commit 9df62992e5
16 changed files with 351 additions and 33 deletions
+43 -12
View File
@@ -5,7 +5,12 @@
[ext_resource type="Texture2D" uid="uid://dwwpkn4q07ja2" path="res://icon.svg" id="2_j0w4u"]
[ext_resource type="PackedScene" uid="uid://ch81vd3awkmhk" path="res://components/UI/WeaponName.tscn" id="3_qv0b1"]
[ext_resource type="Texture2D" uid="uid://k13cte17httt" path="res://resources/items/energy.svg" id="4_6gohw"]
[ext_resource type="Texture2D" uid="uid://bq8wf01j5ulwe" path="res://resources/ui/update-level.svg" id="4_do015"]
[ext_resource type="Texture2D" uid="uid://f5rjbiw18tew" path="res://resources/ui/auto.png" id="4_h3enm"]
[ext_resource type="Texture2D" uid="uid://bqplsjw07wkn8" path="res://resources/ui/update-soul.svg" id="4_j0v0r"]
[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"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_n2ewr"]
content_margin_left = 30.0
@@ -13,15 +18,17 @@ 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_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
border_color = Color(0, 0, 0, 0.75)
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
border_width_left = 10
border_width_top = 10
border_width_right = 10
border_width_bottom = 10
border_color = Color(1, 1, 1, 1)
border_blend = true
corner_radius_top_left = 15
corner_radius_top_right = 15
corner_radius_bottom_right = 15
corner_radius_bottom_left = 15
corner_detail = 1
[sub_resource type="LabelSettings" id="LabelSettings_b3nsw"]
font_size = 12
@@ -50,11 +57,32 @@ alignment = 1
[node name="wrapper" type="VBoxContainer" parent="container" unique_id=673686123]
layout_mode = 2
[node name="updates" type="HBoxContainer" parent="container/wrapper" unique_id=901133416]
layout_mode = 2
[node name="autoUpdateBtn" type="Button" parent="container/wrapper/updates" unique_id=287764631]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme = ExtResource("2_fwkd3")
toggle_mode = true
text = "自动强化"
icon = ExtResource("4_h3enm")
[node name="onceUpdateBtn" type="Button" parent="container/wrapper/updates" unique_id=1523224875]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme = ExtResource("2_fwkd3")
text = "一键强化"
icon = ExtResource("5_jv1l6")
[node name="updateBtn" type="Button" parent="container/wrapper" unique_id=248603389]
unique_name_in_owner = true
layout_mode = 2
theme = ExtResource("2_fwkd3")
text = "升级"
text = "强化武器"
icon = ExtResource("4_do015")
[node name="souls" type="HBoxContainer" parent="container/wrapper" unique_id=1439164733]
layout_mode = 2
@@ -64,14 +92,16 @@ unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme = ExtResource("2_fwkd3")
text = "提炼"
text = "灵魂·提炼"
icon = ExtResource("4_j0v0r")
[node name="inlayBtn" type="Button" parent="container/wrapper/souls" unique_id=1008423578]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme = ExtResource("2_fwkd3")
text = "镶嵌"
text = "灵魂·镶嵌"
icon = ExtResource("5_j7v7d")
[node name="info" type="VBoxContainer" parent="container" unique_id=1625294072]
layout_mode = 2
@@ -162,6 +192,7 @@ fit_content = true
[node name="tease" type="Label" parent="container" unique_id=689277044]
unique_name_in_owner = true
visible = false
layout_mode = 2
label_settings = SubResource("LabelSettings_b3nsw")
horizontal_alignment = 1