2013-03-22 14:13:10 +01:00
|
|
|
#ifndef OPENMW_MWGUI_MERCHANTREPAIR_H
|
|
|
|
#define OPENMW_MWGUI_MERCHANTREPAIR_H
|
|
|
|
|
2013-04-10 00:32:05 -04:00
|
|
|
#include "windowbase.hpp"
|
2013-03-22 14:13:10 +01:00
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
|
|
|
|
class MerchantRepair : public WindowBase
|
|
|
|
{
|
|
|
|
public:
|
2013-04-10 14:46:21 -04:00
|
|
|
MerchantRepair();
|
2013-03-22 14:13:10 +01:00
|
|
|
|
2017-09-22 17:10:53 +02:00
|
|
|
virtual void onOpen();
|
2013-03-22 14:13:10 +01:00
|
|
|
|
2017-09-22 21:26:41 +02:00
|
|
|
void setPtr(const MWWorld::Ptr& actor);
|
2013-03-22 14:13:10 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
MyGUI::ScrollView* mList;
|
|
|
|
MyGUI::Button* mOkButton;
|
|
|
|
MyGUI::TextBox* mGoldLabel;
|
|
|
|
|
|
|
|
MWWorld::Ptr mActor;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void onMouseWheel(MyGUI::Widget* _sender, int _rel);
|
|
|
|
void onRepairButtonClick(MyGUI::Widget* sender);
|
|
|
|
void onOkButtonClick(MyGUI::Widget* sender);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|