CheatCode/hud.tscn

77 lines
2.0 KiB
Plaintext

[gd_scene load_steps=5 format=3 uid="uid://blbvg25ql261k"]
[ext_resource type="FontFile" uid="uid://dt0gtb0q5ix4g" path="res://assets/font/Xolonium-Regular.ttf" id="1_ks4ve"]
[ext_resource type="Script" path="res://hud.gd" id="1_ydcub"]
[sub_resource type="InputEventAction" id="InputEventAction_8wpai"]
action = &"start_game"
[sub_resource type="Shortcut" id="Shortcut_ben7t"]
events = [SubResource("InputEventAction_8wpai")]
[node name="HUD" type="CanvasLayer"]
script = ExtResource("1_ydcub")
[node name="Score" type="Label" parent="."]
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -95.0
offset_top = 30.0
offset_right = -31.0
offset_bottom = 108.0
grow_horizontal = 0
theme_override_fonts/font = ExtResource("1_ks4ve")
theme_override_font_sizes/font_size = 64
text = "0"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Start" type="Button" parent="."]
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -150.0
offset_top = -262.0
offset_right = 150.0
offset_bottom = -62.0
grow_horizontal = 2
grow_vertical = 0
theme_override_fonts/font = ExtResource("1_ks4ve")
theme_override_font_sizes/font_size = 64
shortcut = SubResource("Shortcut_ben7t")
text = "Start"
[node name="Message" type="Label" parent="."]
offset_left = 71.0
offset_top = 222.0
offset_right = 418.0
offset_bottom = 381.0
theme_override_fonts/font = ExtResource("1_ks4ve")
theme_override_font_sizes/font_size = 64
text = "Press start"
horizontal_alignment = 1
vertical_alignment = 1
autowrap_mode = 2
[node name="ScoreEnd" type="Label" parent="."]
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -192.5
offset_top = 111.0
offset_right = 192.5
offset_bottom = 199.0
grow_horizontal = 2
theme_override_fonts/font = ExtResource("1_ks4ve")
theme_override_font_sizes/font_size = 64
horizontal_alignment = 1
vertical_alignment = 1
[node name="MessageTimer" type="Timer" parent="."]
wait_time = 2.0
[connection signal="pressed" from="Start" to="." method="_on_start_pressed"]