- Timestamp:
- Jul 1, 2006, 5:08:20 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/hud.cc
r8986 r8987 174 174 175 175 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); 180 186 (*weaponWidget)->setWidgetSize(.02*this->resX, .1 *this->resY); 181 187 (*weaponWidget)->show();
Note: See TracChangeset
for help on using the changeset viewer.