Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8696 in orxonox.OLD


Ignore:
Timestamp:
Jun 21, 2006, 11:44:52 PM (18 years ago)
Author:
bensch
Message:

better image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/story_entities/game_menu.cc

    r8694 r8696  
    170170  if (this->levelsBox == NULL)
    171171  {
    172     this->levelsBox = new OrxGui::GLGuiBox();
     172    this->levelsBox = new OrxGui::GLGuiBox(OrxGui::Horizontal);
    173173    {
     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
    174181      const std::list<BaseObject*>* storyEntities = ClassList::getList(CL_STORY_ENTITY);
    175182      std::list<BaseObject*>::const_iterator it;
     
    179186        if( se->isContainedInMenu())
    180187        {
    181           OrxGui::GLGuiImage* image = new OrxGui::GLGuiImage();
    182           image->show();
    183           image->setWidgetSize( 250, 200);
    184           image->setAbsCoor2D(400, 150);
    185188
    186189          printf("%s\n", se->getMenuScreenshoot().c_str());
    187190          OrxGui::GLGuiImageButton* button = new OrxGui::GLGuiImageButton(se->getName(), se->getStoryID(), se->getMenuScreenshoot(), image);
    188191          button->connect(SIGNAL(button, startLevel), this, SLOT(GameMenu, startLevel));
    189           levelsBox->pack(button);
     192          labelBox->pack(button);
    190193
    191194          // generating screenshoot item
     
    201204        }
    202205      }
     206
     207      this->levelsBox->pack(labelBox);
     208      this->levelsBox->pack(image);
    203209    }
     210
    204211  }
    205212
Note: See TracChangeset for help on using the changeset viewer.