godot-psd-training/trainings/stepJudgment.tscn

68 lines
2.2 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=5 format=3 uid="uid://b41vwoibfy5c6"]
2024-05-13 17:23:45 +08:00
[ext_resource type="Script" path="res://trainings/stepJudgment.gd" id="1_1o6x3"]
[ext_resource type="Theme" uid="uid://bycedcl2nwwlu" path="res://ui_theme.tres" id="2_6cbeu"]
2024-05-13 16:55:34 +08:00
[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
2024-05-13 17:23:45 +08:00
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
2024-05-13 16:55:34 +08:00
[node name="StepJudgment" type="Node"]
2024-05-13 17:23:45 +08:00
script = ExtResource("1_1o6x3")
2024-05-13 16:55:34 +08:00
2024-05-14 14:13:17 +08:00
[node name="MarginContainer" type="MarginContainer" parent="."]
2024-05-13 17:23:45 +08:00
visible = false
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -153.0
2024-05-13 16:55:34 +08:00
offset_bottom = 40.0
2024-05-13 17:23:45 +08:00
grow_horizontal = 0
theme = ExtResource("2_6cbeu")
2024-05-14 14:13:17 +08:00
theme_override_constants/margin_top = 20
theme_override_constants/margin_right = 20
[node name="PanelContainer" type="PanelContainer" parent="MarginContainer"]
layout_mode = 2
2024-05-13 16:55:34 +08:00
theme_override_styles/panel = SubResource("StyleBoxFlat_1asvc")
2024-05-14 14:13:17 +08:00
[node name="Button" type="Button" parent="MarginContainer/PanelContainer"]
2024-05-13 16:55:34 +08:00
layout_mode = 2
2024-05-13 17:23:45 +08:00
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"
2024-05-13 16:55:34 +08:00
2024-05-14 14:13:17 +08:00
[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/PanelContainer"]
2024-05-13 16:55:34 +08:00
layout_mode = 2
2024-05-13 17:23:45 +08:00
theme_override_constants/margin_left = 0
theme_override_constants/margin_top = 5
theme_override_constants/margin_right = 9
theme_override_constants/margin_bottom = 5
2024-05-13 16:55:34 +08:00
2024-05-14 14:13:17 +08:00
[node name="Label" type="Label" parent="MarginContainer/PanelContainer/MarginContainer"]
2024-05-13 16:55:34 +08:00
layout_mode = 2
2024-05-13 17:23:45 +08:00
text = "操做错误,请重试!"
[node name="Timer" type="Timer" parent="."]
wait_time = 5.0
one_shot = true
2024-05-14 14:13:17 +08:00
[connection signal="button_down" from="MarginContainer/PanelContainer/Button" to="." method="_on_button_button_down"]
2024-05-13 17:23:45 +08:00
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]