forked from teamnwah/openmw-tes3coop
Removed unnecessary methods.
This commit is contained in:
parent
2bf29c17f5
commit
e39f700372
2 changed files with 0 additions and 40 deletions
|
@ -476,17 +476,6 @@ const std::string &WindowManager::getGameSettingString(const std::string &id, co
|
||||||
return default_;
|
return default_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void WindowManager::updateCharacterGeneration()
|
|
||||||
{
|
|
||||||
if (raceDialog)
|
|
||||||
{
|
|
||||||
// TOOD: Uncomment when methods in mechanics manager is implemented
|
|
||||||
//raceDialog->setRace(environment.mMechanicsManager->getPlayerRace());
|
|
||||||
//raceDialog->setGender(environment.mMechanicsManager->getPlayerMale() ? RaceDialog::GM_Male : RaceDialog::GM_Female);
|
|
||||||
// TODO: Face/Hair
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void WindowManager::onNameDialogDone()
|
void WindowManager::onNameDialogDone()
|
||||||
{
|
{
|
||||||
if (nameDialog)
|
if (nameDialog)
|
||||||
|
@ -498,8 +487,6 @@ void WindowManager::onNameDialogDone()
|
||||||
bool goNext = nameChosen; // Go to next dialog if name was previously chosen
|
bool goNext = nameChosen; // Go to next dialog if name was previously chosen
|
||||||
nameChosen = true;
|
nameChosen = true;
|
||||||
|
|
||||||
updateCharacterGeneration();
|
|
||||||
|
|
||||||
if (reviewNext)
|
if (reviewNext)
|
||||||
setGuiMode(GM_Review);
|
setGuiMode(GM_Review);
|
||||||
else if (goNext)
|
else if (goNext)
|
||||||
|
@ -521,8 +508,6 @@ void WindowManager::onRaceDialogDone()
|
||||||
bool goNext = raceChosen; // Go to next dialog if race was previously chosen
|
bool goNext = raceChosen; // Go to next dialog if race was previously chosen
|
||||||
raceChosen = true;
|
raceChosen = true;
|
||||||
|
|
||||||
updateCharacterGeneration();
|
|
||||||
|
|
||||||
if (reviewNext)
|
if (reviewNext)
|
||||||
setGuiMode(GM_Review);
|
setGuiMode(GM_Review);
|
||||||
else if (goNext)
|
else if (goNext)
|
||||||
|
@ -541,8 +526,6 @@ void WindowManager::onRaceDialogBack()
|
||||||
removeDialog(raceDialog);
|
removeDialog(raceDialog);
|
||||||
}
|
}
|
||||||
|
|
||||||
updateCharacterGeneration();
|
|
||||||
|
|
||||||
setGuiMode(GM_Name);
|
setGuiMode(GM_Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -650,8 +633,6 @@ void WindowManager::onGenerateClassBack()
|
||||||
removeDialog(generateClassResultDialog);
|
removeDialog(generateClassResultDialog);
|
||||||
environment.mMechanicsManager->setPlayerClass(generateClass);
|
environment.mMechanicsManager->setPlayerClass(generateClass);
|
||||||
|
|
||||||
updateCharacterGeneration();
|
|
||||||
|
|
||||||
setGuiMode(GM_Class);
|
setGuiMode(GM_Class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -664,8 +645,6 @@ void WindowManager::onGenerateClassDone()
|
||||||
removeDialog(generateClassResultDialog);
|
removeDialog(generateClassResultDialog);
|
||||||
environment.mMechanicsManager->setPlayerClass(generateClass);
|
environment.mMechanicsManager->setPlayerClass(generateClass);
|
||||||
|
|
||||||
updateCharacterGeneration();
|
|
||||||
|
|
||||||
if (reviewNext)
|
if (reviewNext)
|
||||||
setGuiMode(GM_Review);
|
setGuiMode(GM_Review);
|
||||||
else if (goNext)
|
else if (goNext)
|
||||||
|
@ -688,8 +667,6 @@ void WindowManager::onPickClassDialogDone()
|
||||||
bool goNext = classChosen; // Go to next dialog if class was previously chosen
|
bool goNext = classChosen; // Go to next dialog if class was previously chosen
|
||||||
classChosen = true;
|
classChosen = true;
|
||||||
|
|
||||||
updateCharacterGeneration();
|
|
||||||
|
|
||||||
if (reviewNext)
|
if (reviewNext)
|
||||||
setGuiMode(GM_Review);
|
setGuiMode(GM_Review);
|
||||||
else if (goNext)
|
else if (goNext)
|
||||||
|
@ -708,8 +685,6 @@ void WindowManager::onPickClassDialogBack()
|
||||||
removeDialog(pickClassDialog);
|
removeDialog(pickClassDialog);
|
||||||
}
|
}
|
||||||
|
|
||||||
updateCharacterGeneration();
|
|
||||||
|
|
||||||
setGuiMode(GM_Class);
|
setGuiMode(GM_Class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -746,8 +721,6 @@ void WindowManager::onCreateClassDialogDone()
|
||||||
bool goNext = classChosen; // Go to next dialog if class was previously chosen
|
bool goNext = classChosen; // Go to next dialog if class was previously chosen
|
||||||
classChosen = true;
|
classChosen = true;
|
||||||
|
|
||||||
updateCharacterGeneration();
|
|
||||||
|
|
||||||
if (reviewNext)
|
if (reviewNext)
|
||||||
setGuiMode(GM_Review);
|
setGuiMode(GM_Review);
|
||||||
else if (goNext)
|
else if (goNext)
|
||||||
|
@ -761,8 +734,6 @@ void WindowManager::onCreateClassDialogBack()
|
||||||
if (createClassDialog)
|
if (createClassDialog)
|
||||||
removeDialog(createClassDialog);
|
removeDialog(createClassDialog);
|
||||||
|
|
||||||
updateCharacterGeneration();
|
|
||||||
|
|
||||||
setGuiMode(GM_Class);
|
setGuiMode(GM_Class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -777,8 +748,6 @@ void WindowManager::onBirthSignDialogDone()
|
||||||
bool goNext = birthSignChosen; // Go to next dialog if birth sign was previously chosen
|
bool goNext = birthSignChosen; // Go to next dialog if birth sign was previously chosen
|
||||||
birthSignChosen = true;
|
birthSignChosen = true;
|
||||||
|
|
||||||
updateCharacterGeneration();
|
|
||||||
|
|
||||||
if (reviewNext || goNext)
|
if (reviewNext || goNext)
|
||||||
setGuiMode(GM_Review);
|
setGuiMode(GM_Review);
|
||||||
else
|
else
|
||||||
|
@ -793,8 +762,6 @@ void WindowManager::onBirthSignDialogBack()
|
||||||
removeDialog(birthSignDialog);
|
removeDialog(birthSignDialog);
|
||||||
}
|
}
|
||||||
|
|
||||||
updateCharacterGeneration();
|
|
||||||
|
|
||||||
setGuiMode(GM_Class);
|
setGuiMode(GM_Class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -803,8 +770,6 @@ void WindowManager::onReviewDialogDone()
|
||||||
if (reviewDialog)
|
if (reviewDialog)
|
||||||
removeDialog(reviewDialog);
|
removeDialog(reviewDialog);
|
||||||
|
|
||||||
updateCharacterGeneration();
|
|
||||||
|
|
||||||
setGuiMode(GM_Game);
|
setGuiMode(GM_Game);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -813,7 +778,5 @@ void WindowManager::onReviewDialogBack()
|
||||||
if (reviewDialog)
|
if (reviewDialog)
|
||||||
removeDialog(reviewDialog);
|
removeDialog(reviewDialog);
|
||||||
|
|
||||||
updateCharacterGeneration();
|
|
||||||
|
|
||||||
setGuiMode(GM_Birth);
|
setGuiMode(GM_Birth);
|
||||||
}
|
}
|
||||||
|
|
|
@ -248,9 +248,6 @@ namespace MWGui
|
||||||
const std::string &getGameSettingString(const std::string &id, const std::string &default_);
|
const std::string &getGameSettingString(const std::string &id, const std::string &default_);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void updateCharacterGeneration();
|
|
||||||
void checkCharacterGeneration(GuiMode mode);
|
|
||||||
|
|
||||||
// Character generation: Name dialog
|
// Character generation: Name dialog
|
||||||
void onNameDialogDone();
|
void onNameDialogDone();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue