Changeset 6122 for code/branches/presentation2/src
- Timestamp:
- Nov 23, 2009, 8:10:03 PM (15 years ago)
- Location:
- code/branches/presentation2/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/core/IOConsole.cc
r6105 r6122 484 484 IOConsole::~IOConsole() 485 485 { 486 // resetTerminalMode(); 487 this->shell_->destroy(); 488 486 489 /* 487 resetTerminalMode();488 this->shell_->destroy();489 490 490 // Enable standard this->cout_ logging again 491 491 OutputHandler::getInstance().enableCout(); -
code/branches/presentation2/src/orxonox/controllers/NewHumanController.cc
r6119 r6122 52 52 NewHumanController* NewHumanController::localController_s = 0; 53 53 54 NewHumanController::NewHumanController(BaseObject* creator) : HumanController(creator) 54 NewHumanController::NewHumanController(BaseObject* creator) 55 : HumanController(creator) 56 , crossHairOverlay_(NULL) 55 57 { 56 58 RegisterObject(NewHumanController); … … 59 61 controlMode_ = 0; 60 62 61 crossHairOverlay_ = new OrxonoxOverlay(this); 62 crossHairOverlay_->setBackgroundMaterial("Orxonox/Crosshair3"); 63 crossHairOverlay_->setSize(Vector2(overlaySize_, overlaySize_)); 64 crossHairOverlay_->show(); 63 if (GameMode::showsGraphics()) 64 { 65 crossHairOverlay_ = new OrxonoxOverlay(this); 66 crossHairOverlay_->setBackgroundMaterial("Orxonox/Crosshair3"); 67 crossHairOverlay_->setSize(Vector2(overlaySize_, overlaySize_)); 68 crossHairOverlay_->show(); 69 } 65 70 66 71 // HACK: Define which objects are targetable when considering the creator of an orxonox::Model … … 76 81 if (this->isInitialized()) 77 82 { 83 if (this->crossHairOverlay_) 84 this->crossHairOverlay_->destroy(); 78 85 } 79 86 } … … 81 88 void NewHumanController::tick(float dt) 82 89 { 83 if( this->controllableEntity_ && !this->controllableEntity_->isInMouseLook() ) 84 { 85 this->crossHairOverlay_->setPosition(Vector2(static_cast<float>(this->currentYaw_)/2*-1+.5-overlaySize_/2, static_cast<float>(this->currentPitch_)/2*-1+.5-overlaySize_/2)); 86 this->crossHairOverlay_->show(); 87 } 88 else 89 this->crossHairOverlay_->hide(); 90 // TODO: update aimPosition of Pawn 90 if (GameMode::showsGraphics()) 91 { 92 if( this->controllableEntity_ && !this->controllableEntity_->isInMouseLook() ) 93 { 94 this->crossHairOverlay_->setPosition(Vector2(static_cast<float>(this->currentYaw_)/2*-1+.5-overlaySize_/2, static_cast<float>(this->currentPitch_)/2*-1+.5-overlaySize_/2)); 95 this->crossHairOverlay_->show(); 96 } 97 else 98 this->crossHairOverlay_->hide(); 99 // TODO: update aimPosition of Pawn 100 } 91 101 92 102 HumanController::tick(dt);
Note: See TracChangeset
for help on using the changeset viewer.