godot-psd-training/trainings/stepJudgment.tscn
2024-05-14 14:13:17 +08:00

66 lines
2.1 KiB
Plaintext

[gd_scene load_steps=4 format=3 uid="uid://b41vwoibfy5c6"]
[ext_resource type="Script" path="res://trainings/stepJudgment.gd" id="1_1o6x3"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_1asvc"]
bg_color = Color(1, 0, 0, 1)
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
expand_margin_left = 13.0
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_k0hfu"]
content_margin_left = 3.0
content_margin_right = 3.0
bg_color = Color(1, 0, 0, 1)
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
[node name="StepJudgment" type="Node"]
script = ExtResource("1_1o6x3")
[node name="MarginContainer" type="MarginContainer" parent="."]
visible = false
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -153.0
offset_bottom = 40.0
grow_horizontal = 0
theme_override_constants/margin_top = 20
theme_override_constants/margin_right = 20
[node name="PanelContainer" type="PanelContainer" parent="MarginContainer"]
layout_mode = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_1asvc")
[node name="Button" type="Button" parent="MarginContainer/PanelContainer"]
layout_mode = 2
size_flags_horizontal = 8
size_flags_vertical = 0
theme_override_colors/font_color = Color(1, 1, 1, 1)
theme_override_font_sizes/font_size = 11
theme_override_styles/normal = SubResource("StyleBoxFlat_k0hfu")
text = "X"
[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/PanelContainer"]
layout_mode = 2
theme_override_constants/margin_left = 0
theme_override_constants/margin_top = 5
theme_override_constants/margin_right = 9
theme_override_constants/margin_bottom = 5
[node name="Label" type="Label" parent="MarginContainer/PanelContainer/MarginContainer"]
layout_mode = 2
text = "操做错误,请重试!"
[node name="Timer" type="Timer" parent="."]
wait_time = 5.0
one_shot = true
[connection signal="button_down" from="MarginContainer/PanelContainer/Button" to="." method="_on_button_button_down"]
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]