Esempio n. 1
0
void BaseApplication::setupInfoMenu(void)
{
    mMenuLabel = mTrayMgr->createLabel(OgreBites::TL_TOP, "menuLabel", "Cubester's Maze", 250);
    mTrayMgr->createLabel(OgreBites::TL_CENTER, "label1", std::string("DAMAGE TILES\n") +
                                                          std::string("Poison: 2 Hp/Tile removed on Cure Tile\n")+
                                                          std::string("Lava: 5 Hp/Tile removed in water or wears off\n")+
                                                          std::string("Spike: Deals 39 Hp\n")+
                                                          std::string("SPECIAL TILES\n")+
                                                          std::string("Ice: Slide on it\n")+
                                                          std::string("Water: Drown when bubbles is 0\n")+
                                                          std::string("Cure: Removes Poison\n")+
                                                          std::string("Door: Needs a key to open\n")+
                                                          std::string("Key: Gives one key\n"), 400);
    OgreBites::Label *will = mTrayMgr->createLabel(OgreBites::TL_CENTER, "label2", "S/Arrow down key for moving down", 400);
    will->hide();
    will = mTrayMgr->createLabel(OgreBites::TL_CENTER, "label3", "A/Arrow left key for moving left", 400);
    will->hide();
    will = mTrayMgr->createLabel(OgreBites::TL_CENTER, "label4", "A/Arrow left key for moving left", 400);
    will->hide();
    will = mTrayMgr->createLabel(OgreBites::TL_CENTER, "label5", "A/Arrow left key for moving left", 400);
    will->hide();
    will = mTrayMgr->createLabel(OgreBites::TL_CENTER, "label6", "A/Arrow left key for moving left", 400);
    will->hide();
    mTrayMgr->createButton(OgreBites::TL_CENTER, "back from info", "Back", 400);
}
Esempio n. 2
0
void BaseApplication::setupControlMenu(void)
{
    mMenuLabel = mTrayMgr->createLabel(OgreBites::TL_TOP, "menuLabel", "Cubester's Maze", 250);
    mTrayMgr->createLabel(OgreBites::TL_CENTER, "label1", "W/Arrow up key for moving up\nS/Arrow down key for moving down\nA/Arrow left key for moving left\nD/Arrow right key for moving right\nEsc key for pause the game or quit\nSpace to respawn when dead", 400);
    OgreBites::Label *will = mTrayMgr->createLabel(OgreBites::TL_CENTER, "label2", "S/Arrow down key for moving down", 400);
    will->hide();
    will = mTrayMgr->createLabel(OgreBites::TL_CENTER, "label3", "A/Arrow left key for moving left", 400);
    will->hide();
    will = mTrayMgr->createLabel(OgreBites::TL_CENTER, "label4", "A/Arrow left key for moving left", 400);
    will->hide();
    mTrayMgr->createButton(OgreBites::TL_CENTER, "back from control", "Back", 400);
}
Esempio n. 3
0
	void MainApplication::createW()
	{
		{
			std::string caption = "Budget restant = 0 ";
			b_r =  m_trayManager->createLabel(OgreBites::TL_CENTER,"Budget_restant",caption,250);	
			OgreBites::Label * info = m_trayManager->createLabel(OgreBites::TL_CENTER,"Info","Vous etes les bleus ",250);
			b_r->hide();
			info->hide();
			OgreBites::Button * valid_armee =  m_trayManager->createButton(OgreBites::TL_CENTER, "Val_armee", "Valider",100) ;
			OgreBites::Button * annul_armee =  m_trayManager->createButton(OgreBites::TL_CENTER, "Annul_armee", "Annuler",100) ;
			valid_armee->hide();
			annul_armee->hide();
		}
		{
			Ogre::StringVector tmp ;
			tmp.push_back("1 VERSUS 1") ;
			tmp.push_back("MASSIVE") ;
			OgreBites::SelectMenu * menu1 = m_trayManager->createThickSelectMenu(OgreBites::TL_CENTER, "Mode", "Choisissez le MODE de jeu", 200, 10, tmp) ;		
			menu1->hide();
		}

		{
			Ogre::StringVector tmp ;
			tmp.push_back("Map 01") ;
			tmp.push_back("Msap 02") ;
			OgreBites::SelectMenu * menu2 = m_trayManager->createThickSelectMenu(OgreBites::TL_CENTER, "Map", "Choisissez la Map", 200, 10, tmp) ;	
			menu2->hide();
		}

		{
			Ogre::StringVector tmp ;
			tmp.push_back("250") ;
			tmp.push_back("500") ;
			tmp.push_back("750") ;
			tmp.push_back("1000") ;
			tmp.push_back("1250") ;
			tmp.push_back("1500") ;
			tmp.push_back("1750") ;
			tmp.push_back("2000") ;
			tmp.push_back("2250") ;
			tmp.push_back("2500") ;
			tmp.push_back("2750") ;
			tmp.push_back("3000") ;

			OgreBites::SelectMenu * menu3 = m_trayManager->createThickSelectMenu(OgreBites::TL_CENTER, "Budget", "Choisissez le budget", 200, 10, tmp) ;		
			menu3->hide();
		}

		{
			OgreBites::Button * val = m_trayManager->createButton(OgreBites::TL_CENTER, "Val", "READY",100) ;	
			val->hide();
		}

		{
			OgreBites::Button * b_H = m_trayManager->createButton(OgreBites::TL_CENTER, "Hippo", "Hippo",100) ;	
			OgreBites::Button * b_C = m_trayManager->createButton(OgreBites::TL_CENTER, "Croco", "Croco",100) ;	
			OgreBites::Button * b_M = m_trayManager->createButton(OgreBites::TL_CENTER, "Moustic", "Moustic",100) ;	
			b_H->hide();
			b_C->hide();
			b_M->hide();
		}
		{
			arme =  m_trayManager->createLabel(OgreBites::TL_CENTER,"Arme","Votre armee est vide",500);		
			arme->hide();
		}
	}