mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
feat(角色卡片): 添加新角色卡片资源并优化显示逻辑
添加猞猁、牧羊犬和氰化氢的角色卡片资源 优化卡片选中状态的动画显示逻辑 调整卡片样式和主题配置 移除冗余的panel节点引用
This commit is contained in:
@@ -7,7 +7,9 @@ content_margin_left = 20.0
|
||||
content_margin_top = 20.0
|
||||
content_margin_right = 20.0
|
||||
content_margin_bottom = 20.0
|
||||
bg_color = Color(0, 0, 0, 0.70000005)
|
||||
bg_color = Color(0, 0, 0, 0.8)
|
||||
border_width_top = 10
|
||||
border_width_bottom = 10
|
||||
border_color = Color(1, 1, 1, 1)
|
||||
border_blend = true
|
||||
corner_radius_top_left = 15
|
||||
@@ -180,22 +182,19 @@ _data = {
|
||||
&"show": SubResource("Animation_fnmic")
|
||||
}
|
||||
|
||||
[node name="CharacterCardBase" type="CenterContainer" unique_id=282163900]
|
||||
[node name="panel" type="PanelContainer" unique_id=1046363300]
|
||||
modulate = Color(1, 1, 1, 0.5)
|
||||
offset_right = 226.0
|
||||
offset_bottom = 212.0
|
||||
scale = Vector2(0.7, 0.7)
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_5td0u")
|
||||
script = ExtResource("1_dt83t")
|
||||
|
||||
[node name="panel" type="PanelContainer" parent="." unique_id=1046363300]
|
||||
unique_name_in_owner = true
|
||||
modulate = Color(1, 1, 1, 0.5)
|
||||
layout_mode = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_5td0u")
|
||||
|
||||
[node name="wrapper" type="VBoxContainer" parent="panel" unique_id=2023039659]
|
||||
[node name="wrapper" type="VBoxContainer" parent="." unique_id=2023039659]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 10
|
||||
|
||||
[node name="avatarTexture" type="TextureRect" parent="panel/wrapper" unique_id=1334645594]
|
||||
[node name="avatarTexture" type="TextureRect" parent="wrapper" unique_id=1334645594]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
layout_mode = 2
|
||||
@@ -204,27 +203,27 @@ size_flags_vertical = 4
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="infoContainer" type="VBoxContainer" parent="panel/wrapper" unique_id=143242635]
|
||||
[node name="infoContainer" type="VBoxContainer" parent="wrapper" unique_id=143242635]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="nameLabel" type="Label" parent="panel/wrapper/infoContainer" unique_id=516147781]
|
||||
[node name="nameLabel" type="Label" parent="wrapper/infoContainer" unique_id=516147781]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "Unknown Character"
|
||||
label_settings = SubResource("LabelSettings_dt83t")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="descriptionLabel" type="Label" parent="panel/wrapper/infoContainer" unique_id=808054282]
|
||||
[node name="descriptionLabel" type="Label" parent="wrapper/infoContainer" unique_id=808054282]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(100, 10)
|
||||
layout_mode = 2
|
||||
label_settings = SubResource("LabelSettings_myhk0")
|
||||
autowrap_mode = 3
|
||||
|
||||
[node name="fields" type="VBoxContainer" parent="panel/wrapper" unique_id=437152370]
|
||||
[node name="fields" type="VBoxContainer" parent="wrapper" unique_id=437152370]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
|
||||
[node name="animator" type="AnimationPlayer" parent="panel" unique_id=1012843997]
|
||||
[node name="animator" type="AnimationPlayer" parent="." unique_id=1012843997]
|
||||
unique_name_in_owner = true
|
||||
libraries/ = SubResource("AnimationLibrary_xuke2")
|
||||
|
||||
@@ -1,16 +1,33 @@
|
||||
[gd_scene format=3 uid="uid://dfww6e0mpyjk4"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://m8a4nay1pmmg" path="res://components/Abstracts/CharacterCardBase.tscn" id="1_robpf"]
|
||||
[ext_resource type="Texture2D" uid="uid://2xmrkvyrcqq1" path="res://resources/characterCards/hcn.png" id="2_1yfsg"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_82b7n"]
|
||||
content_margin_left = 20.0
|
||||
content_margin_top = 20.0
|
||||
content_margin_right = 20.0
|
||||
content_margin_bottom = 20.0
|
||||
bg_color = Color(0, 0, 0, 0.8)
|
||||
border_color = Color(1, 1, 1, 1)
|
||||
border_blend = true
|
||||
corner_radius_top_left = 15
|
||||
corner_radius_bottom_right = 15
|
||||
corner_detail = 1
|
||||
|
||||
[node name="HCN" unique_id=1046363300 instance=ExtResource("1_robpf")]
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_82b7n")
|
||||
displayName = "氰化氢"
|
||||
avatar = ExtResource("2_1yfsg")
|
||||
description = "苦杏仁气息的致命剧毒物质,暗藏致命威能。触碰即引凶险,微量便可颠覆生机,是隐忍又致命的诡秘造物。"
|
||||
fields = Array[int]([18, 27])
|
||||
fieldValues = Array[float]([5.0, 1.0])
|
||||
clickToRebuild = true
|
||||
|
||||
[node name="avatarTexture" parent="wrapper" parent_id_path=PackedInt32Array(2023039659) index="0" unique_id=1334645594]
|
||||
texture = ExtResource("2_1yfsg")
|
||||
|
||||
[node name="nameLabel" parent="wrapper/infoContainer" parent_id_path=PackedInt32Array(143242635) index="0" unique_id=516147781]
|
||||
text = "氰化氢"
|
||||
|
||||
[node name="descriptionLabel" parent="wrapper/infoContainer" parent_id_path=PackedInt32Array(143242635) index="1" unique_id=808054282]
|
||||
text = "微带苦杏仁气息的致命剧毒物质,静谧却暗藏致命威能。触碰即引凶险,微量便可颠覆生机,是隐忍又致命的诡秘造物。"
|
||||
text = "苦杏仁气息的致命剧毒物质,暗藏致命威能。触碰即引凶险,微量便可颠覆生机,是隐忍又致命的诡秘造物。"
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
[gd_scene format=3 uid="uid://cygvim0mv4ssa"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://m8a4nay1pmmg" path="res://components/Abstracts/CharacterCardBase.tscn" id="1_xa4jc"]
|
||||
[ext_resource type="Texture2D" uid="uid://b1ogllqvamcun" path="res://resources/characterCards/lynx.png" id="2_1s675"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_xa4jc"]
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_wckn2"]
|
||||
content_margin_left = 20.0
|
||||
content_margin_top = 20.0
|
||||
content_margin_right = 20.0
|
||||
@@ -15,11 +16,16 @@ corner_radius_bottom_right = 15
|
||||
corner_detail = 1
|
||||
|
||||
[node name="Lynx" unique_id=1046363300 instance=ExtResource("1_xa4jc")]
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_xa4jc")
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_wckn2")
|
||||
displayName = "猞猁"
|
||||
avatar = ExtResource("2_1s675")
|
||||
description = "栖于寒域密林,生性冷傲孤高。诡秘警觉过人,向来独来独往。身负隐秘过往,不问世俗纷争,只以孤影独行世间。"
|
||||
fields = Array[int]([3, 4, 10])
|
||||
fieldValues = Array[float]([0.15, 0.06, -0.25])
|
||||
clickToRebuild = true
|
||||
|
||||
[node name="avatarTexture" parent="wrapper" parent_id_path=PackedInt32Array(2023039659) index="0" unique_id=1334645594]
|
||||
texture = ExtResource("2_1s675")
|
||||
|
||||
[node name="nameLabel" parent="wrapper/infoContainer" parent_id_path=PackedInt32Array(143242635) index="0" unique_id=516147781]
|
||||
text = "猞猁"
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
[gd_scene format=3 uid="uid://bglwhggnbxxax"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://m8a4nay1pmmg" path="res://components/Abstracts/CharacterCardBase.tscn" id="1_wq25g"]
|
||||
[ext_resource type="Texture2D" uid="uid://dhu4i24hfhxvn" path="res://resources/characterCards/muyang-dog.png" id="2_fi2nw"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_wq25g"]
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_orlvy"]
|
||||
content_margin_left = 20.0
|
||||
content_margin_top = 20.0
|
||||
content_margin_right = 20.0
|
||||
@@ -14,11 +15,16 @@ corner_radius_bottom_right = 15
|
||||
corner_detail = 1
|
||||
|
||||
[node name="MuyangDog" unique_id=1046363300 instance=ExtResource("1_wq25g")]
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_wq25g")
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_orlvy")
|
||||
displayName = "牧羊犬"
|
||||
avatar = ExtResource("2_fi2nw")
|
||||
description = "恪守守护之责,性情沉稳忠诚。常年驻守边境旷野,坚守一方安宁,甘愿以身挡险,永远守护同伴与故土,恪守使命不离不弃。"
|
||||
fields = Array[int]([0, 8, 3])
|
||||
fieldValues = Array[float]([50.0, 0.15, -0.2])
|
||||
clickToRebuild = true
|
||||
|
||||
[node name="avatarTexture" parent="wrapper" parent_id_path=PackedInt32Array(2023039659) index="0" unique_id=1334645594]
|
||||
texture = ExtResource("2_fi2nw")
|
||||
|
||||
[node name="nameLabel" parent="wrapper/infoContainer" parent_id_path=PackedInt32Array(143242635) index="0" unique_id=516147781]
|
||||
text = "牧羊犬"
|
||||
|
||||
@@ -16,6 +16,22 @@ shader_parameter/prog = 0.5000000074506
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_4ekdw"]
|
||||
content_margin_left = 60.0
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_4ekdw"]
|
||||
content_margin_left = 30.0
|
||||
content_margin_top = 30.0
|
||||
content_margin_right = 30.0
|
||||
content_margin_bottom = 30.0
|
||||
bg_color = Color(0, 0, 0, 0.70000005)
|
||||
border_width_left = 10
|
||||
border_width_right = 10
|
||||
border_color = Color(1, 1, 1, 1)
|
||||
border_blend = true
|
||||
corner_radius_top_left = 15
|
||||
corner_radius_top_right = 15
|
||||
corner_radius_bottom_right = 15
|
||||
corner_radius_bottom_left = 15
|
||||
corner_detail = 1
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_sdsu8"]
|
||||
content_margin_right = 60.0
|
||||
|
||||
@@ -181,7 +197,7 @@ theme_override_constants/separation = 30
|
||||
|
||||
[node name="character" type="PanelContainer" parent="content/wrapper/layout/outGameWrapper/layout" index="0" unique_id=1828402109]
|
||||
layout_mode = 2
|
||||
theme_override_styles/panel = ExtResource("7_kl3ko")
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_4ekdw")
|
||||
|
||||
[node name="container" type="VBoxContainer" parent="content/wrapper/layout/outGameWrapper/layout/character" index="0" unique_id=1167478166]
|
||||
layout_mode = 2
|
||||
|
||||
Reference in New Issue
Block a user