feat(*): Add 3-2-1 kickoff countdown before play and after goals

This commit is contained in:
Josh Creek
2026-07-28 19:11:36 +01:00
parent 2533827cf8
commit 93f90ca6de
4 changed files with 64 additions and 13 deletions
+22 -1
View File
@@ -1,4 +1,4 @@
[gd_scene load_steps=6 format=3 uid="uid://c8kak2l3m4n5"]
[gd_scene load_steps=7 format=3 uid="uid://c8kak2l3m4n5"]
[ext_resource type="Script" uid="uid://du7y176h5aaq4" path="res://scripts/HUDController.gd" id="1_hud_controller"]
[ext_resource type="Script" path="res://scripts/hud_attitude_indicator.gd" id="2_adi"]
@@ -8,6 +8,9 @@
[sub_resource type="LabelSettings" id="LabelSettings_hud"]
font_size = 32
[sub_resource type="LabelSettings" id="LabelSettings_kickoff"]
font_size = 96
[node name="HUD" type="CanvasLayer"]
process_mode = 3
script = ExtResource("1_hud_controller")
@@ -62,6 +65,24 @@ theme_override_colors/font_color = Color(1, 0.5, 0.15, 1)
theme_override_font_sizes/font_size = 32
text = "0"
[node name="KickoffLabel" type="Label" parent="Control"]
visible = false
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -90.0
offset_top = -60.0
offset_right = 90.0
offset_bottom = 60.0
grow_horizontal = 2
grow_vertical = 2
label_settings = SubResource("LabelSettings_kickoff")
horizontal_alignment = 1
vertical_alignment = 1
[node name="ResultOverlay" type="Control" parent="Control"]
visible = false
layout_mode = 1