You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw/apps/openmw/mwgui/levelupdialog.hpp

62 lines
1.3 KiB
C++

#ifndef MWGUI_LEVELUPDIALOG_H
#define MWGUI_LEVELUPDIALOG_H
#include <string>
#include <vector>
#include "windowbase.hpp"
namespace MyGUI
{
class Button;
class EditBox;
class ImageBox;
class TextBox;
class Widget;
}
namespace MWGui
{
class LevelupDialog : public WindowBase
{
public:
LevelupDialog();
void onOpen() override;
private:
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<int> mSpentAttributes;
unsigned int mCoinCount;
static const unsigned int sMaxCoins;
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);
};
}
#endif