diff options
author | Joel Machens <ajmach6@gmail.com> | 2023-06-12 04:27:31 +0200 |
---|---|---|
committer | BrickPi <49528459+BrickPi@users.noreply.github.com> | 2023-06-13 19:53:03 +0200 |
commit | acda3217349a0ebdb8b48a3787cb15d8eb250e7c (patch) | |
tree | c6703f8c2f7fe33cfd6a11bbcf4d0a6294046570 /game/src/Game/LoadingScreen.tscn | |
parent | 6e26b948ea2a7632bcb7b795fe78f7169477eb6a (diff) |
Add Loading Screen
Diffstat (limited to 'game/src/Game/LoadingScreen.tscn')
-rw-r--r-- | game/src/Game/LoadingScreen.tscn | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/game/src/Game/LoadingScreen.tscn b/game/src/Game/LoadingScreen.tscn new file mode 100644 index 0000000..d6068c8 --- /dev/null +++ b/game/src/Game/LoadingScreen.tscn @@ -0,0 +1,70 @@ +[gd_scene load_steps=6 format=3 uid="uid://3kktdpfnc0sn"] + +[ext_resource type="Script" path="res://src/Game/LoadingScreen.gd" id="1_b0p3w"] +[ext_resource type="Texture2D" uid="uid://doji17mxxmikl" path="res://theme/assets/loading_screen.png" id="2_ny153"] + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_3fggo"] +texture = ExtResource("2_ny153") + +[sub_resource type="Theme" id="Theme_f5c3e"] +PanelContainer/styles/panel = SubResource("StyleBoxTexture_3fggo") + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_yaf7e"] +content_margin_left = 16.0 +content_margin_top = 16.0 +content_margin_right = 16.0 +content_margin_bottom = 16.0 +bg_color = Color(0.129412, 0.129412, 0.129412, 1) +corner_radius_top_left = 16 +corner_radius_top_right = 16 +corner_radius_bottom_right = 16 +corner_radius_bottom_left = 16 + +[node name="LoadingScreen" type="Control" node_paths=PackedStringArray("progress_bar", "quote_label")] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +script = ExtResource("1_b0p3w") +progress_bar = NodePath("PanelContainer/MarginContainer/ProgressBar") +quote_label = NodePath("PanelContainer/MarginContainer/PanelContainer/QuoteLabel") + +[node name="PanelContainer" type="PanelContainer" parent="."] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme = SubResource("Theme_f5c3e") + +[node name="MarginContainer" type="MarginContainer" parent="PanelContainer"] +layout_mode = 2 +theme_override_constants/margin_left = 16 +theme_override_constants/margin_top = 16 +theme_override_constants/margin_right = 16 +theme_override_constants/margin_bottom = 16 + +[node name="ProgressBar" type="ProgressBar" parent="PanelContainer/MarginContainer"] +layout_mode = 2 +size_flags_vertical = 8 +step = 1.0 +rounded = true + +[node name="PanelContainer" type="PanelContainer" parent="PanelContainer/MarginContainer"] +layout_mode = 2 +size_flags_horizontal = 4 +size_flags_vertical = 0 +theme_override_styles/panel = SubResource("StyleBoxFlat_yaf7e") + +[node name="QuoteLabel" type="Label" parent="PanelContainer/MarginContainer/PanelContainer"] +custom_minimum_size = Vector2(700, 80) +layout_mode = 2 +size_flags_horizontal = 4 +size_flags_vertical = 0 +horizontal_alignment = 1 +vertical_alignment = 1 +autowrap_mode = 3 +text_overrun_behavior = 3 |