OpenMW
|
#include <hud.hpp>
Public Member Functions | |
HUD (int width, int height, int fpsLevel, DragAndDrop *dragAndDrop) | |
virtual | ~HUD () |
void | setValue (const std::string &id, const MWMechanics::DynamicStat< float > &value) |
void | setFPS (float fps) |
void | setTriangleCount (unsigned int count) |
void | setBatchCount (unsigned int count) |
void | setDrowningTimeLeft (float time) |
void | setDrowningBarVisible (bool visible) |
void | setHmsVisible (bool visible) |
void | setWeapVisible (bool visible) |
void | setSpellVisible (bool visible) |
void | setSneakVisible (bool visible) |
void | setEffectVisible (bool visible) |
void | setMinimapVisible (bool visible) |
void | setFpsLevel (const int level) |
void | setSelectedSpell (const std::string &spellId, int successChancePercent) |
void | setSelectedEnchantItem (const MWWorld::Ptr &item, int chargePercent) |
void | setSelectedWeapon (const MWWorld::Ptr &item, int durabilityPercent) |
void | unsetSelectedSpell () |
void | unsetSelectedWeapon () |
void | setCrosshairVisible (bool visible) |
void | onFrame (float dt) |
void | onResChange (int width, int height) |
void | setCellName (const std::string &cellName) |
bool | getWorldMouseOver () |
MyGUI::Widget * | getEffectBox () |
void | update () |
void | setEnemy (const MWWorld::Ptr &enemy) |
Private Member Functions | |
void | onWorldClicked (MyGUI::Widget *_sender) |
void | onWorldMouseOver (MyGUI::Widget *_sender, int x, int y) |
void | onWorldMouseLostFocus (MyGUI::Widget *_sender, MyGUI::Widget *_new) |
void | onHMSClicked (MyGUI::Widget *_sender) |
void | onWeaponClicked (MyGUI::Widget *_sender) |
void | onMagicClicked (MyGUI::Widget *_sender) |
void | onMapClicked (MyGUI::Widget *_sender) |
void | updatePositions () |
Private Attributes | |
MyGUI::ProgressBar * | mHealth |
MyGUI::ProgressBar * | mMagicka |
MyGUI::ProgressBar * | mStamina |
MyGUI::ProgressBar * | mEnemyHealth |
MyGUI::ProgressBar * | mDrowning |
MyGUI::Widget * | mHealthFrame |
MyGUI::Widget * | mWeapBox |
MyGUI::Widget * | mSpellBox |
MyGUI::Widget * | mSneakBox |
MyGUI::ImageBox * | mWeapImage |
MyGUI::ImageBox * | mSpellImage |
MyGUI::ProgressBar * | mWeapStatus |
MyGUI::ProgressBar * | mSpellStatus |
MyGUI::Widget * | mEffectBox |
MyGUI::Widget * | mMinimapBox |
MyGUI::Button * | mMinimapButton |
MyGUI::ScrollView * | mMinimap |
MyGUI::ImageBox * | mCompass |
MyGUI::ImageBox * | mCrosshair |
MyGUI::TextBox * | mCellNameBox |
MyGUI::TextBox * | mWeaponSpellBox |
MyGUI::Widget * | mDrowningFrame |
MyGUI::Widget * | mDrowningFlash |
MyGUI::Widget * | mDummy |
MyGUI::Widget * | mFpsBox |
MyGUI::TextBox * | mFpsCounter |
MyGUI::TextBox * | mTriangleCounter |
MyGUI::TextBox * | mBatchCounter |
int | mHealthManaStaminaBaseLeft |
int | mWeapBoxBaseLeft |
int | mSpellBoxBaseLeft |
int | mSneakBoxBaseLeft |
int | mMinimapBoxBaseRight |
int | mEffectBoxBaseRight |
DragAndDrop * | mDragAndDrop |
std::string | mCellName |
float | mCellNameTimer |
std::string | mWeaponName |
std::string | mSpellName |
float | mWeaponSpellTimer |
bool | mMapVisible |
bool | mWeaponVisible |
bool | mSpellVisible |
bool | mWorldMouseOver |
SpellIcons * | mSpellIcons |
MWWorld::Ptr | mEnemy |
float | mEnemyHealthTimer |
bool | mIsDrowning |
float | mDrowningFlashTheta |
MWGui::HUD::HUD | ( | int | width, |
int | height, | ||
int | fpsLevel, | ||
DragAndDrop * | dragAndDrop | ||
) |
MWGui::HUD::~HUD | ( | ) | [virtual] |
MyGUI::Widget* MWGui::HUD::getEffectBox | ( | ) | [inline] |
bool MWGui::HUD::getWorldMouseOver | ( | ) | [inline] |
void MWGui::HUD::onFrame | ( | float | dt | ) |
void MWGui::HUD::onHMSClicked | ( | MyGUI::Widget * | _sender | ) | [private] |
void MWGui::HUD::onMagicClicked | ( | MyGUI::Widget * | _sender | ) | [private] |
void MWGui::HUD::onMapClicked | ( | MyGUI::Widget * | _sender | ) | [private] |
void MWGui::HUD::onResChange | ( | int | width, |
int | height | ||
) |
void MWGui::HUD::onWeaponClicked | ( | MyGUI::Widget * | _sender | ) | [private] |
void MWGui::HUD::onWorldClicked | ( | MyGUI::Widget * | _sender | ) | [private] |
void MWGui::HUD::onWorldMouseLostFocus | ( | MyGUI::Widget * | _sender, |
MyGUI::Widget * | _new | ||
) | [private] |
void MWGui::HUD::onWorldMouseOver | ( | MyGUI::Widget * | _sender, |
int | x, | ||
int | y | ||
) | [private] |
void MWGui::HUD::setBatchCount | ( | unsigned int | count | ) |
void MWGui::HUD::setCellName | ( | const std::string & | cellName | ) |
void MWGui::HUD::setCrosshairVisible | ( | bool | visible | ) |
void MWGui::HUD::setDrowningBarVisible | ( | bool | visible | ) |
void MWGui::HUD::setDrowningTimeLeft | ( | float | time | ) |
Set time left for the player to start drowning
time | value from [0,20] |
void MWGui::HUD::setEffectVisible | ( | bool | visible | ) |
void MWGui::HUD::setEnemy | ( | const MWWorld::Ptr & | enemy | ) |
void MWGui::HUD::setFPS | ( | float | fps | ) |
void MWGui::HUD::setFpsLevel | ( | const int | level | ) |
void MWGui::HUD::setHmsVisible | ( | bool | visible | ) |
void MWGui::HUD::setMinimapVisible | ( | bool | visible | ) |
void MWGui::HUD::setSelectedEnchantItem | ( | const MWWorld::Ptr & | item, |
int | chargePercent | ||
) |
void MWGui::HUD::setSelectedSpell | ( | const std::string & | spellId, |
int | successChancePercent | ||
) |
void MWGui::HUD::setSelectedWeapon | ( | const MWWorld::Ptr & | item, |
int | durabilityPercent | ||
) |
void MWGui::HUD::setSneakVisible | ( | bool | visible | ) |
void MWGui::HUD::setSpellVisible | ( | bool | visible | ) |
void MWGui::HUD::setTriangleCount | ( | unsigned int | count | ) |
void MWGui::HUD::setValue | ( | const std::string & | id, |
const MWMechanics::DynamicStat< float > & | value | ||
) |
void MWGui::HUD::setWeapVisible | ( | bool | visible | ) |
void MWGui::HUD::unsetSelectedSpell | ( | ) |
void MWGui::HUD::unsetSelectedWeapon | ( | ) |
void MWGui::HUD::update | ( | ) |
void MWGui::HUD::updatePositions | ( | ) | [private] |
MyGUI::TextBox* MWGui::HUD::mBatchCounter [private] |
std::string MWGui::HUD::mCellName [private] |
MyGUI::TextBox* MWGui::HUD::mCellNameBox [private] |
float MWGui::HUD::mCellNameTimer [private] |
MyGUI::ImageBox* MWGui::HUD::mCompass [private] |
Reimplemented from MWGui::LocalMapBase.
MyGUI::ImageBox* MWGui::HUD::mCrosshair [private] |
DragAndDrop* MWGui::HUD::mDragAndDrop [private] |
MyGUI::ProgressBar * MWGui::HUD::mDrowning [private] |
MyGUI::Widget * MWGui::HUD::mDrowningFlash [private] |
float MWGui::HUD::mDrowningFlashTheta [private] |
MyGUI::Widget* MWGui::HUD::mDrowningFrame [private] |
MyGUI::Widget* MWGui::HUD::mDummy [private] |
MyGUI::Widget* MWGui::HUD::mEffectBox [private] |
int MWGui::HUD::mEffectBoxBaseRight [private] |
MWWorld::Ptr MWGui::HUD::mEnemy [private] |
MyGUI::ProgressBar * MWGui::HUD::mEnemyHealth [private] |
float MWGui::HUD::mEnemyHealthTimer [private] |
MyGUI::Widget* MWGui::HUD::mFpsBox [private] |
MyGUI::TextBox* MWGui::HUD::mFpsCounter [private] |
MyGUI::ProgressBar* MWGui::HUD::mHealth [private] |
MyGUI::Widget* MWGui::HUD::mHealthFrame [private] |
int MWGui::HUD::mHealthManaStaminaBaseLeft [private] |
bool MWGui::HUD::mIsDrowning [private] |
MyGUI::ProgressBar * MWGui::HUD::mMagicka [private] |
bool MWGui::HUD::mMapVisible [private] |
MyGUI::ScrollView* MWGui::HUD::mMinimap [private] |
MyGUI::Widget * MWGui::HUD::mMinimapBox [private] |
int MWGui::HUD::mMinimapBoxBaseRight [private] |
MyGUI::Button* MWGui::HUD::mMinimapButton [private] |
MyGUI::Widget * MWGui::HUD::mSneakBox [private] |
int MWGui::HUD::mSneakBoxBaseLeft [private] |
MyGUI::Widget * MWGui::HUD::mSpellBox [private] |
int MWGui::HUD::mSpellBoxBaseLeft [private] |
SpellIcons* MWGui::HUD::mSpellIcons [private] |
MyGUI::ImageBox * MWGui::HUD::mSpellImage [private] |
std::string MWGui::HUD::mSpellName [private] |
MyGUI::ProgressBar * MWGui::HUD::mSpellStatus [private] |
bool MWGui::HUD::mSpellVisible [private] |
MyGUI::ProgressBar * MWGui::HUD::mStamina [private] |
MyGUI::TextBox* MWGui::HUD::mTriangleCounter [private] |
MyGUI::Widget* MWGui::HUD::mWeapBox [private] |
int MWGui::HUD::mWeapBoxBaseLeft [private] |
MyGUI::ImageBox* MWGui::HUD::mWeapImage [private] |
std::string MWGui::HUD::mWeaponName [private] |
MyGUI::TextBox* MWGui::HUD::mWeaponSpellBox [private] |
float MWGui::HUD::mWeaponSpellTimer [private] |
bool MWGui::HUD::mWeaponVisible [private] |
MyGUI::ProgressBar* MWGui::HUD::mWeapStatus [private] |
bool MWGui::HUD::mWorldMouseOver [private] |