Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8987 in orxonox.OLD for trunk/src/util


Ignore:
Timestamp:
Jul 1, 2006, 5:08:20 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: multi-lined the weapon-alignment, man, it looks real bad :/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/hud.cc

    r8986 r8987  
    174174
    175175  std::list<OrxGui::GLGuiWidget*>::iterator weaponWidget;
    176   float pos = .3;
    177   for (weaponWidget = this->weaponsWidgets.begin(); weaponWidget != this->weaponsWidgets.end(); weaponWidget++, pos+=.3)
    178   {
    179     (*weaponWidget)->setAbsCoor2D(pos*this->resX, .85*this->resY);
     176  Vector2D pos(0.3, .85);
     177  for (weaponWidget = this->weaponsWidgets.begin(); weaponWidget != this->weaponsWidgets.end(); weaponWidget++, pos.x+=.2)
     178  {
     179    if (pos.x > .8)
     180    {
     181      pos.x = 0.3;
     182      pos.y -= .1;
     183
     184    }
     185    (*weaponWidget)->setAbsCoor2D(pos.x*this->resX, pos.y*this->resY);
    180186    (*weaponWidget)->setWidgetSize(.02*this->resX, .1 *this->resY);
    181187    (*weaponWidget)->show();
Note: See TracChangeset for help on using the changeset viewer.