I have the following code to add menu options:
Code: Select all
mmenu->bNew = dotdCore->getGUIEnvironment()->addStaticText(L"New Game",rect<s32>(0*space+50,dotdCore->getConfig()->height - 40, 0*space+150,dotdCore->getConfig()->height-20),false,false,0,100+_MENU_NEWGAME);
mmenu->bLoad = dotdCore->getGUIEnvironment()->addStaticText(L"Load Game",rect<s32>(1*space+150,dotdCore->getConfig()->height - 40, 1*space+250,dotdCore->getConfig()->height-20),false,false,0,100+_MENU_LOADGAME);
mmenu->bOptions = dotdCore->getGUIEnvironment()->addStaticText(L"Options",rect<s32>(2*space+250,dotdCore->getConfig()->height - 40, 2*space+350,dotdCore->getConfig()->height-20),false,false,0,100+_MENU_OPTIONS);
mmenu->bAbout = dotdCore->getGUIEnvironment()->addStaticText(L"About",rect<s32>(3*space+350,dotdCore->getConfig()->height - 40, 3*space+450,dotdCore->getConfig()->height-20),false,false,0,100+_MENU_ABOUT);
mmenu->bExit = dotdCore->getGUIEnvironment()->addStaticText(L"Exit",rect<s32>(4*space+450,dotdCore->getConfig()->height - 40, 4*space+550,dotdCore->getConfig()->height-20),false,false,0,100+_MENU_EXIT);
Thanks.