1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-18 04:10:06 +00:00
OpenMW/apps/openmw/mwgui/merchantrepair.hpp
2023-08-20 17:49:56 +02:00

37 lines
776 B
C++

#ifndef OPENMW_MWGUI_MERCHANTREPAIR_H
#define OPENMW_MWGUI_MERCHANTREPAIR_H
#include "../mwworld/ptr.hpp"
#include "windowbase.hpp"
namespace MWGui
{
class MerchantRepair : public WindowBase
{
public:
MerchantRepair();
void onOpen() override;
void setPtr(const MWWorld::Ptr& actor) override;
std::string_view getWindowIdForLua() const override { return "MerchantRepair"; }
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