Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9882


Ignore:
Timestamp:
Dec 9, 2013, 2:26:10 PM (10 years ago)
Author:
wroennin
Message:

added XMLProt for detectionLimit_

Location:
code/branches/radarDreiD
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/radarDreiD/data/overlays/HUDTemplates3.oxo

    r9877 r9882  
    122122     sensitivity                        = 1.0
    123123     halfDotSizeDistance        = 3000
     124     detectionLimit             = 10000.0
    124125     maximumDotSize             = 0.1
    125126     maximumDotSize3D           = 0.06
  • code/branches/radarDreiD/src/modules/overlays/hud/HUDRadar.cc

    r9877 r9882  
    6868        this->shapeMaterials_[RadarViewable::Triangle] = "RadarTriangle.png";
    6969        this->shapeMaterials_[RadarViewable::Square]   = "RadarSquare.png";
    70         this->setDetectionLimit( 10000.0f );
    7170        this->owner_ = 0;
    7271
     
    121120        XMLPortParam(HUDRadar, "material3DBack", set3DMaterialBack, get3DMaterialBack, xmlelement, mode);
    122121        XMLPortParam(HUDRadar, "mapAngle3D", setMapAngle, getMapAngle, xmlelement, mode);
    123 
    124 
    125 
     122        XMLPortParam(HUDRadar, "detectionLimit", setDetectionLimit, getDetectionLimit, xmlelement, mode);
    126123    }
    127124
  • code/branches/radarDreiD/src/modules/overlays/hud/HUDRadar.h

    r9847 r9882  
    5959        void setHalfDotSizeDistance(float distance) { this->halfDotSizeDistance_ = distance; }
    6060
    61         void setDetectionLimit( float limit )
    62         { this->detectionLimit_ = limit; }
    63         float getDetectionLimit() const
    64         { return this->detectionLimit_; }
     61        void setDetectionLimit( float limit ) { this->detectionLimit_ = limit; }
     62        float getDetectionLimit() const { return this->detectionLimit_; }
    6563
    6664        float getMaximumDotSize() const { return this->maximumDotSize_; }
Note: See TracChangeset for help on using the changeset viewer.