2010-08-06 16:15:46 +00:00
|
|
|
#include "actiontalk.hpp"
|
|
|
|
|
2012-04-23 13:27:03 +00:00
|
|
|
#include "../mwbase/environment.hpp"
|
2017-09-25 19:38:38 +00:00
|
|
|
#include "../mwbase/windowmanager.hpp"
|
2010-08-06 16:15:46 +00:00
|
|
|
|
2019-11-18 08:41:11 +00:00
|
|
|
#include "../mwmechanics/actorutil.hpp"
|
|
|
|
|
2010-08-06 16:15:46 +00:00
|
|
|
namespace MWWorld
|
|
|
|
{
|
2012-09-04 13:38:21 +00:00
|
|
|
ActionTalk::ActionTalk (const Ptr& actor) : Action (false, actor) {}
|
2010-08-06 16:15:46 +00:00
|
|
|
|
2012-07-27 10:00:10 +00:00
|
|
|
void ActionTalk::executeImp (const Ptr& actor)
|
2010-08-06 16:15:46 +00:00
|
|
|
{
|
2019-12-15 09:50:15 +00:00
|
|
|
/*
|
|
|
|
Start of tes3mp change (major)
|
|
|
|
|
|
|
|
We need to be able to make actors start conversations with players, so reverse the check added
|
|
|
|
by 4118b20608b630b8d166d060a34c1234b80e378d here
|
|
|
|
*/
|
|
|
|
MWBase::Environment::get().getWindowManager()->pushGuiMode(MWGui::GM_Dialogue, getTarget());
|
|
|
|
/*
|
|
|
|
End of tes3mp change (major)
|
|
|
|
*/
|
2010-08-06 16:15:46 +00:00
|
|
|
}
|
|
|
|
}
|