#include "BannerSubScene.h" #include "MainMenuConfig.h" #include #include #include 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( 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( 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( 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}, }); }