1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 05:19:55 +00:00
openmw-tes3mp/apps/openmw/mwgui/inventorywindow.hpp

55 lines
1.5 KiB
C++
Raw Normal View History

2012-04-21 08:51:01 +00:00
#ifndef MGUI_Inventory_H
#define MGUI_Inventory_H
#include "container.hpp"
2012-05-12 20:44:12 +00:00
#include "window_pinnable_base.hpp"
2012-04-21 08:51:01 +00:00
namespace MWGui
{
2012-05-12 20:44:12 +00:00
class InventoryWindow : public ContainerBase, public WindowPinnableBase
2012-04-21 08:51:01 +00:00
{
public:
2012-05-11 09:52:07 +00:00
InventoryWindow(WindowManager& parWindowManager,DragAndDrop* dragAndDrop);
void openInventory();
/// start trading, disables item drag&drop
void startTrade();
void onFrame();
2012-05-15 20:45:46 +00:00
int getPlayerGold();
protected:
2012-05-12 19:28:04 +00:00
MyGUI::Widget* mAvatar;
MyGUI::TextBox* mArmorRating;
MyGUI::ProgressBar* mEncumbranceBar;
MyGUI::TextBox* mEncumbranceText;
MyGUI::Widget* mLeftPane;
MyGUI::Widget* mRightPane;
2012-05-12 19:28:04 +00:00
MyGUI::Button* mFilterAll;
MyGUI::Button* mFilterWeapon;
MyGUI::Button* mFilterApparel;
MyGUI::Button* mFilterMagic;
MyGUI::Button* mFilterMisc;
bool mTrading;
void onWindowResize(MyGUI::Window* _sender);
2012-05-12 19:44:33 +00:00
void onFilterChanged(MyGUI::Widget* _sender);
void onAvatarClicked(MyGUI::Widget* _sender);
2012-05-12 20:44:12 +00:00
void onPinToggled();
2012-05-15 20:45:46 +00:00
void updateEncumbranceBar();
virtual bool isTrading() { return mTrading; }
virtual bool isInventory() { return true; }
virtual std::vector<MWWorld::Ptr> getEquippedItems();
virtual void _unequipItem(MWWorld::Ptr item);
2012-04-21 08:51:01 +00:00
};
}
2012-04-21 08:51:01 +00:00
#endif // Inventory_H