Jeck - Deck editor no longer asks for a name for new decks. Use the rename option instead.

This commit is contained in:
wagic.jeck
2009-09-24 00:36:31 +00:00
parent b4d261de2f
commit 6557c64bc0
-17
View File
@@ -222,11 +222,6 @@ void GameStateDeckViewer::Update(float dt)
} }
mStage = STAGE_WAITING; mStage = STAGE_WAITING;
} }
//They cancelled, so dump them back to where they were.
else {
updateDecks();
mStage = STAGE_WELCOME;
}
newDeckname = ""; newDeckname = "";
} }
//Prevent screen from updating. //Prevent screen from updating.
@@ -739,18 +734,6 @@ void GameStateDeckViewer::ButtonPressed(int controllerId, int controlId)
mParent->SetNextState(GAME_STATE_MENU); mParent->SetNextState(GAME_STATE_MENU);
break; break;
} }
else if(controlId == nbDecks+1){
char buf[512];
deckNum = controlId;
sprintf(buf,"deck%i",deckNum);
options.keypadStart(buf,&newDeckname);
options.keypadTitle("Deck name");
loadDeck(controlId);
deckNum = controlId;
//Doesn't fallthrough to deck editing.
//Only change states when keypad finished.
break;
}
loadDeck(controlId); loadDeck(controlId);
mStage = STAGE_WAITING; mStage = STAGE_WAITING;
deckNum = controlId; deckNum = controlId;