You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
670 B
C++
28 lines
670 B
C++
#include "actionopen.hpp"
|
|
|
|
#include "../mwbase/environment.hpp"
|
|
#include "../mwbase/windowmanager.hpp"
|
|
|
|
#include "../mwmechanics/disease.hpp"
|
|
|
|
#include "class.hpp"
|
|
#include "containerstore.hpp"
|
|
|
|
namespace MWWorld
|
|
{
|
|
ActionOpen::ActionOpen (const MWWorld::Ptr& container)
|
|
: Action (false, container)
|
|
{
|
|
}
|
|
|
|
void ActionOpen::executeImp (const MWWorld::Ptr& actor)
|
|
{
|
|
if (!MWBase::Environment::get().getWindowManager()->isAllowed(MWGui::GW_Inventory))
|
|
return;
|
|
|
|
MWMechanics::diseaseContact(actor, getTarget());
|
|
|
|
MWBase::Environment::get().getWindowManager()->pushGuiMode(MWGui::GM_Container, getTarget());
|
|
}
|
|
}
|