feat: 创建 upgrade 数据resource,编写upgrade_panel.gd动态生成升级卡片
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user