Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 9, 2009, 4:54:31 PM (15 years ago)
Author:
scheusso
Message:

2 new console commands (startIOConsole, printObjects)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/orxonox/gamestates/GSMainMenu.cc

    r5910 r5918  
    5757        // create an empty Scene
    5858        this->scene_ = new Scene(NULL);
     59        this->scene_->setSyncMode( 0x0 );
    5960        // and a Camera
    6061        this->camera_ = this->scene_->getSceneManager()->createCamera("mainMenu/Camera");
     
    9091        CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(createFunctor(&GSMainMenu::startDedicated, this), "startDedicated"));
    9192        CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(createFunctor(&GSMainMenu::startMainMenu, this), "startMainMenu"));
     93        CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(createFunctor(&GSMainMenu::startIOConsole, this), "startIOConsole"));
    9294
    9395        KeyBinderManager::getInstance().setToDefault();
     
    153155        Game::getInstance().requestStates("mainmenu");
    154156    }
     157    void GSMainMenu::startIOConsole()
     158    {
     159        // HACK - HACK
     160        Game::getInstance().popState();
     161        Game::getInstance().popState();
     162        Game::getInstance().requestStates("ioConsole");
     163    }
    155164}
Note: See TracChangeset for help on using the changeset viewer.