1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +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)
+4 -1
View File
@@ -1,8 +1,10 @@
[gd_scene load_steps=7 format=3 uid="uid://bbm8l3hr4ihar"]
[gd_scene load_steps=8 format=3 uid="uid://bbm8l3hr4ihar"]
[ext_resource type="Script" path="res://scripts/Statemachine/ItemShow.gd" id="1_2dhsb"]
[ext_resource type="Texture2D" uid="uid://bks8jmctleina" path="res://resources/items/baseball.svg" id="1_hyowb"]
[sub_resource type="LabelSettings" id="LabelSettings_3yjwr"]
[sub_resource type="Animation" id="Animation_6sxrr"]
length = 0.001
tracks/0/type = "bezier"
@@ -110,6 +112,7 @@ layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 8
text = "0"
label_settings = SubResource("LabelSettings_3yjwr")
[node name="animator" type="AnimationPlayer" parent="."]
unique_name_in_owner = true