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

feat: 为角色添加显示名称并完善面板功能

为熊、公鸡、母鸡等角色添加displayName属性
修改FullscreenPanelBase及相关面板以支持参数传递
完善GameOver面板显示凶手信息功能
调整部分角色的节点索引和状态栏位置
This commit is contained in:
2025-09-07 13:39:50 +08:00
parent b186382080
commit 47608ed847
11 changed files with 18 additions and 15 deletions
+1
View File
@@ -56,6 +56,7 @@ radius = 114.215
[node name="Bear" instance=ExtResource("1_3ves7")]
script = ExtResource("2_kh2af")
displayName = "狗熊"
[node name="texture" parent="." index="2"]
position = Vector2(0, -80)
+2 -2
View File
@@ -57,7 +57,7 @@ stream = ExtResource("5_vcsbb")
[node name="attack3" type="AudioStreamPlayer2D" parent="sounds" index="8"]
stream = ExtResource("7_qjhwc")
[node name="texture" parent="." index="1"]
[node name="texture" parent="." index="2"]
position = Vector2(0, -37)
sprite_frames = SubResource("SpriteFrames_xji3d")
@@ -67,6 +67,6 @@ position = Vector2(30, -12)
[node name="firepot" parent="texture/weapons/normal" index="0" instance=ExtResource("6_kvx3n")]
unique_name_in_owner = true
[node name="statebar" parent="." index="2" node_paths=PackedStringArray("entity")]
[node name="statebar" parent="." index="3" node_paths=PackedStringArray("entity")]
position = Vector2(0, -82)
entity = NodePath("..")
+3 -2
View File
@@ -33,13 +33,14 @@ radius = 40.0
[node name="Hen" instance=ExtResource("1_twxai")]
script = ExtResource("2_8u5a0")
displayName = "母鸡"
drops = Array[int]([0, 1])
dropCounts = Array[Vector2]([Vector2(6, 12), Vector2(4, 8)])
[node name="hurt" parent="sounds" index="3"]
stream = ExtResource("3_ojyt7")
[node name="texture" parent="." index="1"]
[node name="texture" parent="." index="2"]
sprite_frames = SubResource("SpriteFrames_xwexj")
animation = &"walk"
@@ -48,6 +49,6 @@ shape = SubResource("CircleShape2D_0uubu")
[node name="normal" type="Node2D" parent="texture/weapons" index="0"]
[node name="statebar" parent="." index="2" node_paths=PackedStringArray("entity")]
[node name="statebar" parent="." index="3" node_paths=PackedStringArray("entity")]
position = Vector2(0, -114)
entity = NodePath("..")
+1
View File
@@ -42,6 +42,7 @@ radius = 41.0122
[node name="Rooster" instance=ExtResource("1_e5pl8")]
script = ExtResource("2_oqdqd")
displayName = "公鸡"
[node name="weaponStore" parent="." index="0"]
process_mode = 4
@@ -17,8 +17,6 @@ font = ExtResource("3_oynlg")
font_color = Color(0.710938, 0.710938, 0.710938, 1)
[node name="GameOver" instance=ExtResource("1_u2ynr")]
offset_top = 0.0
offset_bottom = 0.0
script = ExtResource("2_6cd45")
[node name="wrapper" parent="content" index="1"]