Changeset 6756 in orxonox.OLD for trunk/src/util
- Timestamp:
- Jan 26, 2006, 1:55:40 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/hud.cc
r6671 r6756 154 154 std::list<GLGuiWidget*>::iterator weaponWidget; 155 155 float pos = .2; 156 bool test = true; 157 for (weaponWidget = this->weaponsWidgets.begin(); weaponWidget != this->weaponsWidgets.end(); weaponWidget++, pos+=.03, test = !test) 156 for (weaponWidget = this->weaponsWidgets.begin(); weaponWidget != this->weaponsWidgets.end(); weaponWidget++, pos+=.03) 158 157 { 159 if (test)160 {161 158 (*weaponWidget)->setSize2D(.02*this->resX, .2 *this->resY); 162 159 (*weaponWidget)->setAbsCoor2D(pos*this->resX, .75*this->resY); 163 } 164 else 165 { 166 (*weaponWidget)->setSize2D(.02*this->resX, .17*this->resY); 167 (*weaponWidget)->setAbsCoor2D((pos-.008)*this->resX, .75*this->resY); 168 } 160 169 161 } 170 162 }
Note: See TracChangeset
for help on using the changeset viewer.