Files
przygody-pana-cegly/objects/ui/game_over_screen.tscn

63 lines
2.2 KiB
Plaintext

[gd_scene load_steps=4 format=3 uid="uid://wmw6gaisyrvx"]
[ext_resource type="Script" uid="uid://u4qfsx4w72dv" path="res://scripts/UI/GameOverScreen.cs" id="1_w4aho"]
[ext_resource type="PackedScene" uid="uid://cl00e2ocomk3m" path="res://scenes/main_menu.tscn" id="2_brh6h"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_mtg1b"]
bg_color = Color(0, 0, 0, 1)
[node name="GameOverScreen" type="Control" node_paths=PackedStringArray("GameOverPanel", "RestartButton", "MainMenuButton")]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_w4aho")
GameOverPanel = NodePath(".")
RestartButton = NodePath("PanelContainer/MarginContainer/VBoxContainer/RestartLevelButton")
MainMenuButton = NodePath("PanelContainer/MarginContainer/VBoxContainer/MenuButton")
MainMenuScene = ExtResource("2_brh6h")
[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_override_styles/panel = SubResource("StyleBoxFlat_mtg1b")
[node name="MarginContainer" type="MarginContainer" parent="PanelContainer"]
layout_mode = 2
theme_override_constants/margin_left = 16
theme_override_constants/margin_top = 32
theme_override_constants/margin_right = 16
theme_override_constants/margin_bottom = 16
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/MarginContainer"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 0
theme_override_constants/separation = 16
[node name="Label" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "GAME_OVER"
horizontal_alignment = 1
uppercase = true
[node name="Control" type="Control" parent="PanelContainer/MarginContainer/VBoxContainer"]
custom_minimum_size = Vector2(0, 32)
layout_mode = 2
[node name="RestartLevelButton" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "RESTART_LEVEL_BUTTON"
flat = true
[node name="MenuButton" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "GO_TO_MENU_BUTTON"
flat = true