mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 05:45:34 +00:00
[Client] Update topics in current dialogue screen when receiving PlayerTopic packets
This commit is contained in:
parent
461ab790e2
commit
906b263a2d
2 changed files with 13 additions and 0 deletions
|
@ -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…
Reference in a new issue