Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 26, 2008, 9:30:36 PM (17 years ago)
Author:
rgrieder
Message:

default values for XMLPort work after all. There was just a bug that got fixed now.

Location:
code/trunk/src/orxonox/overlays/hud
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/overlays/hud/HUDBar.cc

    r1627 r1628  
    5555        BaseObject::XMLPort(xmlElement, mode);
    5656
    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 
    6357        XMLPortParam(BarColour, "colour", setColour, getColour, xmlElement, mode)
    6458            .defaultValues(ColourValue(1.0, 1.0, 1.0, 1.0));
     
    10195            this->bar_->setMaterialName(materialname);
    10296            this->background_->addChild(bar_);
    103 
    104             this->setValue(0.0f);
    105             this->setRightToLeft(false);
    106             this->setAutoColour(true);
    10797        }
    10898
    109         XMLPortParam(HUDBar, "initialValue", setValue,       getValue,       xmlElement, mode).defaultValues(0.0f);
    110         XMLPortParam(HUDBar, "rightToLeft",   setRightToLeft, getRightToLeft, xmlElement, mode).defaultValues(false);
     99        XMLPortParam(HUDBar, "initialValue", setValue,       getValue,       xmlElement, mode).defaultValues(0.4567654f);
     100        XMLPortParam(HUDBar, "rightToLeft",  setRightToLeft, getRightToLeft, xmlElement, mode).defaultValues(false);
    111101        XMLPortParam(HUDBar, "autoColour",   setAutoColour,  getAutoColour,  xmlElement, mode).defaultValues(true);
    112102        XMLPortObject(HUDBar, BarColour, "", addColour, getColour, xmlElement, mode, false, true);
  • code/trunk/src/orxonox/overlays/hud/HUDNavigation.cc

    r1627 r1628  
    9494            // hide at first
    9595            this->setVisible(false);
    96 
    97             this->setFont("Monofur");
    98             this->setTextSize(0.05f);
    99             this->setNavMarkerSize(0.05f);
    100             this->setAimMarkerSize(0.04f);
    10196        }
    10297
  • code/trunk/src/orxonox/overlays/hud/HUDRadar.cc

    r1627 r1628  
    7575            overlay_->add2D(marker_);
    7676            marker_->hide();
    77 
    78             this->setRadarSensitivity(1.0f);
    79             this->setHalfDotSizeDistance(3000.0f);
    80             this->setMaximumDotSize(0.1f);
    8177        }
    8278
Note: See TracChangeset for help on using the changeset viewer.