added a dloading screen, currently only used to load sounds in automatically (you can cahnge the sounds in the assets and it will work automatically since this autoload will load it in on game start ready)
50 lines
1.3 KiB
Text
50 lines
1.3 KiB
Text
[gd_scene format=3 uid="uid://046i0offx3w8"]
|
|
|
|
[ext_resource type="Script" uid="uid://br8pa51piwxuy" path="res://scenes/ui/loading_screen.gd" id="1_rqdcv"]
|
|
|
|
[node name="LoadingScreen" type="CanvasLayer" unique_id=721141233]
|
|
script = ExtResource("1_rqdcv")
|
|
|
|
[node name="Control" type="Control" parent="." unique_id=2009868353]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="Control" unique_id=1237635531]
|
|
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="Control/ColorRect" unique_id=1444927305]
|
|
unique_name_in_owner = true
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_left = 0.9
|
|
anchor_top = 0.9
|
|
anchor_right = 0.9
|
|
anchor_bottom = 0.9
|
|
offset_left = -219.0
|
|
offset_top = -69.0
|
|
grow_horizontal = 0
|
|
grow_vertical = 0
|
|
theme_override_font_sizes/font_size = 50
|
|
text = "loading..."
|
|
|
|
[node name="ProgressBar" type="ProgressBar" parent="Control/ColorRect" unique_id=1865933389]
|
|
unique_name_in_owner = true
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_top = 0.96
|
|
anchor_right = 1.0
|
|
anchor_bottom = 0.98
|
|
offset_top = -27.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
show_percentage = false
|