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 |
![]() | |
typedef MyGUI::delegates::CMultiDelegate1 < WindowBase * > | EventHandle_WindowBase |
Public Member Functions | |
ReviewDialog () | |
bool | exit () |
Gracefully exits the window. More... | |
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::AttributeValue &value) |
void | configureSkills (const SkillList &major, const SkillList &minor) |
void | setSkillValue (ESM::Skill::SkillEnum skillId, const MWMechanics::SkillValue &value) |
virtual void | onOpen () |
Notify that window has been made visible. More... | |
void | onFrame (float duration) |
Called every frame if the window is in an active GUI mode. More... | |
![]() | |
WindowModal (const std::string &parLayout) | |
virtual void | onClose () override |
Notify that window has been hidden. More... | |
![]() | |
WindowBase (const std::string &parLayout) | |
virtual MyGUI::Widget * | getDefaultKeyFocus () |
virtual void | setPtr (const MWWorld::Ptr &ptr) |
Open this object in the GUI, for windows that support it. 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 () |
virtual void | clear () |
Clear any state specific to the running game. More... | |
virtual void | onResChange (int width, int height) |
Called when GUI viewport changes size. More... | |
![]() | |
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) |
Public Attributes | |
EventHandle_Void | eventBack |
EventHandle_WindowBase | eventDone |
EventHandle_Int | eventActivateDialog |
![]() | |
MyGUI::Widget * | mMainWidget |
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 | addItem (const ESM::Spell *spell, 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::SkillValue > | mSkillValues |
std::map< int, MyGUI::TextBox * > | mSkillWidgetMap |
std::string | mName |
std::string | mRaceId |
std::string | mBirthSignId |
ESM::Class | mKlass |
std::vector< MyGUI::Widget * > | mSkillWidgets |
bool | mUpdateSkillArea |
Additional Inherited Members | |
![]() | |
std::string | mPrefix |
std::string | mLayoutName |
MyGUI::VectorWidgetPtr | mListWindowRoot |
typedef MyGUI::delegates::CMultiDelegate1<int> MWGui::ReviewDialog::EventHandle_Int |
typedef MyGUI::delegates::CMultiDelegate0 MWGui::ReviewDialog::EventHandle_Void |
typedef std::vector<int> MWGui::ReviewDialog::SkillList |
MWGui::ReviewDialog::ReviewDialog | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
inlinevirtual |
Gracefully exits the window.
Reimplemented from MWGui::WindowModal.
|
protected |
|
protected |
|
protected |
|
virtual |
Called every frame if the window is in an active GUI mode.
Reimplemented from MWGui::WindowBase.
|
protected |
|
protected |
|
protected |
|
virtual |
Notify that window has been made visible.
Reimplemented from MWGui::WindowModal.
|
protected |
void MWGui::ReviewDialog::setAttribute | ( | ESM::Attribute::AttributeID | attributeId, |
const MWMechanics::AttributeValue & | 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::SkillValue & | value | ||
) |
|
private |
EventHandle_Int MWGui::ReviewDialog::eventActivateDialog |
EventHandle_Void MWGui::ReviewDialog::eventBack |
Event : Back button clicked.
signature : void method()
EventHandle_WindowBase MWGui::ReviewDialog::eventDone |
Event : Dialog finished, OK button clicked.
signature : void method()
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |