mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-03 17:37:18 +00:00
6db936bb3a
- Removed duplicate code - Fixed missing magic backgrounds during item drag&drop - Change background texture used for HUD icons
50 lines
794 B
C++
50 lines
794 B
C++
#ifndef OPENMW_MWGUI_REPAIR_H
|
|
#define OPENMW_MWGUI_REPAIR_H
|
|
|
|
#include "windowbase.hpp"
|
|
|
|
#include "../mwmechanics/repair.hpp"
|
|
|
|
namespace MWGui
|
|
{
|
|
|
|
class ItemWidget;
|
|
|
|
class Repair : public WindowBase
|
|
{
|
|
public:
|
|
Repair();
|
|
|
|
virtual void open();
|
|
|
|
virtual void exit();
|
|
|
|
void startRepairItem (const MWWorld::Ptr& item);
|
|
|
|
protected:
|
|
MyGUI::Widget* mRepairBox;
|
|
MyGUI::ScrollView* mRepairView;
|
|
|
|
MyGUI::Widget* mToolBox;
|
|
|
|
ItemWidget* mToolIcon;
|
|
|
|
MyGUI::TextBox* mUsesLabel;
|
|
MyGUI::TextBox* mQualityLabel;
|
|
|
|
MyGUI::Button* mCancelButton;
|
|
|
|
MWMechanics::Repair mRepair;
|
|
|
|
void updateRepairView();
|
|
|
|
void onRepairItem (MyGUI::Widget* sender);
|
|
void onCancel (MyGUI::Widget* sender);
|
|
void onMouseWheel(MyGUI::Widget* _sender, int _rel);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|