|
|
@ -431,9 +431,11 @@ namespace MWDialogue
|
|
|
|
|
|
|
|
|
|
|
|
void DialogueManager::addChoice (const std::string& text, int choice)
|
|
|
|
void DialogueManager::addChoice (const std::string& text, int choice)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mIsInChoice = true;
|
|
|
|
if (!mGoodbye)
|
|
|
|
|
|
|
|
{
|
|
|
|
mChoices.push_back(std::make_pair(text, choice));
|
|
|
|
mIsInChoice = true;
|
|
|
|
|
|
|
|
mChoices.push_back(std::make_pair(text, choice));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const std::vector<std::pair<std::string, int> >& DialogueManager::getChoices()
|
|
|
|
const std::vector<std::pair<std::string, int> >& DialogueManager::getChoices()
|
|
|
@ -448,8 +450,8 @@ namespace MWDialogue
|
|
|
|
|
|
|
|
|
|
|
|
void DialogueManager::goodbye()
|
|
|
|
void DialogueManager::goodbye()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mIsInChoice = false;
|
|
|
|
if (!mIsInChoice)
|
|
|
|
mGoodbye = true;
|
|
|
|
mGoodbye = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void DialogueManager::persuade(int type, ResponseCallback* callback)
|
|
|
|
void DialogueManager::persuade(int type, ResponseCallback* callback)
|
|
|
|