mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 08:00:56 -04:00
[Client] Update topics in current dialogue screen when receiving PlayerTopic packets
This commit is contained in:
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…
x
Reference in New Issue
Block a user