mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-08 09:37:53 +00:00
63 lines
1.1 KiB
C++
63 lines
1.1 KiB
C++
|
#ifndef MGUI_CONTAINER_H
|
||
|
#define MGUI_CONTAINER_H
|
||
|
|
||
|
#include <components/esm_store/store.hpp>
|
||
|
#include "../mwclass/container.hpp"
|
||
|
#include <sstream>
|
||
|
#include <set>
|
||
|
#include <string>
|
||
|
#include <utility>
|
||
|
#include "window_base.hpp"
|
||
|
#include "../mwworld/ptr.hpp"
|
||
|
#include "../mwworld/containerstore.hpp"
|
||
|
|
||
|
namespace MWWorld
|
||
|
{
|
||
|
class Environment;
|
||
|
}
|
||
|
|
||
|
namespace MyGUI
|
||
|
{
|
||
|
class Gui;
|
||
|
class Widget;
|
||
|
}
|
||
|
|
||
|
namespace MWGui
|
||
|
{
|
||
|
class WindowManager;
|
||
|
}
|
||
|
|
||
|
|
||
|
namespace MWGui
|
||
|
{
|
||
|
|
||
|
|
||
|
class ContainerWindow : public WindowBase
|
||
|
{
|
||
|
public:
|
||
|
ContainerWindow(WindowManager& parWindowManager,MWWorld::Environment& environment);
|
||
|
|
||
|
|
||
|
void open(MWWorld::Ptr& container);
|
||
|
void setName(std::string contName);
|
||
|
void Update();
|
||
|
|
||
|
virtual ~ContainerWindow();
|
||
|
protected:
|
||
|
private:
|
||
|
MWWorld::Environment& mEnvironment;
|
||
|
std::vector<MyGUI::WidgetPtr> containerWidgets;
|
||
|
MyGUI::WidgetPtr containerWidget;
|
||
|
|
||
|
MyGUI::ButtonPtr takeButton;
|
||
|
MyGUI::ButtonPtr closeButton;
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
//MWWorld::Ptr& mContainer;
|
||
|
};
|
||
|
}
|
||
|
#endif // CONTAINER_H
|