aboutsummaryrefslogtreecommitdiff
path: root/game/mainmenu/BannerSubScene.cpp
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-12-23 22:43:10 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-12-23 22:43:10 +0100
commitab4d35b795664a10da6e13f9fa22f73a86b948b4 (patch)
treebde4ac1fdaf58cf6b1852f9eb2f381cfb87b8f00 /game/mainmenu/BannerSubScene.cpp
parent4cbd236de18446d192dd59d7c7bc4ebb78850e37 (diff)
reuasable banner
Diffstat (limited to 'game/mainmenu/BannerSubScene.cpp')
-rw-r--r--game/mainmenu/BannerSubScene.cpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/game/mainmenu/BannerSubScene.cpp b/game/mainmenu/BannerSubScene.cpp
new file mode 100644
index 0000000..0f4f075
--- /dev/null
+++ b/game/mainmenu/BannerSubScene.cpp
@@ -0,0 +1,35 @@
+#include "BannerSubScene.h"
+#include "MainMenuConfig.h"
+
+
+#include <crepe/api/Sprite.h>
+#include <crepe/api/Scene.h>
+#include <crepe/api/Text.h>
+
+using namespace crepe;
+using namespace std;
+
+void BannerSubScene::create(Scene & scn){
+ GameObject menu_banner = scn.new_object("menu_banner","", {0,-414});
+ menu_banner.add_component<Sprite>(
+ Asset("asset/ui/settings_container/top_middle_setting.png"),
+ Sprite::Data{
+ .sorting_in_layer = MainMenuConfig::STARTING_SORTING_IN_LAYER+1,
+ .size = {1100,88},
+ });
+ menu_banner.add_component<Sprite>(
+ Asset("asset/ui/settings_container/top_2_middle_setting.png"),
+ Sprite::Data{
+ .sorting_in_layer = MainMenuConfig::STARTING_SORTING_IN_LAYER+1,
+ .size = {1100,66},
+ .position_offset {0,77},
+ });
+ menu_banner.add_component<Sprite>(
+ Asset("asset/ui/settings_container/banner_bottom.png"),
+ Sprite::Data{
+ .sorting_in_layer = MainMenuConfig::STARTING_SORTING_IN_LAYER+1,
+ .size = {1100,7},
+ .position_offset {0,113},
+ });
+
+}