mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 12:42:11 +00:00
23 lines
621 B
C++
23 lines
621 B
C++
#include "actionopen.hpp"
|
|
|
|
#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;
|
|
}
|
|
|
|
void ActionOpen::execute ()
|
|
{
|
|
MWBase::Environment::get().getWindowManager()->pushGuiMode(MWGui::GM_Container);
|
|
MWBase::Environment::get().getWindowManager()->getContainerWindow()->open(mContainer);
|
|
}
|
|
}
|