aboutsummaryrefslogtreecommitdiff
path: root/game/mainmenu/ShopMenuScene.cpp
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-12-29 15:05:21 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-12-29 15:05:21 +0100
commitb758b2b20da8e3ab002dacc663237e1681ae973c (patch)
tree60c41aa58570eaebbc589b07ff13f045fe46a93a /game/mainmenu/ShopMenuScene.cpp
parente007e8f467349eeddaf503e31897d4135ba6fed4 (diff)
back button
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"; }