Basic game template addon
This commit is contained in:
82
menus/scenes/windows/pause_menu.tscn
Normal file
82
menus/scenes/windows/pause_menu.tscn
Normal file
@@ -0,0 +1,82 @@
|
||||
[gd_scene format=3 uid="uid://docl4rn3h2wf8"]
|
||||
|
||||
[ext_resource type="PackedScene" path="res://addons/maaacks_game_template/base/nodes/windows/overlaid_window.tscn" id="1_lqur3"]
|
||||
[ext_resource type="Script" path="res://menus/scenes/windows/pause_menu.gd" id="2_h3gat"]
|
||||
[ext_resource type="PackedScene" path="res://menus/scenes/windows/pause_menu_options_window.tscn" id="3_qnib3"]
|
||||
[ext_resource type="PackedScene" path="res://addons/maaacks_game_template/base/nodes/windows/confirmation_overlaid_window.tscn" id="4_25tgp"]
|
||||
|
||||
[node name="PauseMenu" instance=ExtResource("1_lqur3")]
|
||||
process_mode = 3
|
||||
custom_minimum_size = Vector2(256, 312)
|
||||
offset_left = -128.0
|
||||
offset_top = -155.0
|
||||
offset_right = 128.0
|
||||
offset_bottom = 157.0
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 1
|
||||
script = ExtResource("2_h3gat")
|
||||
options_menu_scene = ExtResource("3_qnib3")
|
||||
main_menu_scene_path = "res://menus/scenes/menus/main_menu/main_menu_with_animations.tscn"
|
||||
restart_confirmation_node_path = NodePath("RestartConfirmation")
|
||||
main_menu_confirmation_node_path = NodePath("MainMenuConfirmation")
|
||||
exit_confirmation_node_path = NodePath("ExitConfirmation")
|
||||
menu_container_node_path = NodePath("..")
|
||||
pauses_game = true
|
||||
|
||||
[node name="TitleLabel" parent="ContentContainer/BoxContainer/TitleMargin/BoxContainer" index="0"]
|
||||
text = "Paused"
|
||||
|
||||
[node name="BodyMargin" parent="ContentContainer/BoxContainer" index="1"]
|
||||
visible = false
|
||||
|
||||
[node name="MenuButtonsMargin" parent="ContentContainer/BoxContainer" index="2"]
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="CloseButton" parent="ContentContainer/BoxContainer/MenuButtonsMargin/MenuButtons" index="0"]
|
||||
text = "Resume"
|
||||
|
||||
[node name="RestartButton" type="Button" parent="ContentContainer/BoxContainer/MenuButtonsMargin/MenuButtons" index="1"]
|
||||
layout_mode = 2
|
||||
text = "Restart"
|
||||
|
||||
[node name="OptionsButton" type="Button" parent="ContentContainer/BoxContainer/MenuButtonsMargin/MenuButtons" index="2"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "Options"
|
||||
|
||||
[node name="MainMenuButton" type="Button" parent="ContentContainer/BoxContainer/MenuButtonsMargin/MenuButtons" index="3"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "Main Menu"
|
||||
|
||||
[node name="ExitButton" type="Button" parent="ContentContainer/BoxContainer/MenuButtonsMargin/MenuButtons" index="4"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "Exit Game"
|
||||
|
||||
[node name="RestartConfirmation" parent="." index="1" instance=ExtResource("4_25tgp")]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
text = "Restart the game?"
|
||||
title = "Confirm Restart"
|
||||
|
||||
[node name="MainMenuConfirmation" parent="." index="2" instance=ExtResource("4_25tgp")]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
custom_minimum_size = Vector2(220, 0)
|
||||
layout_mode = 2
|
||||
text = "Exit to the main menu?"
|
||||
title = "Confirm Exit"
|
||||
|
||||
[node name="ExitConfirmation" parent="." index="3" instance=ExtResource("4_25tgp")]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
text = "Exit the game?"
|
||||
title = "Confirm Exit"
|
||||
|
||||
[connection signal="pressed" from="ContentContainer/BoxContainer/MenuButtonsMargin/MenuButtons/RestartButton" to="." method="_on_restart_button_pressed"]
|
||||
[connection signal="pressed" from="ContentContainer/BoxContainer/MenuButtonsMargin/MenuButtons/OptionsButton" to="." method="_on_options_button_pressed"]
|
||||
[connection signal="pressed" from="ContentContainer/BoxContainer/MenuButtonsMargin/MenuButtons/MainMenuButton" to="." method="_on_main_menu_button_pressed"]
|
||||
[connection signal="pressed" from="ContentContainer/BoxContainer/MenuButtonsMargin/MenuButtons/ExitButton" to="." method="_on_exit_button_pressed"]
|
||||
Reference in New Issue
Block a user