summaryrefslogtreecommitdiff
path: root/UI/GameOver.tscn
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2023-12-25 00:21:50 +0100
committerDaniel Weipert <git@mail.dweipert.de>2023-12-25 00:21:50 +0100
commit0bfda86c29d106df5fa3dd16d925c193b3f726c7 (patch)
tree7d248694a63c346f5e82510b50405e34f8d5afe5 /UI/GameOver.tscn
parent09794cc76678247592ceb4e8b37e1ab129356466 (diff)
UI + HUD alignmentv2.0.0
Diffstat (limited to 'UI/GameOver.tscn')
-rw-r--r--UI/GameOver.tscn57
1 files changed, 31 insertions, 26 deletions
diff --git a/UI/GameOver.tscn b/UI/GameOver.tscn
index 7ab36bf..b5b919d 100644
--- a/UI/GameOver.tscn
+++ b/UI/GameOver.tscn
@@ -6,9 +6,6 @@
[sub_resource type="FontFile" id="1"]
fallbacks = Array[Font]([ExtResource("1")])
-face_index = null
-embolden = null
-transform = null
cache/0/16/0/ascent = 0.0
cache/0/16/0/descent = 0.0
cache/0/16/0/underline_position = 0.0
@@ -36,9 +33,6 @@ cache/0/128/0/kerning_overrides/128/0 = Vector2(0, 0)
[sub_resource type="FontFile" id="2"]
fallbacks = Array[Font]([ExtResource("2")])
-face_index = null
-embolden = null
-transform = null
cache/0/16/0/ascent = 0.0
cache/0/16/0/descent = 0.0
cache/0/16/0/underline_position = 0.0
@@ -54,38 +48,49 @@ cache/0/72/0/scale = 1.0
cache/0/72/0/kerning_overrides/16/0 = Vector2(0, 0)
cache/0/72/0/kerning_overrides/72/0 = Vector2(0, 0)
-[node name="GameOver" type="Panel"]
+[node name="GameOver" type="Control"]
+layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource("3")
-[node name="Title" type="Label" parent="."]
-layout_mode = 0
-offset_left = 219.0
-offset_top = 95.0
-offset_right = 913.0
-offset_bottom = 226.0
+[node name="Panel" type="Panel" parent="."]
+layout_mode = 1
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 2
+
+[node name="VBoxContainer" type="VBoxContainer" parent="Panel"]
+layout_mode = 1
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 2
+
+[node name="Title" type="Label" parent="Panel/VBoxContainer"]
+layout_mode = 2
theme_override_fonts/font = SubResource("1")
theme_override_font_sizes/font_size = 128
text = "GAME OVER"
+horizontal_alignment = 1
+vertical_alignment = 1
-[node name="Winner" type="Label" parent="."]
-layout_mode = 0
-offset_left = 394.0
-offset_top = 268.0
-offset_right = 763.0
-offset_bottom = 345.0
+[node name="Winner" type="Label" parent="Panel/VBoxContainer"]
+layout_mode = 2
+size_flags_vertical = 3
theme_override_fonts/font = SubResource("2")
theme_override_font_sizes/font_size = 72
text = "NAME won!"
+horizontal_alignment = 1
+vertical_alignment = 1
-[node name="BackToLobby" type="Button" parent="."]
-layout_mode = 0
-offset_left = 500.0
-offset_top = 447.0
-offset_right = 628.0
-offset_bottom = 479.0
+[node name="BackToLobby" type="Button" parent="Panel/VBoxContainer"]
+custom_minimum_size = Vector2(0, 50)
+layout_mode = 2
text = "Back to Lobby"
-[connection signal="pressed" from="BackToLobby" to="." method="_on_BackToLobby_pressed"]
+[connection signal="pressed" from="Panel/VBoxContainer/BackToLobby" to="." method="_on_BackToLobby_pressed"]