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.
26 lines
847 B
26 lines
847 B
#include "Crawler.h"
|
|
#include "Menu.h"
|
|
|
|
const Menu Menu::InitializeTestMenu(){
|
|
Menu testMenu(CENTERED,{24*8,24*6});
|
|
|
|
MenuFunc quitWindow=[](Menu&menu,Crawler*game){
|
|
menu.stack.clear();
|
|
};
|
|
|
|
testMenu.AddComponent("Close",new MenuComponent({{24*1,24*1},{24*2,24*1}},"Close",quitWindow));
|
|
|
|
MenuFunc doNothing=[](Menu&menu,Crawler*game){};
|
|
|
|
testMenu.AddComponent("Test",new MenuComponent({{24*4,24*1},{24*3,24*1}},"Test",doNothing));
|
|
|
|
MenuFunc HurtPlayer=[](Menu&menu,Crawler*game){
|
|
game->GetPlayer()->Hurt(20,game->GetPlayer()->OnUpperLevel(),game->GetPlayer()->GetZ());
|
|
};
|
|
|
|
testMenu.AddComponent("Hurt Player",new MenuComponent({{24*4,24*3},{24*3,24*1}},"Hurt Player",HurtPlayer));
|
|
|
|
testMenu.AddComponent("Open SubMenu",new MenuComponent({{24*2,24*4.5},{24*4,24*1}},"Open Another\n Menu",TEST_2,doNothing));
|
|
|
|
return testMenu;
|
|
} |