[gd_scene load_steps=7 format=3 uid="uid://b5yryfphufmv3"] [ext_resource type="Theme" uid="uid://posd5w7val31" path="res://ui_theme.tres" id="1_i5ifc"] [ext_resource type="Texture2D" uid="uid://gtstcy53lh8a" path="res://ui/stage_end.png" id="1_ywcas"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_8fa8h"] bg_color = Color(0, 0, 0, 1) [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_eppu6"] bg_color = Color(0.290196, 0.290196, 0.290196, 0.686275) corner_radius_top_left = 4 corner_radius_top_right = 4 corner_radius_bottom_right = 4 corner_radius_bottom_left = 4 expand_margin_left = 30.0 expand_margin_top = 10.0 expand_margin_right = 30.0 expand_margin_bottom = 30.0 [sub_resource type="LabelSettings" id="LabelSettings_tbjkf"] font_size = 70 [sub_resource type="GDScript" id="GDScript_5hsxl"] script/source = "extends Button func _on_pressed() -> void: self.get_tree().call_deferred(\"change_scene_to_file\", \"res://main_menu.tscn\") " [node name="Control" type="AspectRatioContainer"] anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 theme = ExtResource("1_i5ifc") ratio = 1.7778 [node name="Panel" type="Panel" parent="."] layout_mode = 2 theme_override_styles/panel = SubResource("StyleBoxFlat_8fa8h") [node name="TextureRect" type="TextureRect" parent="."] layout_mode = 2 texture = ExtResource("1_ywcas") expand_mode = 1 stretch_mode = 5 [node name="MarginContainer" type="MarginContainer" parent="."] layout_mode = 2 size_flags_horizontal = 0 size_flags_vertical = 0 theme_override_constants/margin_left = 148 theme_override_constants/margin_top = 155 [node name="CenterContainer" type="CenterContainer" parent="MarginContainer"] layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 4 [node name="PanelContainer" type="PanelContainer" parent="MarginContainer/CenterContainer"] layout_mode = 2 theme_override_styles/panel = SubResource("StyleBoxFlat_eppu6") [node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/CenterContainer/PanelContainer"] layout_mode = 2 theme_override_constants/separation = 18 [node name="Label" type="Label" parent="MarginContainer/CenterContainer/PanelContainer/VBoxContainer"] layout_mode = 2 text = "Stage End!" label_settings = SubResource("LabelSettings_tbjkf") [node name="Button2" type="Button" parent="MarginContainer/CenterContainer/PanelContainer/VBoxContainer"] layout_mode = 2 size_flags_horizontal = 0 focus_previous = NodePath(".") text = "Exit" script = SubResource("GDScript_5hsxl") [node name="Timer" type="Timer" parent="MarginContainer/CenterContainer/PanelContainer/VBoxContainer/Button2"] wait_time = 1.5 one_shot = true autostart = true [connection signal="pressed" from="MarginContainer/CenterContainer/PanelContainer/VBoxContainer/Button2" to="MarginContainer/CenterContainer/PanelContainer/VBoxContainer/Button2" method="_on_pressed"] [connection signal="timeout" from="MarginContainer/CenterContainer/PanelContainer/VBoxContainer/Button2/Timer" to="MarginContainer/CenterContainer/PanelContainer/VBoxContainer/Button2" method="grab_focus"]