Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9852 for code/branches


Ignore:
Timestamp:
Dec 2, 2013, 3:42:24 PM (11 years ago)
Author:
wroennin
Message:

fixed showing bug of the two overlay elements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/radarDreiD/src/modules/overlays/hud/HUDRadar.cc

    r9847 r9852  
    7575        this->map3DFront_->setMaterialName("Orxonox/Radar3DFront");
    7676        this->overlay_->add2D(this->map3DFront_);
    77         //this->map3DFront_->_setDimensions(0.17f, 0.17f);
    78         //this->map3DFront_->_setPosition(1.0, 1.0);
    79         //this->map3DFront_->_notifyZOrder(this->overlay_->getZOrder() * 100 + 10);
    8077        this->map3DFront_->hide();
    8178
     
    8481        this->map3DBack_->setMaterialName("Orxonox/Radar3DBack");
    8582        this->overlay_->add2D(this->map3DBack_);
    86         //this->map3DBack_->_setDimensions(0.17f, 0.17f);
    87         //this->map3DBack_->_setPosition(1.0, 1.0);
    88         //this->map3DBack_->_notifyZOrder(this->overlay_->getZOrder() * 100 - 10);
    8983        this->map3DBack_->hide();
    9084
     
    199193        {
    200194                this->setBackgroundMaterial(material3D_);
     195                this->map3DFront_->_notifyZOrder(this->overlay_->getZOrder() * 100 + 10);
     196                this->map3DBack_->_notifyZOrder(this->overlay_->getZOrder() * 100 - 10);
    201197                this->map3DFront_->show();
    202198                this->map3DBack_->show();
    203199        }
    204200        else
     201        {
    205202                this->setBackgroundMaterial(material2D_);
    206203                this->map3DFront_->hide();
    207204                this->map3DBack_->hide();
    208 
     205        }
    209206
    210207        for( it = this->radarObjects_.begin(); it != this->radarObjects_.end(); ++it )
Note: See TracChangeset for help on using the changeset viewer.