Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 25, 2009, 4:52:37 PM (15 years ago)
Author:
scheusso
Message:

merged menu branch to presentation2 branch with some additional fixes and features ;)

Location:
code/branches/presentation2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2

  • code/branches/presentation2/src/modules/overlays/GUIOverlay.cc

    r5980 r6150  
    7373            out << reinterpret_cast<long>(this);
    7474            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);
    7877
    7978            COUT(3) << "Showing GUI " << this->guiName_ << std::endl;
     
    8180        else
    8281        {
    83             GUIManager::getInstance().executeCode("hideGUI(\"" + this->guiName_ + "\")");
    84             GUIManager::getInstance().executeCode("hideCursor()");
    85             InputManager::getInstance().leaveState("guiMouseOnly");
     82            GUIManager::hideGUI(this->guiName_);
    8683            COUT(3) << "Hiding GUI " << this->guiName_ << std::endl;
    8784        }
  • code/branches/presentation2/src/modules/weapons/weaponmodes/HsW01.cc

    r6108 r6150  
    4040#include "weaponsystem/WeaponSystem.h"
    4141#include "worldentities/WorldEntity.h"
     42#include "worldentities/pawns/Pawn.h"
    4243
    4344namespace orxonox
     
    104105    void HsW01::shot()
    105106    {
     107        assert( this->getWeapon() && this->getWeapon()->getWeaponPack() && this->getWeapon()->getWeaponPack()->getWeaponSystem() && this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn() );
    106108        Projectile* projectile = new Projectile(this);
    107109        Model* model = new Model(projectile);
     
    111113        model->setScale(5);
    112114
    113         this->computeMuzzleParameters();
     115        this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition());
    114116        projectile->setOrientation(this->getMuzzleOrientation());
    115117        projectile->setPosition(this->getMuzzlePosition());
Note: See TracChangeset for help on using the changeset viewer.