mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-27 22:41:56 +08:00
7a0cf96d7d
实现武器升华功能,包括: - 新增SublimateOption类处理升华选项 - 添加SublimateOptionHandler UI组件 - 在武器卡片中集成升华界面 - 重构武器描述生成逻辑 - 新增钻石资源消耗机制 - 优化UI布局和样式 - 修复多处类型引用错误
61 lines
2.0 KiB
Plaintext
61 lines
2.0 KiB
Plaintext
[gd_scene format=3 uid="uid://dsqq55w2twlp6"]
|
|
|
|
[ext_resource type="Script" uid="uid://qpx600iiwgae" path="res://scripts/Statemachine/SublimateOptionHandler.gd" id="1_kwr7c"]
|
|
[ext_resource type="Texture2D" uid="uid://bqdfnupy16x1k" path="res://resources/ui/sublimate-icon.png" id="1_xsbjn"]
|
|
[ext_resource type="PackedScene" uid="uid://bbm8l3hr4ihar" path="res://components/UI/ItemShow.tscn" id="2_68c0g"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_kwr7c"]
|
|
content_margin_left = 15.0
|
|
content_margin_top = 6.0
|
|
content_margin_right = 15.0
|
|
content_margin_bottom = 6.0
|
|
bg_color = Color(0, 0, 0, 0.3)
|
|
border_width_left = 4
|
|
border_width_top = 1
|
|
border_width_right = 4
|
|
border_width_bottom = 1
|
|
border_color = Color(1, 1, 1, 1)
|
|
corner_radius_top_left = 10
|
|
corner_radius_bottom_right = 10
|
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_kwr7c"]
|
|
font_size = 18
|
|
outline_size = 1
|
|
|
|
[node name="SublimateOption" type="PanelContainer" unique_id=1944124947]
|
|
offset_right = 285.0
|
|
offset_bottom = 32.0
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_kwr7c")
|
|
script = ExtResource("1_kwr7c")
|
|
|
|
[node name="container" type="HBoxContainer" parent="." unique_id=1689302184]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 10
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="container" unique_id=703603476]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 5
|
|
|
|
[node name="name" type="Label" parent="container/HBoxContainer" unique_id=1606683475]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "name"
|
|
label_settings = SubResource("LabelSettings_kwr7c")
|
|
|
|
[node name="costItem" parent="container/HBoxContainer" unique_id=583849471 instance=ExtResource("2_68c0g")]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
type = 6
|
|
|
|
[node name="separator" type="HSeparator" parent="container" unique_id=1982068530]
|
|
custom_minimum_size = Vector2(40, 0)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="applyBtn" type="Button" parent="container" unique_id=262085363]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "description"
|
|
icon = ExtResource("1_xsbjn")
|