Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2887 for code


Ignore:
Timestamp:
Apr 2, 2009, 5:03:16 PM (16 years ago)
Author:
bknecht
Message:

first part of finishing up to merge back. solving some issues I ran into with Lua

Location:
code/branches/gui/src/orxonox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/orxonox/gamestates/GSLevel.cc

    r2875 r2887  
    133133            InputManager::getInstance().setKeyDetectorCallback(std::string("keybind ") + keyDetectorCallbackCode_);
    134134
    135             // InGame GUI test
    136             GUIManager::getInstance().showGUI("inGameTest");
    137 
    138135            // level is loaded: we can start capturing the input
    139136            InputManager::getInstance().requestEnterState("game");
     
    143140    void GSLevel::showIngameGUI(bool show)
    144141    {
    145         COUT(0) << "*** Call works with \"" << (show ? "true" : "false") << "\" as param" << std::endl;
    146142        if (show)
    147143        {
    148144            GUIManager::getInstancePtr()->showGUI("inGameTest");
     145            GUIManager::getInstancePtr()->executeCode("showCursor()");
    149146            InputManager::getInstance().requestEnterState("guiMouseOnly");
    150147        }
    151148        else
    152149        {
    153             GUIManager::getInstancePtr()->executeCode("hideGUI(inGameTest)");
     150            GUIManager::getInstancePtr()->executeCode("hideGUI(\"inGameTest\")");
     151            GUIManager::getInstancePtr()->executeCode("hideCursor()");
    154152            InputManager::getInstance().requestLeaveState("guiMouseOnly");
    155153        }
  • code/branches/gui/src/orxonox/gamestates/GSMainMenu.cc

    r2869 r2887  
    8686        InputManager::getInstance().requestDestroyState("mainMenu");
    8787
     88/*
    8889        if (this->ccStartGame_)
    8990        {
     
    9192            this->ccStartGame_ = 0;
    9293        }
     94*/
    9395    }
    9496
  • code/branches/gui/src/orxonox/gui/GUIManager.cc

    r2875 r2887  
    250250    /**
    251251    @brief
    252         Debug function to give CEGUI the possibility to output on our console
    253     @param
    254         String to be displaed in CEGUI's name
    255 
    256         This function should be removed as it only provides a quick (and dirty) possibility to access the output on the console.
    257         CEGUI's output should be put into the cegui.log using the CEGUI Logger.
    258     */
    259     void GUIManager::testOutput(std::string& str)
    260     {
    261         COUT(0) << "*** CEGUI: " << str << std::endl;
    262     }
    263 
    264     /**
    265     @brief
    266252        Displays specified GUI on screen
    267253    @param name
  • code/branches/gui/src/orxonox/gui/GUIManager.h

    r2875 r2887  
    8989        void setCamera(Ogre::Camera* camera);
    9090
    91         void testOutput(std::string& str); // tolua_export
    92 
    9391        static GUIManager& getInstance()    { assert(singletonRef_s); return *singletonRef_s; } // tolua_export
    9492        static GUIManager* getInstancePtr() { return singletonRef_s; }
Note: See TracChangeset for help on using the changeset viewer.