aboutsummaryrefslogtreecommitdiff
path: root/game/menus/mainmenu/MainMenuScene.cpp
diff options
context:
space:
mode:
authorMax-001 <maxsmits21@kpnmail.nl>2025-01-10 14:47:17 +0100
committerMax-001 <maxsmits21@kpnmail.nl>2025-01-10 14:47:17 +0100
commitbcf9bd69f173ecee0104c84e4eadc990f17569c6 (patch)
tree712d36dec5257a5524269dde85345ceaf90504d1 /game/menus/mainmenu/MainMenuScene.cpp
parent433c840c14782d84b4b95265b3e6f7a1f67ade3b (diff)
parent798237b661e8e49284e78ffb1a16599cf6a46a6d (diff)
Merge remote-tracking branch 'origin/master' into max/game2
Diffstat (limited to 'game/menus/mainmenu/MainMenuScene.cpp')
-rw-r--r--game/menus/mainmenu/MainMenuScene.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/game/menus/mainmenu/MainMenuScene.cpp b/game/menus/mainmenu/MainMenuScene.cpp
index baeca39..c5d2030 100644
--- a/game/menus/mainmenu/MainMenuScene.cpp
+++ b/game/menus/mainmenu/MainMenuScene.cpp
@@ -2,6 +2,7 @@
#include "MainMenuScene.h"
#include "CreditsSubScene.h"
#include "MainMenuConfig.h"
+#include "QuitScript.h"
#include "TransitionStartSubScript.h"
#include "../ButtonSubScene.h"
@@ -33,6 +34,7 @@ void MainMenuScene::load_scene() {
}
);
camera_object.add_component<BehaviorScript>().set_script<TransitionStartSubScript>();
+ camera_object.add_component<BehaviorScript>().set_script<QuitScript>();
//Button menu
GameObject menu_button = this->new_object(MENU_BUTTON_NAME, MENU_BUTTON_NAME, MENU_OFFSET);