Update cutscene shortcuts

This commit is contained in:
Marianne Gagnon 2014-06-10 19:59:30 -04:00
parent d6c983cac3
commit 8a4b4ae213
2 changed files with 24 additions and 9 deletions

View File

@ -248,6 +248,8 @@ public:
/** Returns true if a session was saved for this player. */ /** Returns true if a session was saved for this player. */
bool hasSavedSession() const { return m_saved_session; } bool hasSavedSession() const { return m_saved_session; }
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------
StoryModeStatus* getStoryModeStatus() { return m_story_mode_status; }
// ------------------------------------------------------------------------
/** If a session was saved, return the id of the saved user. */ /** If a session was saved, return the id of the saved user. */
int getSavedUserId() const int getSavedUserId() const
{ {

View File

@ -230,12 +230,14 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name,
*/ */
#if DEBUG_MENU_ITEM #if DEBUG_MENU_ITEM
if (selection == "options") if (selection == "gpEditor")
{ {
// The DEBUG item // The DEBUG item
StoryModeStatus* sms = PlayerManager::getCurrentPlayer()->getStoryModeStatus();
sms->unlockFeature(const_cast<ChallengeStatus*>(sms->getChallengeStatus("gp1")),
RaceManager::DIFFICULTY_HARD);
// GP WIN // GP WIN
/*
StateManager::get()->enterGameState(); StateManager::get()->enterGameState();
race_manager->setMinorMode(RaceManager::MINOR_MODE_CUTSCENE); race_manager->setMinorMode(RaceManager::MINOR_MODE_CUTSCENE);
race_manager->setNumKarts(0); race_manager->setNumKarts(0);
@ -246,9 +248,9 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name,
StateManager::get()->pushScreen(scene); StateManager::get()->pushScreen(scene);
const std::string winners[] = { "elephpant", "nolok", "pidgin" }; const std::string winners[] = { "elephpant", "nolok", "pidgin" };
scene->setKarts(winners); scene->setKarts(winners);
*/
// GP Lose // GP Lose
/*
StateManager::get()->enterGameState(); StateManager::get()->enterGameState();
race_manager->setMinorMode(RaceManager::MINOR_MODE_CUTSCENE); race_manager->setMinorMode(RaceManager::MINOR_MODE_CUTSCENE);
race_manager->setNumKarts(0); race_manager->setNumKarts(0);
@ -263,15 +265,26 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name,
//losers.push_back("wilber"); //losers.push_back("wilber");
//losers.push_back("tux"); //losers.push_back("tux");
scene->setKarts(losers); scene->setKarts(losers);
*/
/* /*
// FEATURE UNLOCKED // FEATURE UNLOCKED
StateManager::get()->enterGameState();
race_manager->setMinorMode(RaceManager::MINOR_MODE_CUTSCENE);
race_manager->setNumKarts(0);
race_manager->setNumPlayers(0);
race_manager->setNumLocalPlayers(0);
race_manager->startSingleRace("featunlocked", 999, false);
FeatureUnlockedCutScene* scene = FeatureUnlockedCutScene* scene =
FeatureUnlockedCutScene::getInstance(); FeatureUnlockedCutScene::getInstance();
std::vector<std::string> parts;
parts.push_back("featunlocked");
((CutsceneWorld*)World::getWorld())->setParts(parts);
scene->addTrophy(RaceManager::DIFFICULTY_EASY); scene->addTrophy(RaceManager::DIFFICULTY_EASY);
StateManager::get()->pushScreen(scene); //StateManager::get()->pushScreen(scene);
static int i = 1; static int i = 1;
i++; i++;
@ -295,7 +308,7 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name,
track_manager->getTrack("lighthouse") track_manager->getTrack("lighthouse")
->getScreenshotFile().c_str())); ->getScreenshotFile().c_str()));
textures.push_back(irr_driver->getTexture( textures.push_back(irr_driver->getTexture(
track_manager->getTrack("crescentcrossing") track_manager->getTrack("startrack")
->getScreenshotFile().c_str())); ->getScreenshotFile().c_str()));
textures.push_back(irr_driver->getTexture( textures.push_back(irr_driver->getTexture(
track_manager->getTrack("sandtrack") track_manager->getTrack("sandtrack")
@ -304,7 +317,7 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name,
track_manager->getTrack("snowmountain") track_manager->getTrack("snowmountain")
->getScreenshotFile().c_str())); ->getScreenshotFile().c_str()));
scene->addUnlockedPictures(textures, 1.0, 0.75, L"You did it"); scene->addUnlockedPictures(textures, 4.0, 3.0, L"You did it");
StateManager::get()->pushScreen(scene); StateManager::get()->pushScreen(scene);
} }