OpenMW
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes
MWGui::RaceDialog Class Reference

#include <race.hpp>

List of all members.

Public Types

enum  Gender { GM_Male, GM_Female }
typedef
MyGUI::delegates::CMultiDelegate0 
EventHandle_Void

Public Member Functions

 RaceDialog ()
const ESM::NPCgetResult () const
const std::string & getRaceId () const
Gender getGender () const
void setRaceId (const std::string &raceId)
void setGender (Gender gender)
void setNextButtonShow (bool shown)
virtual void open ()
virtual void close ()
void doRenderUpdate ()

Public Attributes

EventHandle_Void eventBack

Protected Member Functions

void onHeadRotate (MyGUI::ScrollBar *_sender, size_t _position)
void onSelectPreviousGender (MyGUI::Widget *_sender)
void onSelectNextGender (MyGUI::Widget *_sender)
void onSelectPreviousFace (MyGUI::Widget *_sender)
void onSelectNextFace (MyGUI::Widget *_sender)
void onSelectPreviousHair (MyGUI::Widget *_sender)
void onSelectNextHair (MyGUI::Widget *_sender)
void onSelectRace (MyGUI::ListBox *_sender, size_t _index)
void onOkClicked (MyGUI::Widget *_sender)
void onBackClicked (MyGUI::Widget *_sender)

Private Member Functions

void updateRaces ()
void updateSkills ()
void updateSpellPowers ()
void updatePreview ()
void recountParts ()
void getBodyParts (int part, std::vector< std::string > &out)

Private Attributes

std::vector< std::string > mAvailableHeads
std::vector< std::string > mAvailableHairs
MyGUI::ImageBox * mPreviewImage
MyGUI::ListBox * mRaceList
MyGUI::ScrollBar * mHeadRotate
MyGUI::Widget * mSkillList
std::vector< MyGUI::Widget * > mSkillItems
MyGUI::Widget * mSpellPowerList
std::vector< MyGUI::Widget * > mSpellPowerItems
int mGenderIndex
int mFaceIndex
int mHairIndex
std::string mCurrentRaceId
float mCurrentAngle
MWRender::RaceSelectionPreviewmPreview
bool mPreviewDirty

Member Typedef Documentation

typedef MyGUI::delegates::CMultiDelegate0 MWGui::RaceDialog::EventHandle_Void

Member Enumeration Documentation

Enumerator:
GM_Male 
GM_Female 

Constructor & Destructor Documentation


Member Function Documentation

void MWGui::RaceDialog::close ( ) [virtual]

Reimplemented from MWGui::WindowModal.

void MWGui::RaceDialog::getBodyParts ( int  part,
std::vector< std::string > &  out 
) [private]
const std::string& MWGui::RaceDialog::getRaceId ( ) const [inline]
const ESM::NPC& MWGui::RaceDialog::getResult ( ) const [inline]
void MWGui::RaceDialog::onBackClicked ( MyGUI::Widget *  _sender) [protected]
void MWGui::RaceDialog::onHeadRotate ( MyGUI::ScrollBar *  _sender,
size_t  _position 
) [protected]
void MWGui::RaceDialog::onOkClicked ( MyGUI::Widget *  _sender) [protected]
void MWGui::RaceDialog::onSelectNextFace ( MyGUI::Widget *  _sender) [protected]
void MWGui::RaceDialog::onSelectNextGender ( MyGUI::Widget *  _sender) [protected]
void MWGui::RaceDialog::onSelectNextHair ( MyGUI::Widget *  _sender) [protected]
void MWGui::RaceDialog::onSelectPreviousFace ( MyGUI::Widget *  _sender) [protected]
void MWGui::RaceDialog::onSelectPreviousGender ( MyGUI::Widget *  _sender) [protected]
void MWGui::RaceDialog::onSelectPreviousHair ( MyGUI::Widget *  _sender) [protected]
void MWGui::RaceDialog::onSelectRace ( MyGUI::ListBox *  _sender,
size_t  _index 
) [protected]
void MWGui::RaceDialog::open ( ) [virtual]

Reimplemented from MWGui::WindowModal.

void MWGui::RaceDialog::recountParts ( ) [private]
void MWGui::RaceDialog::setGender ( Gender  gender) [inline]
void MWGui::RaceDialog::setRaceId ( const std::string &  raceId)
void MWGui::RaceDialog::updateRaces ( ) [private]
void MWGui::RaceDialog::updateSkills ( ) [private]

Member Data Documentation

Event : Back button clicked.
signature : void method()

std::vector<std::string> MWGui::RaceDialog::mAvailableHairs [private]
std::vector<std::string> MWGui::RaceDialog::mAvailableHeads [private]
std::string MWGui::RaceDialog::mCurrentRaceId [private]
MyGUI::ScrollBar* MWGui::RaceDialog::mHeadRotate [private]
MyGUI::ImageBox* MWGui::RaceDialog::mPreviewImage [private]
MyGUI::ListBox* MWGui::RaceDialog::mRaceList [private]
std::vector<MyGUI::Widget*> MWGui::RaceDialog::mSkillItems [private]
MyGUI::Widget* MWGui::RaceDialog::mSkillList [private]
std::vector<MyGUI::Widget*> MWGui::RaceDialog::mSpellPowerItems [private]
MyGUI::Widget* MWGui::RaceDialog::mSpellPowerList [private]

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