Changeset 10693 in orxonox.OLD for branches/hud/src/util
- Timestamp:
- Jun 14, 2007, 1:20:36 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/hud/src/util/hud.cc
r10685 r10693 183 183 { 184 184 this->healthWidget = new OrxGui::GLGuiBar(); 185 this->healthWidget->setMaximum(widget->getBarWidget()->maximum());186 this->healthWidget->setValue(widget->getBarWidget()->value());187 185 dynamic_cast<OrxGui::GLGuiBar*> (this->healthWidget)->setMaximum(dynamic_cast<OrxGui::GLGuiEnergyWidgetVertical*> (widget)->getBarWidget()->maximum()); 186 dynamic_cast<OrxGui::GLGuiBar*> (this->healthWidget)->setValue(dynamic_cast<OrxGui::GLGuiEnergyWidgetVertical*> (widget)->getBarWidget()->value()); 187 this->healthWidget->setParent2D(this->barSocket); 188 188 } 189 189 else
Note: See TracChangeset
for help on using the changeset viewer.