1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-27 22:41:56 +08:00
Files
Dog-Lynx-And-HCN/components/UI/FieldShow.tscn
T
fallingshrimp 4ce17ee3c4 feat: 添加字段图标资源并实现图标显示功能
新增多种字段图标SVG资源文件及对应的.import配置
在FieldShow组件中添加图标显示功能
扩展ComponentManager以支持字段图标的加载和获取
调整FieldShow的布局以适应图标显示
2025-09-30 18:24:40 +08:00

49 lines
1.4 KiB
Plaintext

[gd_scene load_steps=5 format=3 uid="uid://cw5ip3rw4r3pp"]
[ext_resource type="Script" path="res://scripts/Statemachine/FieldShow.gd" id="1_gwocj"]
[ext_resource type="Texture2D" uid="uid://iu5i8ullbhf6" path="res://resources/items/apple.svg" id="2_q02yi"]
[ext_resource type="Theme" uid="uid://b6nox1qqh50ub" path="res://themes/smallText.tres" id="2_x62bb"]
[sub_resource type="LabelSettings" id="LabelSettings_ysv18"]
font_size = 13
[node name="FieldShow" type="HBoxContainer"]
offset_right = 144.0
offset_bottom = 18.0
script = ExtResource("1_gwocj")
metadata/_edit_horizontal_guides_ = [20.0]
[node name="icon" type="TextureRect" parent="."]
unique_name_in_owner = true
custom_minimum_size = Vector2(20, 20)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
texture = ExtResource("2_q02yi")
expand_mode = 1
stretch_mode = 5
[node name="name" type="Label" parent="."]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 11
theme = ExtResource("2_x62bb")
text = "生命上限"
horizontal_alignment = 1
[node name="sep" type="ColorRect" parent="."]
custom_minimum_size = Vector2(20, 1)
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 4
size_flags_stretch_ratio = 16.0
[node name="value" type="Label" parent="."]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 10
size_flags_vertical = 8
text = "0"
label_settings = SubResource("LabelSettings_ysv18")
horizontal_alignment = 1