2013-03-22 13:13:10 +00:00
|
|
|
#ifndef OPENMW_MWGUI_MERCHANTREPAIR_H
|
|
|
|
#define OPENMW_MWGUI_MERCHANTREPAIR_H
|
|
|
|
|
2013-04-10 04:32:05 +00:00
|
|
|
#include "windowbase.hpp"
|
2013-03-22 13:13:10 +00:00
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
|
|
|
|
class MerchantRepair : public WindowBase
|
|
|
|
{
|
|
|
|
public:
|
2013-04-10 18:46:21 +00:00
|
|
|
MerchantRepair();
|
2013-03-22 13:13:10 +00:00
|
|
|
|
|
|
|
virtual void open();
|
|
|
|
|
2014-05-27 03:13:37 +00:00
|
|
|
virtual void exit();
|
|
|
|
|
2013-03-22 13:13:10 +00:00
|
|
|
void startRepair(const MWWorld::Ptr& actor);
|
|
|
|
|
|
|
|
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
|