aboutsummaryrefslogtreecommitdiff
path: root/game/mainmenu/ShopMenuScene.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/mainmenu/ShopMenuScene.cpp')
-rw-r--r--game/mainmenu/ShopMenuScene.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/game/mainmenu/ShopMenuScene.cpp b/game/mainmenu/ShopMenuScene.cpp
index b18ae47..be2039f 100644
--- a/game/mainmenu/ShopMenuScene.cpp
+++ b/game/mainmenu/ShopMenuScene.cpp
@@ -1,5 +1,6 @@
#include "ShopMenuScene.h"
+#include "ButtonSubScene.h"
#include "api/Camera.h"
#include "MainMenuConfig.h"
#include "api/Sprite.h"
@@ -24,6 +25,16 @@ void ShopMenuScene::load_scene(){
.size = {1100,860},
.position_offset {0},
});
+
+ ButtonSubScene button;
+ button.create(*this,ButtonSubScene::Data{
+ .text = "BACK",
+ .text_width = 115,
+ .position = {-400,-350},
+ .script_type = ButtonSubScene::ScriptSelect::MAINMENU,
+ .button_type = ButtonSubScene::ButtonSelect::SMALL,
+ .scale = 0.8
+ });
}
string ShopMenuScene::get_name() const { return "shopmenu"; }