- Timestamp:
- Jun 21, 2006, 11:44:52 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/story_entities/game_menu.cc
r8694 r8696 170 170 if (this->levelsBox == NULL) 171 171 { 172 this->levelsBox = new OrxGui::GLGuiBox( );172 this->levelsBox = new OrxGui::GLGuiBox(OrxGui::Horizontal); 173 173 { 174 OrxGui::GLGuiBox* labelBox = new OrxGui::GLGuiBox(); 175 176 OrxGui::GLGuiImage* image = new OrxGui::GLGuiImage(); 177 image->show(); 178 image->setWidgetSize( 250, 200); 179 image->setAbsCoor2D(400, 150); 180 174 181 const std::list<BaseObject*>* storyEntities = ClassList::getList(CL_STORY_ENTITY); 175 182 std::list<BaseObject*>::const_iterator it; … … 179 186 if( se->isContainedInMenu()) 180 187 { 181 OrxGui::GLGuiImage* image = new OrxGui::GLGuiImage();182 image->show();183 image->setWidgetSize( 250, 200);184 image->setAbsCoor2D(400, 150);185 188 186 189 printf("%s\n", se->getMenuScreenshoot().c_str()); 187 190 OrxGui::GLGuiImageButton* button = new OrxGui::GLGuiImageButton(se->getName(), se->getStoryID(), se->getMenuScreenshoot(), image); 188 191 button->connect(SIGNAL(button, startLevel), this, SLOT(GameMenu, startLevel)); 189 l evelsBox->pack(button);192 labelBox->pack(button); 190 193 191 194 // generating screenshoot item … … 201 204 } 202 205 } 206 207 this->levelsBox->pack(labelBox); 208 this->levelsBox->pack(image); 203 209 } 210 204 211 } 205 212
Note: See TracChangeset
for help on using the changeset viewer.