1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-25 13:02:29 +08:00

feat: 更新饲料和物品显示逻辑,添加香蕉饲料场景,重构字段显示功能

This commit is contained in:
2025-08-26 18:44:28 +08:00
parent 7e5a8861ec
commit 3197fe6048
9 changed files with 84 additions and 12 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ texture = ExtResource("1_jonms")
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 4
text = "香蕉"
text = "未命名饲料"
[node name="fields" type="VBoxContainer" parent="container"]
unique_name_in_owner = true
+15
View File
@@ -0,0 +1,15 @@
[gd_scene load_steps=3 format=3 uid="uid://btisbc7ehj4fo"]
[ext_resource type="PackedScene" uid="uid://b4cwipt17nh7g" path="res://components/Abstracts/FeedCardBase.tscn" id="1_tdrm3"]
[ext_resource type="Texture2D" uid="uid://b7vxserbhskol" path="res://resources/feeds/banana.svg" id="2_2mlfi"]
[node name="Banana" instance=ExtResource("1_tdrm3")]
avatarTexture = ExtResource("2_2mlfi")
displayName = "香蕉"
fields = Array[int]([0, 3, 7])
fieldValues = Array[float]([10.0, 0.1])
costs = Array[int]([0, 1])
costCounts = Array[int]([5, 10])
[node name="name" parent="container/info" index="1"]
text = "香蕉"
+2
View File
@@ -4,6 +4,8 @@
[ext_resource type="Texture2D" uid="uid://bks8jmctleina" path="res://resources/items/baseball.svg" id="1_hyowb"]
[node name="ItemShow" type="HBoxContainer"]
size_flags_horizontal = 6
size_flags_vertical = 6
script = ExtResource("1_2dhsb")
[node name="avatar" type="TextureRect" parent="."]