diff --git a/data/gui/main.stkgui b/data/gui/main.stkgui index 6d4c5bb8f..e8204d04a 100644 --- a/data/gui/main.stkgui +++ b/data/gui/main.stkgui @@ -35,6 +35,14 @@ + + + + ("info_addons"); w->setScrollSpeed(15); + +#if DEBUG_MENU_ITEM != 1 + RibbonWidget* rw = getWidget("menu_bottomrow"); + rw->removeChildNamed("test_gpwin"); + rw->removeChildNamed("test_gplose"); + rw->removeChildNamed("test_unlocked"); +#endif } // loadedFromFile // ---------------------------------------------------------------------------- @@ -230,14 +237,12 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name, */ #if DEBUG_MENU_ITEM - if (selection == "gpEditor") + if (selection == "test_gpwin") { - // The DEBUG item StoryModeStatus* sms = PlayerManager::getCurrentPlayer()->getStoryModeStatus(); sms->unlockFeature(const_cast(sms->getChallengeStatus("gp1")), RaceManager::DIFFICULTY_HARD); - // GP WIN StateManager::get()->enterGameState(); race_manager->setMinorMode(RaceManager::MINOR_MODE_CUTSCENE); race_manager->setNumKarts(0); @@ -248,9 +253,9 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name, StateManager::get()->pushScreen(scene); const std::string winners[] = { "elephpant", "nolok", "pidgin" }; scene->setKarts(winners); - - // GP Lose - /* + } + else if (selection == "test_gplose") + { StateManager::get()->enterGameState(); race_manager->setMinorMode(RaceManager::MINOR_MODE_CUTSCENE); race_manager->setNumKarts(0); @@ -265,10 +270,13 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name, //losers.push_back("wilber"); //losers.push_back("tux"); scene->setKarts(losers); - */ - - /* - // FEATURE UNLOCKED + } + else if (selection == "test_unlocked" || selection == "test_unlocked2") + { + StoryModeStatus* sms = PlayerManager::getCurrentPlayer()->getStoryModeStatus(); + sms->unlockFeature(const_cast(sms->getChallengeStatus("gp1")), + RaceManager::DIFFICULTY_HARD); + StateManager::get()->enterGameState(); race_manager->setMinorMode(RaceManager::MINOR_MODE_CUTSCENE); race_manager->setNumKarts(0); @@ -284,12 +292,8 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name, ((CutsceneWorld*)World::getWorld())->setParts(parts); scene->addTrophy(RaceManager::DIFFICULTY_EASY); - //StateManager::get()->pushScreen(scene); - static int i = 1; - i++; - - if (i % 2 == 0) + if (selection == "test_unlocked") { // the passed kart will not be modified, that's why I allow myself // to use const_cast @@ -299,9 +303,10 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name, ), L"Unlocked" ); + scene->addUnlockedTrack(track_manager->getTrack("lighthouse")); StateManager::get()->pushScreen(scene); } - else if (i % 2 == 1) + else if (selection == "test_unlocked2") { std::vector textures; textures.push_back(irr_driver->getTexture( @@ -321,7 +326,6 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name, StateManager::get()->pushScreen(scene); } - */ } else #endif