- Timestamp:
- Aug 9, 2013, 9:26:46 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core6/src/orxonox/controllers/NewHumanController.cc
r9348 r9629 60 60 NewHumanController* NewHumanController::localController_s = 0; 61 61 62 NewHumanController::NewHumanController( BaseObject* creator)63 : HumanController(c reator)62 NewHumanController::NewHumanController(Context* context) 63 : HumanController(context) 64 64 , crossHairOverlay_(NULL) 65 65 , centerOverlay_(NULL) … … 98 98 if (GameMode::showsGraphics()) 99 99 { 100 crossHairOverlay_ = new OrxonoxOverlay(this );100 crossHairOverlay_ = new OrxonoxOverlay(this->getContext()); 101 101 crossHairOverlay_->setBackgroundMaterial("Orxonox/Crosshair3"); 102 102 crossHairOverlay_->setSize(Vector2(overlaySize_, overlaySize_)); … … 104 104 //crossHairOverlay_->setAspectCorrection(true); not working 105 105 106 centerOverlay_ = new OrxonoxOverlay(this );106 centerOverlay_ = new OrxonoxOverlay(this->getContext()); 107 107 centerOverlay_->setBackgroundMaterial("Orxonox/CenterOverlay"); 108 108 centerOverlay_->setSize(Vector2(overlaySize_ * 2.5f, overlaySize_ * 2.5f)); … … 112 112 if (showDamageOverlay_) 113 113 { 114 damageOverlayTop_ = new OrxonoxOverlay(this );114 damageOverlayTop_ = new OrxonoxOverlay(this->getContext()); 115 115 damageOverlayTop_->setBackgroundMaterial("Orxonox/DamageOverlayTop"); 116 116 damageOverlayTop_->setSize(Vector2(overlaySize_ * 2.5f, overlaySize_ * 2.5f)); … … 118 118 damageOverlayTop_->hide(); 119 119 120 damageOverlayRight_ = new OrxonoxOverlay(this );120 damageOverlayRight_ = new OrxonoxOverlay(this->getContext()); 121 121 damageOverlayRight_->setBackgroundMaterial("Orxonox/DamageOverlayRight"); 122 122 damageOverlayRight_->setSize(Vector2(overlaySize_ * 2.5f, overlaySize_ * 2.5f)); … … 124 124 damageOverlayRight_->hide(); 125 125 126 damageOverlayBottom_ = new OrxonoxOverlay(this );126 damageOverlayBottom_ = new OrxonoxOverlay(this->getContext()); 127 127 damageOverlayBottom_->setBackgroundMaterial("Orxonox/DamageOverlayBottom"); 128 128 damageOverlayBottom_->setSize(Vector2(overlaySize_ * 2.5f, overlaySize_ * 2.5f)); … … 130 130 damageOverlayBottom_->hide(); 131 131 132 damageOverlayLeft_ = new OrxonoxOverlay(this );132 damageOverlayLeft_ = new OrxonoxOverlay(this->getContext()); 133 133 damageOverlayLeft_->setBackgroundMaterial("Orxonox/DamageOverlayLeft"); 134 134 damageOverlayLeft_->setSize(Vector2(overlaySize_ * 2.5f, overlaySize_ * 2.5f)); … … 139 139 if (showArrows_) 140 140 { 141 arrowsOverlay1_ = new OrxonoxOverlay(this );141 arrowsOverlay1_ = new OrxonoxOverlay(this->getContext()); 142 142 arrowsOverlay1_->setBackgroundMaterial("Orxonox/DirectionArrows1"); 143 143 arrowsOverlay1_->setSize(Vector2(0.02727f, 0.36f * arrowsSize_)); … … 146 146 arrowsOverlay1_->hide(); 147 147 148 arrowsOverlay2_ = new OrxonoxOverlay(this );148 arrowsOverlay2_ = new OrxonoxOverlay(this->getContext()); 149 149 arrowsOverlay2_->setBackgroundMaterial("Orxonox/DirectionArrows2"); 150 150 arrowsOverlay2_->setSize(Vector2(0.02727f, 0.59f * arrowsSize_)); … … 153 153 arrowsOverlay2_->hide(); 154 154 155 arrowsOverlay3_ = new OrxonoxOverlay(this );155 arrowsOverlay3_ = new OrxonoxOverlay(this->getContext()); 156 156 arrowsOverlay3_->setBackgroundMaterial("Orxonox/DirectionArrows3"); 157 157 arrowsOverlay3_->setSize(Vector2(0.02727f, 0.77f * arrowsSize_)); … … 160 160 arrowsOverlay3_->hide(); 161 161 162 arrowsOverlay4_ = new OrxonoxOverlay(this );162 arrowsOverlay4_ = new OrxonoxOverlay(this->getContext()); 163 163 arrowsOverlay4_->setBackgroundMaterial("Orxonox/DirectionArrows4"); 164 164 arrowsOverlay4_->setSize(Vector2(0.02727f, arrowsSize_));
Note: See TracChangeset
for help on using the changeset viewer.