Jeck - More fixes to r1827.

This commit is contained in:
wagic.jeck
2010-02-08 09:05:09 +00:00
parent a747d4ef1d
commit 76f012cc99
3 changed files with 23 additions and 4 deletions

View File

@@ -57,6 +57,7 @@ enum
SUBMENUITEM_CLASSIC,
SUBMENUITEM_RANDOM1,
SUBMENUITEM_RANDOM2,
SUBMENUITEM_PEASANT,
};
@@ -452,9 +453,11 @@ void GameStateMenu::Update(float dt)
subMenuController->Add(SUBMENUITEM_RANDOM1, "Random 1 Color");
subMenuController->Add(SUBMENUITEM_RANDOM2, "Random 2 Colors");
}
if(true)
subMenuController->Add(SUBMENUITEM_PEASANT, "Peasant's Magic");
subMenuController->Add(SUBMENUITEM_CANCEL, "Cancel");
}
}else{
}else{
mParent->DoTransition(TRANSITION_FADE,GAME_STATE_DUEL);
currentState = MENU_STATE_MAJOR_MAINMENU;
}
@@ -670,6 +673,12 @@ JLBFont * mFont = resources.GetJLBFont(Constants::MENU_FONT);
subMenuController->Close();
currentState = MENU_STATE_MAJOR_DUEL | MENU_STATE_MINOR_SUBMENU_CLOSING;
break;
case SUBMENUITEM_PEASANT:
this->hasChosenGameType = 1;
mParent->gameType = GAME_TYPE_PEASANT;
subMenuController->Close();
currentState = MENU_STATE_MAJOR_DUEL | MENU_STATE_MINOR_SUBMENU_CLOSING;
break;
#ifdef TESTSUITE
case SUBMENUITEM_TESTSUITE:
mParent->players[0] = PLAYER_TYPE_TESTSUITE;