Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2958 for code/trunk/src


Ignore:
Timestamp:
May 9, 2009, 10:08:45 PM (16 years ago)
Author:
dafrick
Message:

Changed some stuff to make it compile. Not sure it's 100% failsafe though.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/overlays/GUIOverlay.cc

    r2957 r2958  
    2929#include "GUIOverlay.h"
    3030#include "OrxonoxStableHeaders.h"
     31#include <string>
     32#include <sstream>
     33#include "core/input/InputManager.h"
    3134
    3235#include "../gui/GUIManager.h"
     
    5659        SUPER(GUIOverlay, changedVisibility);
    5760
     61        COUT(1) << "Somethings happened!!!" << std::endl;
     62
    5863        if (this->isVisible())
    59             GUIManager::getInstancePtr()->executeCode("showGUI(\"" + this->guiName_ + "\", " + this + ")");
     64        {
     65            std::string str;
     66            std::stringstream out;
     67            out << (long)this;
     68            str = out.str();
     69            COUT(1) << str << std::endl;
     70            GUIManager::getInstancePtr()->executeCode("showCursor()");
     71            InputManager::getInstance().requestEnterState("guiMouseOnly");
     72            GUIManager::getInstancePtr()->executeCode("showGUI(\"" + this->guiName_ + "\", " + str + ")");
     73        }
    6074        else
     75        {
    6176            GUIManager::getInstancePtr()->executeCode("hideGUI(\"" + this->guiName_ + "\")");
     77            GUIManager::getInstancePtr()->executeCode("hideCursor()");
     78            InputManager::getInstance().requestLeaveState("guiMouseOnly");
     79        }
    6280    }
    6381
Note: See TracChangeset for help on using the changeset viewer.