Permalink
Browse files

Update cutscene shortcuts

  • Loading branch information...
1 parent d6c983c commit 8a4b4ae213c6b36e2b0789395ed3c2c0773de713 @auriamg auriamg committed Jun 10, 2014
Showing with 24 additions and 9 deletions.
  1. +2 −0 src/config/player_profile.hpp
  2. +22 −9 src/states_screens/main_menu_screen.cpp
@@ -248,6 +248,8 @@ class PlayerProfile : public NoCopy
/** Returns true if a session was saved for this player. */
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. */
int getSavedUserId() const
{
@@ -230,12 +230,14 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name,
*/
#if DEBUG_MENU_ITEM
- if (selection == "options")
+ if (selection == "gpEditor")
{
// The DEBUG item
+ StoryModeStatus* sms = PlayerManager::getCurrentPlayer()->getStoryModeStatus();
+ sms->unlockFeature(const_cast<ChallengeStatus*>(sms->getChallengeStatus("gp1")),
+ RaceManager::DIFFICULTY_HARD);
// GP WIN
- /*
StateManager::get()->enterGameState();
race_manager->setMinorMode(RaceManager::MINOR_MODE_CUTSCENE);
race_manager->setNumKarts(0);
@@ -246,9 +248,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
+ /*
StateManager::get()->enterGameState();
race_manager->setMinorMode(RaceManager::MINOR_MODE_CUTSCENE);
race_manager->setNumKarts(0);
@@ -263,15 +265,26 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name,
//losers.push_back("wilber");
//losers.push_back("tux");
scene->setKarts(losers);
-
+ */
/*
// 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::getInstance();
+ FeatureUnlockedCutScene::getInstance();
+
+ std::vector<std::string> parts;
+ parts.push_back("featunlocked");
+ ((CutsceneWorld*)World::getWorld())->setParts(parts);
scene->addTrophy(RaceManager::DIFFICULTY_EASY);
- StateManager::get()->pushScreen(scene);
+ //StateManager::get()->pushScreen(scene);
static int i = 1;
i++;
@@ -295,7 +308,7 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name,
track_manager->getTrack("lighthouse")
->getScreenshotFile().c_str()));
textures.push_back(irr_driver->getTexture(
- track_manager->getTrack("crescentcrossing")
+ track_manager->getTrack("startrack")
->getScreenshotFile().c_str()));
textures.push_back(irr_driver->getTexture(
track_manager->getTrack("sandtrack")
@@ -304,11 +317,11 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name,
track_manager->getTrack("snowmountain")
->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);
}
- */
+ */
}
else
#endif

0 comments on commit 8a4b4ae

Please sign in to comment.