feat: 创建 upgrade 数据resource,编写upgrade_panel.gd动态生成升级卡片

This commit is contained in:
luke358
2026-05-21 16:04:27 +08:00
parent ce3813c5dc
commit 1796d9e47d
14 changed files with 170 additions and 17 deletions
@@ -0,0 +1,14 @@
[gd_resource type="Resource" script_class="ItemUpgrade" format=3 uid="uid://d2x2dbdfls585"]
[ext_resource type="Texture2D" uid="uid://513vy8yuf2c3" path="res://assets/sprites/Upgrades/6.png" id="1_x3r4g"]
[ext_resource type="Script" uid="uid://ti87pqqmd7ro" path="res://resources/items/upgrades/item_upgrade.gd" id="2_fqyel"]
[resource]
script = ExtResource("2_fqyel")
value = 1.0
descriptin = "+ 1"
stat_id = "health"
item_name = "Health"
item_icon = ExtResource("1_x3r4g")
item_type = 1
metadata/_custom_type_script = "uid://ti87pqqmd7ro"