Changeset 6150 for code/branches/presentation2/src/modules
- Timestamp:
- Nov 25, 2009, 4:52:37 PM (15 years ago)
- Location:
- code/branches/presentation2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2
- Property svn:mergeinfo changed
/code/branches/ingamemenu (added) merged: 6003,6018-6020,6022-6023 /code/branches/menu (added) merged: 5941,5944,5952,6024,6032,6036,6047-6049,6051,6145-6146,6148
- Property svn:mergeinfo changed
-
code/branches/presentation2/src/modules/overlays/GUIOverlay.cc
r5980 r6150 73 73 out << reinterpret_cast<long>(this); 74 74 str = out.str(); 75 GUIManager::getInstance().executeCode("showCursor()"); 76 InputManager::getInstance().enterState("guiMouseOnly"); 77 GUIManager::getInstance().executeCode("showGUI(\"" + this->guiName_ + "\", " + str + ")"); 75 COUT(1) << "GUIManager ptr: " << str << std::endl; 76 GUIManager::getInstance().showGUIExtra(this->guiName_, str); 78 77 79 78 COUT(3) << "Showing GUI " << this->guiName_ << std::endl; … … 81 80 else 82 81 { 83 GUIManager::getInstance().executeCode("hideGUI(\"" + this->guiName_ + "\")"); 84 GUIManager::getInstance().executeCode("hideCursor()"); 85 InputManager::getInstance().leaveState("guiMouseOnly"); 82 GUIManager::hideGUI(this->guiName_); 86 83 COUT(3) << "Hiding GUI " << this->guiName_ << std::endl; 87 84 } -
code/branches/presentation2/src/modules/weapons/weaponmodes/HsW01.cc
r6108 r6150 40 40 #include "weaponsystem/WeaponSystem.h" 41 41 #include "worldentities/WorldEntity.h" 42 #include "worldentities/pawns/Pawn.h" 42 43 43 44 namespace orxonox … … 104 105 void HsW01::shot() 105 106 { 107 assert( this->getWeapon() && this->getWeapon()->getWeaponPack() && this->getWeapon()->getWeaponPack()->getWeaponSystem() && this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn() ); 106 108 Projectile* projectile = new Projectile(this); 107 109 Model* model = new Model(projectile); … … 111 113 model->setScale(5); 112 114 113 this->computeMuzzleParameters( );115 this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition()); 114 116 projectile->setOrientation(this->getMuzzleOrientation()); 115 117 projectile->setPosition(this->getMuzzlePosition());
Note: See TracChangeset
for help on using the changeset viewer.