OpenMW
|
#include <statswindow.hpp>
Public Types | |
typedef std::map< std::string, int > | FactionList |
typedef std::vector< int > | SkillList |
Public Types inherited from MWGui::WindowBase | |
typedef MyGUI::delegates::CMultiDelegate1 < WindowBase * > | EventHandle_WindowBase |
Public Member Functions | |
StatsWindow (DragAndDrop *drag) | |
void | onFrame (float dt) |
automatically updates all the data in the stats window, but only if it has changed. More... | |
void | setBar (const std::string &name, const std::string &tname, int val, int max) |
void | setPlayerName (const std::string &playerName) |
void | setValue (const std::string &id, const MWMechanics::AttributeValue &value) |
Set value for the given ID. More... | |
void | setValue (const std::string &id, const MWMechanics::DynamicStat< float > &value) |
void | setValue (const std::string &id, const std::string &value) |
void | setValue (const std::string &id, int value) |
void | setValue (const ESM::Skill::SkillEnum parSkill, const MWMechanics::SkillValue &value) |
void | configureSkills (const SkillList &major, const SkillList &minor) |
void | setReputation (int reputation) |
void | setBounty (int bounty) |
void | updateSkillArea () |
virtual void | open () |
Notify that window has been made visible. More... | |
Public Member Functions inherited from MWGui::WindowPinnableBase | |
WindowPinnableBase (const std::string &parLayout) | |
bool | pinned () |
void | setPinned (bool pinned) |
void | setPinButtonVisible (bool visible) |
Public Member Functions inherited from MWGui::WindowBase | |
WindowBase (const std::string &parLayout) | |
virtual void | close () |
Notify that window has been hidden. More... | |
virtual void | exit () |
Gracefully exits the window. 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 () |
Public Member Functions inherited from MWGui::Layout | |
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 Member Functions inherited from MWGui::NoDrop | |
NoDrop (DragAndDrop *drag, MyGUI::Widget *widget) | |
void | onFrame (float dt) |
virtual void | setAlpha (float alpha) |
Protected Member Functions | |
virtual void | onPinToggled () |
virtual void | onTitleDoubleClicked () |
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) |
MyGUI::Widget * | addItem (const std::string &text, MyGUI::IntCoord &coord1, MyGUI::IntCoord &coord2) |
void | setFactions (const FactionList &factions) |
void | setExpelled (const std::set< std::string > &expelled) |
void | setBirthSign (const std::string &signId) |
void | onWindowResize (MyGUI::Window *window) |
void | onMouseWheel (MyGUI::Widget *_sender, int _rel) |
Private Attributes | |
MyGUI::Widget * | mLeftPane |
MyGUI::Widget * | mRightPane |
MyGUI::ScrollView * | mSkillView |
SkillList | mMajorSkills |
SkillList | mMinorSkills |
SkillList | mMiscSkills |
std::map< int, MWMechanics::SkillValue > | mSkillValues |
std::map< int, MyGUI::TextBox * > | mSkillWidgetMap |
std::map< std::string, MyGUI::Widget * > | mFactionWidgetMap |
FactionList | mFactions |
Stores a list of factions and the current rank. More... | |
std::string | mBirthSignId |
int | mReputation |
int | mBounty |
std::vector< MyGUI::Widget * > | mSkillWidgets |
std::set< std::string > | mExpelled |
bool | mChanged |
Static Private Attributes | |
static const int | sLineHeight = 18 |
Additional Inherited Members | |
Public Attributes inherited from MWGui::Layout | |
MyGUI::Widget * | mMainWidget |
Protected Attributes inherited from MWGui::WindowPinnableBase | |
MyGUI::Widget * | mPinButton |
bool | mPinned |
Protected Attributes inherited from MWGui::Layout | |
std::string | mPrefix |
std::string | mLayoutName |
MyGUI::VectorWidgetPtr | mListWindowRoot |
typedef std::map<std::string, int> MWGui::StatsWindow::FactionList |
typedef std::vector<int> MWGui::StatsWindow::SkillList |
MWGui::StatsWindow::StatsWindow | ( | DragAndDrop * | drag | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
void MWGui::StatsWindow::onFrame | ( | float | dt | ) |
automatically updates all the data in the stats window, but only if it has changed.
|
private |
|
protectedvirtual |
|
protectedvirtual |
|
private |
|
inlinevirtual |
Notify that window has been made visible.
Reimplemented from MWGui::WindowBase.
void MWGui::StatsWindow::setBar | ( | const std::string & | name, |
const std::string & | tname, | ||
int | val, | ||
int | max | ||
) |
|
private |
|
inline |
|
private |
|
private |
void MWGui::StatsWindow::setPlayerName | ( | const std::string & | playerName | ) |
|
inline |
void MWGui::StatsWindow::setValue | ( | const std::string & | id, |
const MWMechanics::AttributeValue & | value | ||
) |
Set value for the given ID.
void MWGui::StatsWindow::setValue | ( | const std::string & | id, |
const MWMechanics::DynamicStat< float > & | value | ||
) |
void MWGui::StatsWindow::setValue | ( | const std::string & | id, |
const std::string & | value | ||
) |
void MWGui::StatsWindow::setValue | ( | const std::string & | id, |
int | value | ||
) |
void MWGui::StatsWindow::setValue | ( | const ESM::Skill::SkillEnum | parSkill, |
const MWMechanics::SkillValue & | value | ||
) |
void MWGui::StatsWindow::updateSkillArea | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
Stores a list of factions and the current rank.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |