2012-09-14 19:44:00 +02:00
|
|
|
#ifndef MWGUI_LEVELUPDIALOG_H
|
|
|
|
#define MWGUI_LEVELUPDIALOG_H
|
|
|
|
|
2023-06-18 22:55:05 +02:00
|
|
|
#include <components/esm/attr.hpp>
|
|
|
|
|
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
|
|
|
|
2020-10-16 22:18:54 +04:00
|
|
|
void onOpen() override;
|
2012-09-14 19:44:00 +02:00
|
|
|
|
|
|
|
private:
|
2023-06-18 22:55:05 +02:00
|
|
|
struct Widgets
|
|
|
|
{
|
|
|
|
MyGUI::Button* mButton;
|
|
|
|
MyGUI::TextBox* mValue;
|
|
|
|
MyGUI::TextBox* mMultiplier;
|
|
|
|
};
|
2012-09-14 19:44:00 +02:00
|
|
|
MyGUI::Button* mOkButton;
|
|
|
|
MyGUI::ImageBox* mClassImage;
|
|
|
|
MyGUI::TextBox* mLevelText;
|
2013-03-12 17:18:47 +01:00
|
|
|
MyGUI::EditBox* mLevelDescription;
|
|
|
|
|
|
|
|
MyGUI::Widget* mCoinBox;
|
2023-06-19 20:41:54 +02:00
|
|
|
MyGUI::ScrollView* mAssignWidget;
|
2012-09-14 19:44:00 +02:00
|
|
|
|
2023-06-19 20:41:54 +02:00
|
|
|
std::map<ESM::Attribute::AttributeID, Widgets> mAttributeWidgets;
|
2012-09-15 17:12:42 +02:00
|
|
|
std::vector<MyGUI::ImageBox*> mCoins;
|
|
|
|
|
2023-06-18 22:55:05 +02:00
|
|
|
std::vector<ESM::Attribute::AttributeID> mSpentAttributes;
|
2012-09-14 19:44:00 +02:00
|
|
|
|
2014-07-21 20:56:02 +02:00
|
|
|
unsigned int mCoinCount;
|
|
|
|
|
|
|
|
void onOkButtonClicked(MyGUI::Widget* sender);
|
|
|
|
void onAttributeClicked(MyGUI::Widget* sender);
|
2012-09-15 17:12:42 +02:00
|
|
|
|
|
|
|
void assignCoins();
|
|
|
|
void resetCoins();
|
|
|
|
|
|
|
|
void setAttributeValues();
|
2016-06-26 03:22:58 +02:00
|
|
|
|
2023-05-21 16:39:32 +02:00
|
|
|
std::string_view getLevelupClassImage(
|
2016-06-26 03:22:58 +02:00
|
|
|
const int combatIncreases, const int magicIncreases, const int stealthIncreases);
|
2012-09-14 19:44:00 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|