Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

File:
1 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        }
Note: See TracChangeset for help on using the changeset viewer.