OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MWGui::HUD Class Reference

#include <hud.hpp>

Inheritance diagram for MWGui::HUD:
Collaboration diagram for MWGui::HUD:

Public Member Functions

 HUD (CustomMarkerCollection &customMarkers, DragAndDrop *dragAndDrop, MWRender::LocalMap *localMapRender)
 
virtual ~HUD ()
 
void setValue (const std::string &id, const MWMechanics::DynamicStat< float > &value)
 
void setDrowningTimeLeft (float time, float maxTime)
 
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 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 setCrosshairOwned (bool owned)
 
void onFrame (float dt)
 
void setCellName (const std::string &cellName)
 
bool getWorldMouseOver ()
 
MyGUI::Widget * getEffectBox ()
 
void update ()
 
void setEnemy (const MWWorld::Ptr &enemy)
 
void resetEnemy ()
 
- 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)
 
virtual void setVisible (bool b)
 
void setText (const std::string &name, const std::string &caption)
 
void setTitle (const std::string &title)
 
- Public Member Functions inherited from MWGui::LocalMapBase
 LocalMapBase (CustomMarkerCollection &markers, MWRender::LocalMap *localMapRender, bool fogOfWarEnabled=true)
 
virtual ~LocalMapBase ()
 
void init (MyGUI::ScrollView *widget, MyGUI::ImageBox *compass, int mapWidgetSize, int cellDistance)
 
void setCellPrefix (const std::string &prefix)
 
void setActiveCell (const int x, const int y, bool interior=false)
 
void requestMapRender (const MWWorld::CellStore *cell)
 
void setPlayerDir (const float x, const float y)
 
void setPlayerPos (int cellX, int cellY, const float nx, const float ny)
 
void onFrame (float dt)
 
bool toggleFogOfWar ()
 

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)
 
virtual void customMarkerCreated (MyGUI::Widget *marker)
 
virtual void doorMarkerCreated (MyGUI::Widget *marker)
 
void updateEnemyHealthBar ()
 
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
 
ItemWidgetmWeapImage
 
ItemWidgetmSpellImage
 
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
 
int mHealthManaStaminaBaseLeft
 
int mWeapBoxBaseLeft
 
int mSpellBoxBaseLeft
 
int mSneakBoxBaseLeft
 
int mMinimapBoxBaseRight
 
int mEffectBoxBaseRight
 
DragAndDropmDragAndDrop
 
std::string mCellName
 
float mCellNameTimer
 
std::string mWeaponName
 
std::string mSpellName
 
float mWeaponSpellTimer
 
bool mMapVisible
 
bool mWeaponVisible
 
bool mSpellVisible
 
bool mWorldMouseOver
 
SpellIconsmSpellIcons
 
int mEnemyActorId
 
float mEnemyHealthTimer
 
bool mIsDrowning
 
float mDrowningFlashTheta
 

Additional Inherited Members

- Public Attributes inherited from MWGui::Layout
MyGUI::Widget * mMainWidget
 
- Protected Types inherited from MWGui::LocalMapBase
typedef std::vector
< boost::shared_ptr
< MyGUI::ITexture > > 
TextureVector
 
- Protected Member Functions inherited from MWGui::LocalMapBase
virtual void updateCustomMarkers ()
 
void applyFogOfWar ()
 
MyGUI::IntPoint getMarkerPosition (float worldX, float worldY, MarkerUserData &markerPos)
 
virtual void notifyPlayerUpdate ()
 
virtual void notifyMapChanged ()
 
void updateMagicMarkers ()
 
void addDetectionMarkers (int type)
 
void redraw ()
 
- Protected Attributes inherited from MWGui::Layout
std::string mPrefix
 
std::string mLayoutName
 
MyGUI::VectorWidgetPtr mListWindowRoot
 
- Protected Attributes inherited from MWGui::LocalMapBase
MWRender::LocalMapmLocalMapRender
 
int mCurX
 
int mCurY
 
bool mInterior
 
MyGUI::ScrollView * mLocalMap
 
MyGUI::ImageBox * mCompass
 
std::string mPrefix
 
bool mChanged
 
bool mFogOfWarToggled
 
bool mFogOfWarEnabled
 
int mMapWidgetSize
 
int mNumCells
 
int mCellDistance
 
CustomMarkerCollectionmCustomMarkers
 
std::vector< MyGUI::ImageBox * > mMapWidgets
 
std::vector< MyGUI::ImageBox * > mFogWidgets
 
TextureVector mMapTextures
 
TextureVector mFogTextures
 
std::vector< MyGUI::Widget * > mDoorMarkerWidgets
 
std::vector< MyGUI::Widget * > mMagicMarkerWidgets
 
std::vector< MyGUI::Widget * > mCustomMarkerWidgets
 
float mMarkerUpdateTimer
 
float mLastDirectionX
 
float mLastDirectionY
 

Constructor & Destructor Documentation

MWGui::HUD::HUD ( CustomMarkerCollection customMarkers,
DragAndDrop dragAndDrop,
MWRender::LocalMap localMapRender 
)

Here is the call graph for this function:

MWGui::HUD::~HUD ( )
virtual

Member Function Documentation

void MWGui::HUD::customMarkerCreated ( MyGUI::Widget *  marker)
privatevirtual

Reimplemented from MWGui::LocalMapBase.

Here is the call graph for this function:

void MWGui::HUD::doorMarkerCreated ( MyGUI::Widget *  marker)
privatevirtual

Reimplemented from MWGui::LocalMapBase.

Here is the call graph for this function:

MyGUI::Widget* MWGui::HUD::getEffectBox ( )
inline
bool MWGui::HUD::getWorldMouseOver ( )
inline

Here is the caller graph for this function:

void MWGui::HUD::onFrame ( float  dt)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::HUD::onHMSClicked ( MyGUI::Widget *  _sender)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::HUD::onMagicClicked ( MyGUI::Widget *  _sender)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::HUD::onMapClicked ( MyGUI::Widget *  _sender)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::HUD::onWeaponClicked ( MyGUI::Widget *  _sender)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::HUD::onWorldClicked ( MyGUI::Widget *  _sender)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::HUD::onWorldMouseLostFocus ( MyGUI::Widget *  _sender,
MyGUI::Widget *  _new 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::HUD::onWorldMouseOver ( MyGUI::Widget *  _sender,
int  x,
int  y 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::HUD::resetEnemy ( )

Here is the caller graph for this function:

void MWGui::HUD::setCellName ( const std::string &  cellName)

Here is the caller graph for this function:

void MWGui::HUD::setCrosshairOwned ( bool  owned)

Here is the caller graph for this function:

void MWGui::HUD::setCrosshairVisible ( bool  visible)

Here is the caller graph for this function:

void MWGui::HUD::setDrowningBarVisible ( bool  visible)

Here is the caller graph for this function:

void MWGui::HUD::setDrowningTimeLeft ( float  time,
float  maxTime 
)

Set time left for the player to start drowning

Parameters
timetime left to start drowning
maxTimehow long we can be underwater (in total) until drowning starts

Here is the caller graph for this function:

void MWGui::HUD::setEffectVisible ( bool  visible)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::HUD::setEnemy ( const MWWorld::Ptr enemy)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::HUD::setHmsVisible ( bool  visible)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::HUD::setMinimapVisible ( bool  visible)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::HUD::setSelectedEnchantItem ( const MWWorld::Ptr item,
int  chargePercent 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::HUD::setSelectedSpell ( const std::string &  spellId,
int  successChancePercent 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::HUD::setSelectedWeapon ( const MWWorld::Ptr item,
int  durabilityPercent 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::HUD::setSneakVisible ( bool  visible)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::HUD::setSpellVisible ( bool  visible)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::HUD::setValue ( const std::string &  id,
const MWMechanics::DynamicStat< float > &  value 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::HUD::setWeapVisible ( bool  visible)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::HUD::unsetSelectedSpell ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::HUD::unsetSelectedWeapon ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::HUD::update ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::HUD::updateEnemyHealthBar ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::HUD::updatePositions ( )
private

Here is the caller graph for this function:

Member Data Documentation

std::string MWGui::HUD::mCellName
private
MyGUI::TextBox* MWGui::HUD::mCellNameBox
private
float MWGui::HUD::mCellNameTimer
private
MyGUI::ImageBox* MWGui::HUD::mCompass
private
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::mEffectBox
private
int MWGui::HUD::mEffectBoxBaseRight
private
int MWGui::HUD::mEnemyActorId
private
MyGUI::ProgressBar * MWGui::HUD::mEnemyHealth
private
float MWGui::HUD::mEnemyHealthTimer
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
ItemWidget * 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::Widget* MWGui::HUD::mWeapBox
private
int MWGui::HUD::mWeapBoxBaseLeft
private
ItemWidget* 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

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