2012-04-21 10:51:01 +02:00
|
|
|
#include "inventorywindow.hpp"
|
2012-04-21 11:05:30 +02:00
|
|
|
#include <iterator>
|
|
|
|
#include <algorithm>
|
|
|
|
#include "window_manager.hpp"
|
|
|
|
#include "widgets.hpp"
|
2012-04-21 10:51:01 +02:00
|
|
|
|
2012-05-11 11:52:07 +02:00
|
|
|
#include "../mwbase/environment.hpp"
|
2012-04-21 11:05:30 +02:00
|
|
|
#include "../mwworld/manualref.hpp"
|
|
|
|
#include <cmath>
|
|
|
|
#include <algorithm>
|
|
|
|
#include <iterator>
|
|
|
|
|
|
|
|
#include <assert.h>
|
|
|
|
#include <iostream>
|
|
|
|
#include "../mwclass/container.hpp"
|
|
|
|
#include "../mwworld/containerstore.hpp"
|
|
|
|
#include <boost/lexical_cast.hpp>
|
|
|
|
#include "../mwworld/class.hpp"
|
|
|
|
#include "../mwworld/world.hpp"
|
|
|
|
#include "../mwworld/player.hpp"
|
2012-04-21 10:51:01 +02:00
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
|
2012-05-11 11:52:07 +02:00
|
|
|
InventoryWindow::InventoryWindow(WindowManager& parWindowManager,DragAndDrop* dragAndDrop)
|
2012-05-12 13:12:37 +02:00
|
|
|
: ContainerBase(parWindowManager,dragAndDrop,"openmw_inventory_window_layout.xml")
|
2012-04-21 10:51:01 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2012-04-21 11:05:30 +02:00
|
|
|
void InventoryWindow::openInventory()
|
|
|
|
{
|
2012-05-11 11:52:07 +02:00
|
|
|
open(MWBase::Environment::get().getWorld()->getPlayer().getPlayer());
|
2012-04-21 11:05:30 +02:00
|
|
|
}
|
|
|
|
|
2012-04-22 21:06:08 +02:00
|
|
|
}
|