mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-07-05 01:32:13 +08:00
feat(游戏结束): 添加死亡原因显示功能
- 新增JsonTool工具类用于解析JSON文件 - 在GameOver面板中添加死亡原因显示标签 - 添加死亡原因JSON数据文件 - 在GameRule中加载死亡原因数据
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://beo6s1kudbbve"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://beo6s1kudbbve"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://d3qojeqa3difn" path="res://components/Abstracts/FullscreenPanelBase.tscn" id="1_u2ynr"]
|
||||
[ext_resource type="Script" path="res://scripts/Contents/Panels/GameOver.gd" id="2_6cd45"]
|
||||
@@ -12,11 +12,16 @@ bg_color = Color(1, 0, 0, 0.3)
|
||||
font = ExtResource("3_oynlg")
|
||||
font_size = 50
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_ndokf"]
|
||||
font = ExtResource("3_oynlg")
|
||||
font_color = Color(0.710938, 0.710938, 0.710938, 1)
|
||||
|
||||
[node name="GameOver" instance=ExtResource("1_u2ynr")]
|
||||
visible = false
|
||||
offset_top = 0.0
|
||||
offset_bottom = 0.0
|
||||
script = ExtResource("2_6cd45")
|
||||
|
||||
[node name="wrapper" parent="content" index="0"]
|
||||
[node name="wrapper" parent="content" index="1"]
|
||||
theme_override_constants/separation = 50
|
||||
|
||||
[node name="container" type="PanelContainer" parent="content/wrapper" index="0"]
|
||||
@@ -24,12 +29,23 @@ layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_7gbuu")
|
||||
|
||||
[node name="text" type="Label" parent="content/wrapper/container" index="0"]
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="content/wrapper/container" index="0"]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="text" type="Label" parent="content/wrapper/container/VBoxContainer" index="0"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
text = "败北"
|
||||
label_settings = SubResource("LabelSettings_17i5j")
|
||||
|
||||
[node name="deadreason" type="Label" parent="content/wrapper/container/VBoxContainer" index="1"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
text = "死亡原因"
|
||||
label_settings = SubResource("LabelSettings_ndokf")
|
||||
|
||||
[node name="audio" type="AudioStreamPlayer2D" parent="." index="2"]
|
||||
unique_name_in_owner = true
|
||||
stream = ExtResource("3_n4aax")
|
||||
|
||||
Reference in New Issue
Block a user