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

feat: 删除FeedCard场景,重构Feed类,更新UI组件

This commit is contained in:
2025-08-26 18:15:01 +08:00
parent 4a66374e24
commit 7e5a8861ec
2 changed files with 17 additions and 1 deletions
+13 -1
View File
@@ -1,3 +1,15 @@
@tool
extends PanelContainer
class_name Feed
class_name Feed
@export var avatarTexture: Texture2D = null
@export var displayName: String = "未命名饲料"
@export var fields: Array[FieldStore.Entity] = []
@export var values: Array[float] = []
@export var costs: Array[ItemStore.ItemType] = []
@export var counts: Array[int] = []
@onready var avatar: TextureRect = $"%avatar"
@onready var nameLabel: Label = $"%name"
@onready var fieldsBox: VBoxContainer = $"%fields"
@onready var costsBox: VBoxContainer = $"%costs"