1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-11 06:07:12 +08:00

feat(UI): 更新字体资源并优化物品显示逻辑

替换原有字体文件为OTF格式,添加粗体字体支持
在物品显示组件中添加字体颜色变化功能,根据资源是否足够显示不同颜色
优化Feed类的资源消耗计算逻辑,增加countOf方法提高可读性
This commit is contained in:
2025-09-30 17:32:15 +08:00
parent 6a0389dd94
commit 43f6387d9c
9 changed files with 58 additions and 12 deletions
+3 -1
View File
@@ -1,8 +1,10 @@
[gd_scene load_steps=6 format=3 uid="uid://ccuucmpdsjgb3"]
[gd_scene load_steps=7 format=3 uid="uid://ccuucmpdsjgb3"]
[ext_resource type="Script" path="res://scripts/Statemachine/DamageLabel.gd" id="1_0q15u"]
[ext_resource type="FontFile" uid="uid://v3frxpuvtj5o" path="res://resources/fonts/syht-bold.ttf" id="2_p1o7i"]
[sub_resource type="LabelSettings" id="LabelSettings_valp2"]
font = ExtResource("2_p1o7i")
font_size = 25
outline_size = 6
outline_color = Color(0, 0, 0, 1)