challenge-editor/scene/fight_character_card.tscn

249 lines
7.4 KiB
Plaintext
Raw Normal View History

2024-09-25 18:04:02 +08:00
[gd_scene load_steps=12 format=3 uid="uid://braadtw2q0x6u"]
2024-09-14 17:36:48 +08:00
2024-09-25 18:04:02 +08:00
[ext_resource type="Shader" path="res://res/shader/stroke.gdshader" id="1_7tjg7"]
2024-09-14 17:36:48 +08:00
[ext_resource type="Texture2D" uid="uid://cn2q8k4s3bxiu" path="res://res/ui/ui_026_fight/juxing744_1.png" id="1_oi31c"]
2024-09-24 11:59:54 +08:00
[ext_resource type="Script" path="res://scene/fight_character_card.gd" id="2_berqc"]
2024-09-14 17:36:48 +08:00
[ext_resource type="Texture2D" uid="uid://by6vl56taeyd2" path="res://res/ui/ui_026_fight/tuceng285_2.png" id="2_evh5s"]
[ext_resource type="Texture2D" uid="uid://d4geq35efgqon" path="res://res/ui/ui_026_fight/tuceng286.png" id="3_kujn5"]
[ext_resource type="Texture2D" uid="uid://li8e5ntlgcpg" path="res://res/ui/ui_003_select/test.png" id="4_srllr"]
[ext_resource type="Texture2D" uid="uid://bvhrxkcpq3lco" path="res://res/ui/ui_026_fight/juxing768.png" id="5_mey8u"]
[ext_resource type="Texture2D" uid="uid://deecs52usa3ie" path="res://res/ui/ui_026_fight/juxing768_1.png" id="6_j0vci"]
[ext_resource type="Texture2D" uid="uid://dupfisl50axgw" path="res://res/ui/ui_026_fight/juxing768_2.png" id="7_wx32q"]
2024-09-25 18:04:02 +08:00
[sub_resource type="ShaderMaterial" id="ShaderMaterial_tpy32"]
resource_local_to_scene = true
shader = ExtResource("1_7tjg7")
shader_parameter/color = Color(0, 0, 0, 0.996078)
shader_parameter/width = 0.0
shader_parameter/pattern = 0
shader_parameter/inside = false
shader_parameter/add_margins = true
shader_parameter/number_of_images = Vector2(1, 1)
shader_parameter/open_flashing = false
shader_parameter/flashing_color = Color(0.851769, 0.851769, 0.851769, 1)
2024-09-24 17:26:44 +08:00
[sub_resource type="RectangleShape2D" id="RectangleShape2D_oitb8"]
size = Vector2(457, 252)
2024-09-14 17:36:48 +08:00
[node name="fight_character_card" type="TextureRect"]
2024-09-25 18:04:02 +08:00
material = SubResource("ShaderMaterial_tpy32")
2024-09-14 17:36:48 +08:00
offset_right = 450.0
offset_bottom = 250.0
size_flags_horizontal = 0
size_flags_vertical = 3
texture = ExtResource("1_oi31c")
expand_mode = 3
2024-09-24 11:59:54 +08:00
script = ExtResource("2_berqc")
2024-09-14 17:36:48 +08:00
[node name="TextureRect" type="TextureRect" parent="."]
2024-09-25 18:04:02 +08:00
use_parent_material = true
2024-09-14 17:36:48 +08:00
layout_mode = 1
anchors_preset = -1
anchor_right = 0.42
anchor_bottom = 1.0
texture = ExtResource("2_evh5s")
expand_mode = 1
metadata/_edit_use_anchors_ = true
[node name="TextureRect2" type="TextureRect" parent="TextureRect"]
show_behind_parent = true
clip_children = 2
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("3_kujn5")
2024-09-24 11:59:54 +08:00
[node name="icon" type="TextureRect" parent="TextureRect/TextureRect2"]
2024-09-14 17:36:48 +08:00
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("4_srllr")
expand_mode = 1
stretch_mode = 6
2024-09-24 11:59:54 +08:00
[node name="n" type="Label" parent="TextureRect"]
2024-09-14 17:36:48 +08:00
layout_mode = 0
anchor_top = 0.884
anchor_right = 1.0
anchor_bottom = 1.0
text = "卡名"
horizontal_alignment = 1
vertical_alignment = 1
metadata/_edit_use_anchors_ = true
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.44
anchor_right = 0.964444
anchor_bottom = 1.0
metadata/_edit_use_anchors_ = true
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "血量:"
horizontal_alignment = 1
vertical_alignment = 1
justification_flags = 162
2024-09-25 23:56:53 +08:00
[node name="HP_bar" type="TextureProgressBar" parent="VBoxContainer/HBoxContainer"]
unique_name_in_owner = true
2024-09-14 17:36:48 +08:00
custom_minimum_size = Vector2(176, 32)
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
value = 100.0
nine_patch_stretch = true
texture_progress = ExtResource("5_mey8u")
2024-09-25 23:56:53 +08:00
[node name="HP_label" type="Label" parent="VBoxContainer/HBoxContainer/HP_bar"]
unique_name_in_owner = true
2024-09-14 17:36:48 +08:00
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
text = "999/999"
horizontal_alignment = 1
vertical_alignment = 1
2024-09-25 23:56:53 +08:00
[node name="back" type="TextureRect" parent="VBoxContainer/HBoxContainer/HP_bar"]
modulate = Color(0, 0, 0, 1)
show_behind_parent = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("7_wx32q")
2024-09-14 17:36:48 +08:00
[node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer2"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "精神:"
horizontal_alignment = 1
vertical_alignment = 1
justification_flags = 162
2024-09-25 23:56:53 +08:00
[node name="SP_bar" type="TextureProgressBar" parent="VBoxContainer/HBoxContainer2"]
unique_name_in_owner = true
2024-09-14 17:36:48 +08:00
custom_minimum_size = Vector2(176, 32)
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
value = 100.0
nine_patch_stretch = true
texture_progress = ExtResource("6_j0vci")
2024-09-25 23:56:53 +08:00
[node name="back" type="TextureRect" parent="VBoxContainer/HBoxContainer2/SP_bar"]
modulate = Color(0, 0, 0, 1)
show_behind_parent = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("7_wx32q")
[node name="SP_label" type="Label" parent="VBoxContainer/HBoxContainer2/SP_bar"]
unique_name_in_owner = true
2024-09-14 17:36:48 +08:00
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
text = "999/999"
horizontal_alignment = 1
vertical_alignment = 1
[node name="HBoxContainer3" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer3"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "体力:"
horizontal_alignment = 1
vertical_alignment = 1
justification_flags = 162
2024-09-25 23:56:53 +08:00
[node name="VIT_bar" type="TextureProgressBar" parent="VBoxContainer/HBoxContainer3"]
unique_name_in_owner = true
2024-09-14 17:36:48 +08:00
custom_minimum_size = Vector2(176, 32)
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
value = 100.0
nine_patch_stretch = true
texture_progress = ExtResource("7_wx32q")
2024-09-25 23:56:53 +08:00
[node name="back" type="TextureRect" parent="VBoxContainer/HBoxContainer3/VIT_bar"]
modulate = Color(0, 0, 0, 1)
show_behind_parent = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("7_wx32q")
[node name="VIT_label" type="Label" parent="VBoxContainer/HBoxContainer3/VIT_bar"]
unique_name_in_owner = true
2024-09-14 17:36:48 +08:00
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
text = "999/999"
horizontal_alignment = 1
vertical_alignment = 1
2024-09-24 17:26:44 +08:00
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2(224.5, 124)
shape = SubResource("RectangleShape2D_oitb8")
2024-09-25 18:04:02 +08:00
2024-09-25 23:56:53 +08:00
[node name="turn_flag" type="Label" parent="."]
unique_name_in_owner = true
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 100
text = "回合中"
horizontal_alignment = 1
vertical_alignment = 1
2024-09-25 18:04:02 +08:00
[connection signal="area_entered" from="Area2D" to="." method="_on_area_2d_area_entered"]
[connection signal="area_exited" from="Area2D" to="." method="_on_area_2d_area_exited"]