You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
647 B
C++
37 lines
647 B
C++
#ifndef OPENMW_MWGUI_MERCHANTREPAIR_H
|
|
#define OPENMW_MWGUI_MERCHANTREPAIR_H
|
|
|
|
#include "windowbase.hpp"
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
namespace MWGui
|
|
{
|
|
|
|
class MerchantRepair : public WindowBase
|
|
{
|
|
public:
|
|
MerchantRepair();
|
|
|
|
virtual void onOpen();
|
|
|
|
void setPtr(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);
|
|
|
|
static const int sLineHeight;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|