OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
levelupdialog.hpp
Go to the documentation of this file.
1 #ifndef MWGUI_LEVELUPDIALOG_H
2 #define MWGUI_LEVELUPDIALOG_H
3 
4 #include "windowbase.hpp"
5 
6 namespace MWGui
7 {
8 
9  class LevelupDialog : public WindowBase
10  {
11  public:
12  LevelupDialog();
13 
14  virtual void open();
15 
16  private:
17  MyGUI::Button* mOkButton;
18  MyGUI::ImageBox* mClassImage;
19  MyGUI::TextBox* mLevelText;
20  MyGUI::EditBox* mLevelDescription;
21 
22  MyGUI::Widget* mCoinBox;
23  MyGUI::Widget* mAssignWidget;
24 
25  std::vector<MyGUI::Button*> mAttributes;
26  std::vector<MyGUI::TextBox*> mAttributeValues;
27  std::vector<MyGUI::TextBox*> mAttributeMultipliers;
28  std::vector<MyGUI::ImageBox*> mCoins;
29 
30  std::vector<int> mSpentAttributes;
31 
32  unsigned int mCoinCount;
33  static const unsigned int sMaxCoins;
34 
35  void onOkButtonClicked(MyGUI::Widget* sender);
36  void onAttributeClicked(MyGUI::Widget* sender);
37 
38  void assignCoins();
39  void resetCoins();
40 
41  void setAttributeValues();
42 
43  std::string getLevelupClassImage(const int combatIncreases, const int magicIncreases, const int stealthIncreases);
44  };
45 
46 }
47 
48 #endif
MyGUI::EditBox * mLevelDescription
Definition: levelupdialog.hpp:20
virtual void open()
Notify that window has been made visible.
Definition: levelupdialog.cpp:131
MyGUI::TextBox * mLevelText
Definition: levelupdialog.hpp:19
std::string getLevelupClassImage(const int combatIncreases, const int magicIncreases, const int stealthIncreases)
Definition: levelupdialog.cpp:233
std::vector< MyGUI::Button * > mAttributes
Definition: levelupdialog.hpp:25
LevelupDialog()
Definition: levelupdialog.cpp:27
MyGUI::ImageBox * mClassImage
Definition: levelupdialog.hpp:18
std::vector< MyGUI::TextBox * > mAttributeValues
Definition: levelupdialog.hpp:26
void onOkButtonClicked(MyGUI::Widget *sender)
Definition: levelupdialog.cpp:189
Definition: levelupdialog.hpp:9
unsigned int mCoinCount
Definition: levelupdialog.hpp:32
void assignCoins()
Definition: levelupdialog.cpp:110
void resetCoins()
Definition: levelupdialog.cpp:90
void setAttributeValues()
Definition: levelupdialog.cpp:68
Definition: windowbase.hpp:16
MyGUI::Widget * mCoinBox
Definition: levelupdialog.hpp:22
static const unsigned int sMaxCoins
Definition: levelupdialog.hpp:33
std::vector< int > mSpentAttributes
Definition: levelupdialog.hpp:30
std::vector< MyGUI::ImageBox * > mCoins
Definition: levelupdialog.hpp:28
MyGUI::Button * mOkButton
Definition: levelupdialog.hpp:17
MyGUI::Widget * mAssignWidget
Definition: levelupdialog.hpp:23
std::vector< MyGUI::TextBox * > mAttributeMultipliers
Definition: levelupdialog.hpp:27
void onAttributeClicked(MyGUI::Widget *sender)
Definition: levelupdialog.cpp:216