Changeset 8691 in orxonox.OLD for branches/gui/src/story_entities/game_menu.cc
- Timestamp:
- Jun 21, 2006, 11:29:35 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/story_entities/game_menu.cc
r8689 r8691 35 35 36 36 #include "glgui.h" 37 #include " gui/gl/specials/glgui_notifier.h"37 #include "menu/glgui_imagebutton.h" 38 38 39 39 //! This creates a Factory to fabricate a GameMenu … … 179 179 if( se->isContainedInMenu()) 180 180 { 181 OrxGui::GLGuiWidget* button = new OrxGui::GLGuiPushButton(se->getName()); 181 OrxGui::GLGuiImage* image = new OrxGui::GLGuiImage(); 182 image->show(); 183 image->setWidgetSize( 100, 100); 184 185 printf("%s\n", se->getMenuScreenshoot().c_str()); 186 OrxGui::GLGuiImageButton* button = new OrxGui::GLGuiImageButton(se->getName(), se->getStoryID(), se->getMenuScreenshoot(), image); 187 button->connect(SIGNAL(button, startLevel), this, SLOT(GameMenu, startLevel)); 182 188 levelsBox->pack(button); 183 189 … … 250 256 251 257 252 258 void GameMenu::startLevel(int levelID) 259 { 260 this->setNextStoryID( levelID); 261 this->stop(); 262 } 253 263 254 264 /**
Note: See TracChangeset
for help on using the changeset viewer.