The open source repository for the action RPG game in development by Sig Productions titled 'Adventures in Lestoria'!
https://forums.lestoria.net
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
475 B
20 lines
475 B
#include "Crawler.h"
|
|
#include "Menu.h"
|
|
|
|
const Menu Menu::InitializeTestSubMenu(){
|
|
Menu testSubMenu({24*4,24*5});
|
|
|
|
MenuFunc goBack=[](Menu&menu,Crawler*game){
|
|
menu.stack.pop_back();
|
|
};
|
|
|
|
testSubMenu.AddButton(MenuButton({{24*1,24*1},{24*2,24*1}},"Go Back",nullptr,goBack));
|
|
|
|
MenuFunc quitWindow=[](Menu&menu,Crawler*game){
|
|
menu.stack.clear();
|
|
};
|
|
|
|
testSubMenu.AddButton(MenuButton({{24*1,24*3},{24*3,24*1}},"Close Window",nullptr,quitWindow));
|
|
|
|
return testSubMenu;
|
|
} |