[Client] Update topics in current dialogue screen when receiving PlayerTopic packets

pull/249/merge
David Cernat 8 years ago
parent 461ab790e2
commit 906b263a2d

@ -81,6 +81,16 @@ namespace MWBase
/// Removes the last added topic response for the given actor from the journal
virtual void clearInfoActor (const MWWorld::Ptr& actor) const = 0;
/*
Start of tes3mp addition
Declare this method here so it can be used from outside of MWDialogue::DialogueManager
*/
virtual void updateTopics() = 0;
/*
End of tes3mp addition
*/
};
}

@ -687,6 +687,9 @@ void LocalPlayer::addTopics()
mwmp::Topic topic = topicChanges.topics.at(i);
MWBase::Environment::get().getDialogueManager()->addTopic(topic.topicId);
if (MWBase::Environment::get().getWindowManager()->containsMode(MWGui::GM_Dialogue))
MWBase::Environment::get().getDialogueManager()->updateTopics();
}
}

Loading…
Cancel
Save