|
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) |
| const MWWorld::Ptr & | getSelectedEnchantItem () |
| void | setSelectedWeapon (const MWWorld::Ptr &item, int durabilityPercent) |
| void | unsetSelectedSpell () |
| void | unsetSelectedWeapon () |
| void | setCrosshairVisible (bool visible) |
| void | setCrosshairOwned (bool owned) |
| void | onFrame (float dt) |
| Called every frame if the window is in an active GUI mode. More... | |
| void | setCellName (const std::string &cellName) |
| bool | getWorldMouseOver () |
| MyGUI::Widget * | getEffectBox () |
| void | setEnemy (const MWWorld::Ptr &enemy) |
| void | resetEnemy () |
| void | clear () |
| Clear any state specific to the running game. More... | |
Public Member Functions inherited from MWGui::WindowBase | |
| WindowBase (const std::string &parLayout) | |
| virtual MyGUI::Widget * | getDefaultKeyFocus () |
| virtual void | setPtr (const MWWorld::Ptr &ptr) |
| Open this object in the GUI, for windows that support it. More... | |
| virtual void | onOpen () |
| Notify that window has been made visible. More... | |
| virtual void | onClose () |
| Notify that window has been hidden. More... | |
| virtual bool | 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 () |
| virtual void | onResChange (int width, int height) |
| Called when GUI viewport changes size. More... | |
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::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 Types inherited from MWGui::WindowBase | |
| typedef MyGUI::delegates::CMultiDelegate1 < WindowBase * > | EventHandle_WindowBase |
Public Attributes inherited from MWGui::Layout | |
| MyGUI::Widget * | mMainWidget |
Protected Types inherited from MWGui::LocalMapBase | |
| typedef std::vector < std::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 |
|
virtual |
Clear any state specific to the running game.
Reimplemented from MWGui::WindowBase.
|
privatevirtual |
|
privatevirtual |
|
inline |
| const MWWorld::Ptr& MWGui::HUD::getSelectedEnchantItem | ( | ) |
|
inline |
|
virtual |
Called every frame if the window is in an active GUI mode.
Reimplemented from MWGui::WindowBase.
|
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 | ( | ) |
|
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 |
1.8.6