OpenMW
|
#include <review.hpp>
Public Types | |
enum | Dialogs { NAME_DIALOG, RACE_DIALOG, CLASS_DIALOG, BIRTHSIGN_DIALOG } |
typedef std::vector< int > | SkillList |
typedef MyGUI::delegates::CMultiDelegate0 | EventHandle_Void |
typedef MyGUI::delegates::CMultiDelegate1 < int > | EventHandle_Int |
Public Member Functions | |
ReviewDialog () | |
void | setPlayerName (const std::string &name) |
void | setRace (const std::string &raceId) |
void | setClass (const ESM::Class &class_) |
void | setBirthSign (const std::string &signId) |
void | setHealth (const MWMechanics::DynamicStat< float > &value) |
void | setMagicka (const MWMechanics::DynamicStat< float > &value) |
void | setFatigue (const MWMechanics::DynamicStat< float > &value) |
void | setAttribute (ESM::Attribute::AttributeID attributeId, const MWMechanics::Stat< int > &value) |
void | configureSkills (const SkillList &major, const SkillList &minor) |
void | setSkillValue (ESM::Skill::SkillEnum skillId, const MWMechanics::Stat< float > &value) |
virtual void | open () |
Public Attributes | |
EventHandle_Void | eventBack |
EventHandle_Int | eventActivateDialog |
Protected Member Functions | |
void | onOkClicked (MyGUI::Widget *_sender) |
void | onBackClicked (MyGUI::Widget *_sender) |
void | onNameClicked (MyGUI::Widget *_sender) |
void | onRaceClicked (MyGUI::Widget *_sender) |
void | onClassClicked (MyGUI::Widget *_sender) |
void | onBirthSignClicked (MyGUI::Widget *_sender) |
void | onMouseWheel (MyGUI::Widget *_sender, int _rel) |
Private Member Functions | |
void | addSkills (const SkillList &skills, const std::string &titleId, const std::string &titleDefault, MyGUI::IntCoord &coord1, MyGUI::IntCoord &coord2) |
void | addSeparator (MyGUI::IntCoord &coord1, MyGUI::IntCoord &coord2) |
void | addGroup (const std::string &label, MyGUI::IntCoord &coord1, MyGUI::IntCoord &coord2) |
MyGUI::TextBox * | addValueItem (const std::string &text, const std::string &value, const std::string &state, MyGUI::IntCoord &coord1, MyGUI::IntCoord &coord2) |
void | addItem (const std::string &text, MyGUI::IntCoord &coord1, MyGUI::IntCoord &coord2) |
void | updateSkillArea () |
Private Attributes | |
MyGUI::TextBox * | mNameWidget |
MyGUI::TextBox * | mRaceWidget |
MyGUI::TextBox * | mClassWidget |
MyGUI::TextBox * | mBirthSignWidget |
MyGUI::ScrollView * | mSkillView |
Widgets::MWDynamicStatPtr | mHealth |
Widgets::MWDynamicStatPtr | mMagicka |
Widgets::MWDynamicStatPtr | mFatigue |
std::map< int, Widgets::MWAttributePtr > | mAttributeWidgets |
SkillList | mMajorSkills |
SkillList | mMinorSkills |
SkillList | mMiscSkills |
std::map< int, MWMechanics::Stat< float > > | mSkillValues |
std::map< int, MyGUI::TextBox * > | mSkillWidgetMap |
std::string | mName |
std::string | mRaceId |
std::string | mBirthSignId |
ESM::Class | mKlass |
std::vector< MyGUI::Widget * > | mSkillWidgets |
Static Private Attributes | |
static const int | sLineHeight = 18 |
typedef MyGUI::delegates::CMultiDelegate1<int> MWGui::ReviewDialog::EventHandle_Int |
typedef MyGUI::delegates::CMultiDelegate0 MWGui::ReviewDialog::EventHandle_Void |
typedef std::vector<int> MWGui::ReviewDialog::SkillList |
void MWGui::ReviewDialog::addGroup | ( | const std::string & | label, |
MyGUI::IntCoord & | coord1, | ||
MyGUI::IntCoord & | coord2 | ||
) | [private] |
void MWGui::ReviewDialog::addItem | ( | const std::string & | text, |
MyGUI::IntCoord & | coord1, | ||
MyGUI::IntCoord & | coord2 | ||
) | [private] |
void MWGui::ReviewDialog::addSeparator | ( | MyGUI::IntCoord & | coord1, |
MyGUI::IntCoord & | coord2 | ||
) | [private] |
void MWGui::ReviewDialog::addSkills | ( | const SkillList & | skills, |
const std::string & | titleId, | ||
const std::string & | titleDefault, | ||
MyGUI::IntCoord & | coord1, | ||
MyGUI::IntCoord & | coord2 | ||
) | [private] |
MyGUI::TextBox * MWGui::ReviewDialog::addValueItem | ( | const std::string & | text, |
const std::string & | value, | ||
const std::string & | state, | ||
MyGUI::IntCoord & | coord1, | ||
MyGUI::IntCoord & | coord2 | ||
) | [private] |
void MWGui::ReviewDialog::configureSkills | ( | const SkillList & | major, |
const SkillList & | minor | ||
) |
void MWGui::ReviewDialog::onBackClicked | ( | MyGUI::Widget * | _sender | ) | [protected] |
void MWGui::ReviewDialog::onBirthSignClicked | ( | MyGUI::Widget * | _sender | ) | [protected] |
void MWGui::ReviewDialog::onClassClicked | ( | MyGUI::Widget * | _sender | ) | [protected] |
void MWGui::ReviewDialog::onMouseWheel | ( | MyGUI::Widget * | _sender, |
int | _rel | ||
) | [protected] |
void MWGui::ReviewDialog::onNameClicked | ( | MyGUI::Widget * | _sender | ) | [protected] |
void MWGui::ReviewDialog::onOkClicked | ( | MyGUI::Widget * | _sender | ) | [protected] |
void MWGui::ReviewDialog::onRaceClicked | ( | MyGUI::Widget * | _sender | ) | [protected] |
void MWGui::ReviewDialog::open | ( | ) | [virtual] |
Reimplemented from MWGui::WindowModal.
void MWGui::ReviewDialog::setAttribute | ( | ESM::Attribute::AttributeID | attributeId, |
const MWMechanics::Stat< int > & | value | ||
) |
void MWGui::ReviewDialog::setBirthSign | ( | const std::string & | signId | ) |
void MWGui::ReviewDialog::setClass | ( | const ESM::Class & | class_ | ) |
void MWGui::ReviewDialog::setFatigue | ( | const MWMechanics::DynamicStat< float > & | value | ) |
void MWGui::ReviewDialog::setHealth | ( | const MWMechanics::DynamicStat< float > & | value | ) |
void MWGui::ReviewDialog::setMagicka | ( | const MWMechanics::DynamicStat< float > & | value | ) |
void MWGui::ReviewDialog::setPlayerName | ( | const std::string & | name | ) |
void MWGui::ReviewDialog::setRace | ( | const std::string & | raceId | ) |
void MWGui::ReviewDialog::setSkillValue | ( | ESM::Skill::SkillEnum | skillId, |
const MWMechanics::Stat< float > & | value | ||
) |
void MWGui::ReviewDialog::updateSkillArea | ( | ) | [private] |
Event : Back button clicked.
signature : void method()
std::map<int, Widgets::MWAttributePtr> MWGui::ReviewDialog::mAttributeWidgets [private] |
std::string MWGui::ReviewDialog::mBirthSignId [private] |
MyGUI::TextBox * MWGui::ReviewDialog::mBirthSignWidget [private] |
MyGUI::TextBox * MWGui::ReviewDialog::mClassWidget [private] |
ESM::Class MWGui::ReviewDialog::mKlass [private] |
SkillList MWGui::ReviewDialog::mMajorSkills [private] |
SkillList MWGui::ReviewDialog::mMinorSkills [private] |
SkillList MWGui::ReviewDialog::mMiscSkills [private] |
std::string MWGui::ReviewDialog::mName [private] |
MyGUI::TextBox* MWGui::ReviewDialog::mNameWidget [private] |
std::string MWGui::ReviewDialog::mRaceId [private] |
MyGUI::TextBox * MWGui::ReviewDialog::mRaceWidget [private] |
std::map<int, MWMechanics::Stat<float> > MWGui::ReviewDialog::mSkillValues [private] |
MyGUI::ScrollView* MWGui::ReviewDialog::mSkillView [private] |
std::map<int, MyGUI::TextBox*> MWGui::ReviewDialog::mSkillWidgetMap [private] |
std::vector<MyGUI::Widget*> MWGui::ReviewDialog::mSkillWidgets [private] |
const int MWGui::ReviewDialog::sLineHeight = 18 [static, private] |