2012-09-14 19:44:00 +02:00
|
|
|
#ifndef MWGUI_LEVELUPDIALOG_H
|
|
|
|
#define MWGUI_LEVELUPDIALOG_H
|
|
|
|
|
2013-04-10 00:32:05 -04:00
|
|
|
#include "windowbase.hpp"
|
2012-09-14 19:44:00 +02:00
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
|
|
|
|
class LevelupDialog : public WindowBase
|
|
|
|
{
|
|
|
|
public:
|
2013-04-10 14:46:21 -04:00
|
|
|
LevelupDialog();
|
2012-09-14 19:44:00 +02:00
|
|
|
|
|
|
|
virtual void open();
|
|
|
|
|
|
|
|
private:
|
|
|
|
MyGUI::Button* mOkButton;
|
|
|
|
MyGUI::ImageBox* mClassImage;
|
|
|
|
MyGUI::TextBox* mLevelText;
|
2013-03-12 17:18:47 +01:00
|
|
|
MyGUI::EditBox* mLevelDescription;
|
|
|
|
|
|
|
|
MyGUI::Widget* mCoinBox;
|
2012-09-14 19:44:00 +02:00
|
|
|
|
2012-09-15 17:12:42 +02:00
|
|
|
std::vector<MyGUI::Button*> mAttributes;
|
2012-09-14 19:44:00 +02:00
|
|
|
std::vector<MyGUI::TextBox*> mAttributeValues;
|
|
|
|
std::vector<MyGUI::TextBox*> mAttributeMultipliers;
|
2012-09-15 17:12:42 +02:00
|
|
|
std::vector<MyGUI::ImageBox*> mCoins;
|
|
|
|
|
|
|
|
std::vector<int> mSpentAttributes;
|
2012-09-14 19:44:00 +02:00
|
|
|
|
|
|
|
void onOkButtonClicked (MyGUI::Widget* sender);
|
|
|
|
void onAttributeClicked (MyGUI::Widget* sender);
|
2012-09-15 17:12:42 +02:00
|
|
|
|
|
|
|
void assignCoins();
|
|
|
|
void resetCoins();
|
|
|
|
|
|
|
|
void setAttributeValues();
|
2012-09-14 19:44:00 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|