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

feat(饲料卡片): 添加饲料品质显示功能

实现饲料品质的枚举定义和颜色映射,修改FeedCardBase使用FeedName组件显示品质
This commit is contained in:
2025-08-28 08:51:08 +08:00
parent 4c077af28d
commit c4b59a5b3f
4 changed files with 76 additions and 11 deletions
+6 -9
View File
@@ -1,8 +1,9 @@
[gd_scene load_steps=5 format=3 uid="uid://bykwevnv7keeh"]
[gd_scene load_steps=6 format=3 uid="uid://bykwevnv7keeh"]
[ext_resource type="Script" path="res://scripts/Structs/Feed.gd" id="1_2ea75"]
[ext_resource type="Theme" uid="uid://dhvs6urgf6jr5" path="res://themes/main.tres" id="2_lvrpo"]
[ext_resource type="Texture2D" uid="uid://bxqax0anr5a45" path="res://resources/feeds/donut.svg" id="3_q17fm"]
[ext_resource type="Texture2D" uid="uid://dwwpkn4q07ja2" path="res://icon.svg" id="3_v6s0y"]
[ext_resource type="PackedScene" uid="uid://bt370a1djjg5p" path="res://components/UI/FeedName.tscn" id="4_aewpy"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_n2ewr"]
content_margin_left = 30.0
@@ -47,18 +48,14 @@ custom_minimum_size = Vector2(75, 75)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 0
texture = ExtResource("3_q17fm")
texture = ExtResource("3_v6s0y")
expand_mode = 1
stretch_mode = 5
[node name="name" type="RichTextLabel" parent="container/info"]
[node name="name" parent="container/info" instance=ExtResource("4_aewpy")]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 4
bbcode_enabled = true
text = "[b]未命名饲料[/b]"
fit_content = true
autowrap_mode = 0
quality = 1
[node name="fields" type="VBoxContainer" parent="container"]
unique_name_in_owner = true