OpenMW
|
#include <hud.hpp>
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 () |
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::LocalMap * | mLocalMapRender |
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 |
CustomMarkerCollection & | mCustomMarkers |
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 |
MWGui::HUD::HUD | ( | CustomMarkerCollection & | customMarkers, |
DragAndDrop * | dragAndDrop, | ||
MWRender::LocalMap * | localMapRender | ||
) |
|
virtual |
|
privatevirtual |
|
privatevirtual |
|
inline |
|
inline |
void MWGui::HUD::onFrame | ( | float | dt | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
void MWGui::HUD::resetEnemy | ( | ) |
void MWGui::HUD::setCellName | ( | const std::string & | cellName | ) |
void MWGui::HUD::setCrosshairOwned | ( | bool | owned | ) |
void MWGui::HUD::setCrosshairVisible | ( | bool | visible | ) |
void MWGui::HUD::setDrowningBarVisible | ( | bool | visible | ) |
void MWGui::HUD::setDrowningTimeLeft | ( | float | time, |
float | maxTime | ||
) |
Set time left for the player to start drowning
time | time left to start drowning |
maxTime | how long we can be underwater (in total) until drowning starts |
void MWGui::HUD::setEffectVisible | ( | bool | visible | ) |
void MWGui::HUD::setEnemy | ( | const MWWorld::Ptr & | enemy | ) |
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::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 | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |