Changeset 1628 for code/trunk/src/orxonox/overlays/hud
- Timestamp:
- Jun 26, 2008, 9:30:36 PM (17 years ago)
- Location:
- code/trunk/src/orxonox/overlays/hud
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/overlays/hud/HUDBar.cc
r1627 r1628 55 55 BaseObject::XMLPort(xmlElement, mode); 56 56 57 if (mode == XMLPort::LoadObject)58 {59 this->setColour(ColourValue(1.0, 1.0, 1.0, 1.0));60 this->setPosition(0.0f);61 }62 63 57 XMLPortParam(BarColour, "colour", setColour, getColour, xmlElement, mode) 64 58 .defaultValues(ColourValue(1.0, 1.0, 1.0, 1.0)); … … 101 95 this->bar_->setMaterialName(materialname); 102 96 this->background_->addChild(bar_); 103 104 this->setValue(0.0f);105 this->setRightToLeft(false);106 this->setAutoColour(true);107 97 } 108 98 109 XMLPortParam(HUDBar, "initialValue", setValue, getValue, xmlElement, mode).defaultValues(0. 0f);110 XMLPortParam(HUDBar, "rightToLeft", 99 XMLPortParam(HUDBar, "initialValue", setValue, getValue, xmlElement, mode).defaultValues(0.4567654f); 100 XMLPortParam(HUDBar, "rightToLeft", setRightToLeft, getRightToLeft, xmlElement, mode).defaultValues(false); 111 101 XMLPortParam(HUDBar, "autoColour", setAutoColour, getAutoColour, xmlElement, mode).defaultValues(true); 112 102 XMLPortObject(HUDBar, BarColour, "", addColour, getColour, xmlElement, mode, false, true); -
code/trunk/src/orxonox/overlays/hud/HUDNavigation.cc
r1627 r1628 94 94 // hide at first 95 95 this->setVisible(false); 96 97 this->setFont("Monofur");98 this->setTextSize(0.05f);99 this->setNavMarkerSize(0.05f);100 this->setAimMarkerSize(0.04f);101 96 } 102 97 -
code/trunk/src/orxonox/overlays/hud/HUDRadar.cc
r1627 r1628 75 75 overlay_->add2D(marker_); 76 76 marker_->hide(); 77 78 this->setRadarSensitivity(1.0f);79 this->setHalfDotSizeDistance(3000.0f);80 this->setMaximumDotSize(0.1f);81 77 } 82 78
Note: See TracChangeset
for help on using the changeset viewer.