Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9014 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Jul 2, 2006, 2:50:47 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: autoselect first entries in the Menu

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/menu/game_menu.cc

    r8742 r9014  
    145145      startButton->connect(SIGNAL(startButton, released), this, SLOT(GameMenu, showCampaigns));
    146146      this->mainMenuBox->pack(startButton);
     147      startButton->select();
    147148
    148149      OrxGui::GLGuiButton* networkButton = new OrxGui::GLGuiPushButton("MultiPlayer");
     
    162163  this->mainMenuBox->showAll();
    163164
     165
    164166  this->mainMenuBox->setRelCoor2D(200, 100);
    165167}
     
    182184      const std::list<BaseObject*>* storyEntities = ClassList::getList(CL_STORY_ENTITY);
    183185      std::list<BaseObject*>::const_iterator it;
     186      bool first = true;
    184187      for( it = storyEntities->begin(); it != storyEntities->end(); it++)
    185188      {
     
    192195          button->connect(SIGNAL(button, startLevel), this, SLOT(GameMenu, startLevel));
    193196          labelBox->pack(button);
     197
     198          if (first)
     199          {
     200            first = !first;
     201            button->select();
     202          }
    194203
    195204          // generating screenshoot item
  • trunk/src/util/hud.cc

    r9003 r9014  
    189189    this->_radar->setAbsCoor2D(0.8 * this->resX, 0.01 * this->resY);
    190190    this->_radar->setWidgetSize(0.2 * this->resX, 0.2 * this->resY);
     191    this->_radar->setRange(300);
    191192    this->_radar->show();
    192193  }
  • trunk/src/world_entities/elements/glgui_energywidget.cc

    r8991 r9014  
    1010
    1111   ### File Specific:
    12    main-programmer: ...
     12   main-programmer: Benjamin Grauer
    1313   co-programmer: ...
    1414*/
  • trunk/src/world_entities/elements/glgui_radar.cc

    r9003 r9014  
    7575        break;
    7676      }
     77  }
     78
     79
     80  void GLGuiRadar::setRange(float range)
     81  {
     82    this->_range = range;
    7783  }
    7884
Note: See TracChangeset for help on using the changeset viewer.