2012-04-15 15:52:39 +00:00
|
|
|
#include "actionopen.hpp"
|
|
|
|
|
|
|
|
#include "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;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ActionOpen::execute (Environment& environment)
|
|
|
|
{
|
2012-04-18 12:35:35 +00:00
|
|
|
environment.mWindowManager->setGuiMode(MWGui::GM_Container);
|
2012-04-15 15:52:39 +00:00
|
|
|
environment.mWindowManager->getContainerWindow()->open(mContainer);
|
|
|
|
}
|
|
|
|
}
|