Made Loading screen it's own component instead of being part of the player and made it part of the game
This commit is contained in:
39
Assets/components/loading_screen.tscn
Normal file
39
Assets/components/loading_screen.tscn
Normal file
@ -0,0 +1,39 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dnihn8hn7dc4f"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://dnoxpn5kedvxh" path="res://Assets/Resources/VCRFont.tres" id="1_7378h"]
|
||||
[ext_resource type="Script" path="res://Assets/scripts/LoadingScreen.gd" id="2_7qlq6"]
|
||||
|
||||
[node name="LoadingScreen" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("1_7378h")
|
||||
script = ExtResource("2_7qlq6")
|
||||
|
||||
[node name="Blackout" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="Label" type="Label" parent="Blackout"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_font_sizes/font_size = 80
|
||||
text = "Loading..."
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
||||
Reference in New Issue
Block a user