OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
MWGui::LevelupDialog Class Reference

#include <levelupdialog.hpp>

Inheritance diagram for MWGui::LevelupDialog:
Collaboration diagram for MWGui::LevelupDialog:

Public Member Functions

 LevelupDialog ()
 
virtual void open ()
 Notify that window has been made visible. More...
 
- Public Member Functions inherited from MWGui::WindowBase
 WindowBase (const std::string &parLayout)
 
virtual void close ()
 Notify that window has been hidden. More...
 
virtual void exit ()
 Gracefully exits the window. More...
 
virtual void setVisible (bool visible)
 Sets the visibility of the window. More...
 
bool isVisible ()
 Returns the visibility state of the window. More...
 
void center ()
 
- Public Member Functions inherited from MWGui::Layout
 Layout (const std::string &_layout, MyGUI::Widget *_parent=nullptr)
 
virtual ~Layout ()
 
MyGUI::Widget * getWidget (const std::string &_name)
 
template<typename T >
void getWidget (T *&_widget, const std::string &_name)
 
void setCoord (int x, int y, int w, int h)
 
void setText (const std::string &name, const std::string &caption)
 
void setTitle (const std::string &title)
 

Private Member Functions

void onOkButtonClicked (MyGUI::Widget *sender)
 
void onAttributeClicked (MyGUI::Widget *sender)
 
void assignCoins ()
 
void resetCoins ()
 
void setAttributeValues ()
 
std::string getLevelupClassImage (const int combatIncreases, const int magicIncreases, const int stealthIncreases)
 

Private Attributes

MyGUI::Button * mOkButton
 
MyGUI::ImageBox * mClassImage
 
MyGUI::TextBox * mLevelText
 
MyGUI::EditBox * mLevelDescription
 
MyGUI::Widget * mCoinBox
 
MyGUI::Widget * mAssignWidget
 
std::vector< MyGUI::Button * > mAttributes
 
std::vector< MyGUI::TextBox * > mAttributeValues
 
std::vector< MyGUI::TextBox * > mAttributeMultipliers
 
std::vector< MyGUI::ImageBox * > mCoins
 
std::vector< intmSpentAttributes
 
unsigned int mCoinCount
 

Static Private Attributes

static const unsigned int sMaxCoins = 3
 

Additional Inherited Members

- Public Types inherited from MWGui::WindowBase
typedef
MyGUI::delegates::CMultiDelegate1
< WindowBase * > 
EventHandle_WindowBase
 
- Public Attributes inherited from MWGui::Layout
MyGUI::Widget * mMainWidget
 
- Protected Attributes inherited from MWGui::Layout
std::string mPrefix
 
std::string mLayoutName
 
MyGUI::VectorWidgetPtr mListWindowRoot
 

Constructor & Destructor Documentation

MWGui::LevelupDialog::LevelupDialog ( )

Here is the call graph for this function:

Member Function Documentation

void MWGui::LevelupDialog::assignCoins ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

std::string MWGui::LevelupDialog::getLevelupClassImage ( const int  combatIncreases,
const int  magicIncreases,
const int  stealthIncreases 
)
private

Here is the caller graph for this function:

void MWGui::LevelupDialog::onAttributeClicked ( MyGUI::Widget *  sender)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::LevelupDialog::onOkButtonClicked ( MyGUI::Widget *  sender)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::LevelupDialog::open ( )
virtual

Notify that window has been made visible.

Reimplemented from MWGui::WindowBase.

Here is the call graph for this function:

void MWGui::LevelupDialog::resetCoins ( )
private

Here is the caller graph for this function:

void MWGui::LevelupDialog::setAttributeValues ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

MyGUI::Widget* MWGui::LevelupDialog::mAssignWidget
private
std::vector<MyGUI::TextBox*> MWGui::LevelupDialog::mAttributeMultipliers
private
std::vector<MyGUI::Button*> MWGui::LevelupDialog::mAttributes
private
std::vector<MyGUI::TextBox*> MWGui::LevelupDialog::mAttributeValues
private
MyGUI::ImageBox* MWGui::LevelupDialog::mClassImage
private
MyGUI::Widget* MWGui::LevelupDialog::mCoinBox
private
unsigned int MWGui::LevelupDialog::mCoinCount
private
std::vector<MyGUI::ImageBox*> MWGui::LevelupDialog::mCoins
private
MyGUI::EditBox* MWGui::LevelupDialog::mLevelDescription
private
MyGUI::TextBox* MWGui::LevelupDialog::mLevelText
private
MyGUI::Button* MWGui::LevelupDialog::mOkButton
private
std::vector<int> MWGui::LevelupDialog::mSpentAttributes
private
const unsigned int MWGui::LevelupDialog::sMaxCoins = 3
staticprivate

The documentation for this class was generated from the following files: