1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 20:19:56 +00:00
openmw-tes3mp/apps/openmw/mwgui/levelupdialog.hpp

49 lines
1.1 KiB
C++
Raw Normal View History

2012-09-14 17:44:00 +00:00
#ifndef MWGUI_LEVELUPDIALOG_H
#define MWGUI_LEVELUPDIALOG_H
#include "windowbase.hpp"
2012-09-14 17:44:00 +00:00
namespace MWGui
{
class LevelupDialog : public WindowBase
{
public:
LevelupDialog();
2012-09-14 17:44:00 +00:00
void onOpen() override;
2012-09-14 17:44:00 +00:00
private:
MyGUI::Button* mOkButton;
MyGUI::ImageBox* mClassImage;
MyGUI::TextBox* mLevelText;
MyGUI::EditBox* mLevelDescription;
MyGUI::Widget* mCoinBox;
2014-09-03 01:03:03 +00:00
MyGUI::Widget* mAssignWidget;
2012-09-14 17:44:00 +00:00
2012-09-15 15:12:42 +00:00
std::vector<MyGUI::Button*> mAttributes;
2012-09-14 17:44:00 +00:00
std::vector<MyGUI::TextBox*> mAttributeValues;
std::vector<MyGUI::TextBox*> mAttributeMultipliers;
2012-09-15 15:12:42 +00:00
std::vector<MyGUI::ImageBox*> mCoins;
std::vector<int> mSpentAttributes;
2012-09-14 17:44:00 +00:00
unsigned int mCoinCount;
static const unsigned int sMaxCoins;
void onOkButtonClicked(MyGUI::Widget* sender);
void onAttributeClicked(MyGUI::Widget* sender);
2012-09-15 15:12:42 +00:00
void assignCoins();
void resetCoins();
void setAttributeValues();
std::string getLevelupClassImage(const int combatIncreases, const int magicIncreases, const int stealthIncreases);
2012-09-14 17:44:00 +00:00
};
}
#endif