challenge-editor/scene/fight_enermy_card.tscn
2024-09-25 23:56:53 +08:00

253 lines
7.4 KiB
Plaintext

[gd_scene load_steps=12 format=3 uid="uid://dd4387syao6lj"]
[ext_resource type="Texture2D" uid="uid://clmrqr17vnoda" path="res://res/ui/ui_026_fight/juxing804.png" id="1_c6q2o"]
[ext_resource type="Shader" path="res://res/shader/stroke.gdshader" id="1_r723e"]
[ext_resource type="Texture2D" uid="uid://lipjl5h1d776" path="res://res/ui/ui_026_fight/tuceng285_1.png" id="2_ac0qe"]
[ext_resource type="Script" path="res://scene/fight_enermy_card.gd" id="2_lqjer"]
[ext_resource type="Texture2D" uid="uid://d4geq35efgqon" path="res://res/ui/ui_026_fight/tuceng286.png" id="3_s8rrj"]
[ext_resource type="Texture2D" uid="uid://li8e5ntlgcpg" path="res://res/ui/ui_003_select/test.png" id="4_u7od8"]
[ext_resource type="Texture2D" uid="uid://bvhrxkcpq3lco" path="res://res/ui/ui_026_fight/juxing768.png" id="5_0j5x7"]
[ext_resource type="Texture2D" uid="uid://deecs52usa3ie" path="res://res/ui/ui_026_fight/juxing768_1.png" id="6_x31v6"]
[ext_resource type="Texture2D" uid="uid://dupfisl50axgw" path="res://res/ui/ui_026_fight/juxing768_2.png" id="7_4wsqq"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_4ic87"]
resource_local_to_scene = true
shader = ExtResource("1_r723e")
shader_parameter/color = Color(0, 0, 0, 1)
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 = null
shader_parameter/flashing_color = Color(1, 1, 1, 1)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ut4q5"]
size = Vector2(453, 249)
[node name="fight_enermy_card" type="TextureRect"]
material = SubResource("ShaderMaterial_4ic87")
offset_right = 450.0
offset_bottom = 250.0
size_flags_horizontal = 8
size_flags_vertical = 3
texture = ExtResource("1_c6q2o")
expand_mode = 3
script = ExtResource("2_lqjer")
[node name="TextureRect" type="TextureRect" parent="."]
use_parent_material = true
layout_mode = 1
anchors_preset = -1
anchor_left = 0.573333
anchor_right = 0.993333
anchor_bottom = 1.0
texture = ExtResource("2_ac0qe")
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_s8rrj")
flip_h = true
[node name="icon" type="TextureRect" parent="TextureRect/TextureRect2"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("4_u7od8")
expand_mode = 1
stretch_mode = 6
[node name="n" type="Label" parent="TextureRect"]
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.0244444
anchor_right = 0.548889
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
[node name="HP_bar" type="TextureProgressBar" parent="VBoxContainer/HBoxContainer"]
unique_name_in_owner = true
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_0j5x7")
[node name="HP_label" type="Label" parent="VBoxContainer/HBoxContainer/HP_bar"]
unique_name_in_owner = true
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="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_4wsqq")
[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
[node name="SP_bar" type="TextureProgressBar" parent="VBoxContainer/HBoxContainer2"]
unique_name_in_owner = true
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_x31v6")
[node name="SP_label" type="Label" parent="VBoxContainer/HBoxContainer2/SP_bar"]
unique_name_in_owner = true
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="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_4wsqq")
[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
[node name="VIT_bar" type="TextureProgressBar" parent="VBoxContainer/HBoxContainer3"]
unique_name_in_owner = true
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_4wsqq")
[node name="VIT_label" type="Label" parent="VBoxContainer/HBoxContainer3/VIT_bar"]
unique_name_in_owner = true
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="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_4wsqq")
[node name="Area2D" type="Area2D" parent="."]
collision_layer = 2
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2(226.5, 125.5)
shape = SubResource("RectangleShape2D_ut4q5")
[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
[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"]