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.
openmw-tes3mp/apps/openmw/mwworld/actionopen.cpp

23 lines
621 B
C++

#include "actionopen.hpp"
13 years ago
#include "../mwbase/environment.hpp"
#include "class.hpp"
#include "world.hpp"
#include "containerstore.hpp"
#include "../mwclass/container.hpp"
#include "../mwgui/window_manager.hpp"
#include "../mwgui/container.hpp"
namespace MWWorld
{
ActionOpen::ActionOpen (const MWWorld::Ptr& container) : mContainer (container) {
mContainer = container;
}
13 years ago
void ActionOpen::execute ()
{
MWBase::Environment::get().getWindowManager()->pushGuiMode(MWGui::GM_Container);
13 years ago
MWBase::Environment::get().getWindowManager()->getContainerWindow()->open(mContainer);
}
}