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:
@@ -0,0 +1,24 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bt370a1djjg5p"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/Statemachine/FeedName.gd" id="1_wfxme"]
|
||||
|
||||
[node name="FeedName" type="CenterContainer"]
|
||||
offset_right = 107.0
|
||||
offset_bottom = 19.0
|
||||
script = ExtResource("1_wfxme")
|
||||
quality = 0
|
||||
colorStore = {
|
||||
0: Color(0.5, 0.5, 0.5, 1),
|
||||
1: Color(1, 1, 1, 1),
|
||||
2: Color(0, 0.609284, 1, 1),
|
||||
3: Color(0.561523, 0, 1, 1),
|
||||
4: Color(1, 0.866475, 0, 1)
|
||||
}
|
||||
|
||||
[node name="label" type="RichTextLabel" parent="."]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
bbcode_enabled = true
|
||||
text = "[b][color=#808080]未命名饲料[/color][/b]"
|
||||
fit_content = true
|
||||
autowrap_mode = 0
|
||||
Reference in New Issue
Block a user