|
OpenMW
|
#include <mapwindow.hpp>
Public Member Functions | |
| MapWindow (CustomMarkerCollection &customMarkers, DragAndDrop *drag, MWRender::LocalMap *localMapRender, SceneUtil::WorkQueue *workQueue) | |
| virtual | ~MapWindow () |
| void | setCellName (const std::string &cellName) |
| virtual void | setAlpha (float alpha) |
| void | setVisible (bool visible) |
| Sets the visibility of the window. More... | |
| void | renderGlobalMap () |
| void | addVisitedLocation (const std::string &name, int x, int y) |
| void | cellExplored (int x, int y) |
| void | setGlobalMapPlayerPosition (float worldX, float worldY) |
| void | setGlobalMapPlayerDir (const float x, const float y) |
| void | ensureGlobalMapLoaded () |
| virtual void | onOpen () |
| Notify that window has been made visible. More... | |
| void | onFrame (float dt) |
| Called every frame if the window is in an active GUI mode. More... | |
| virtual void | updateCustomMarkers () |
| void | clear () |
| Clear all savegame-specific data. More... | |
| void | write (ESM::ESMWriter &writer, Loading::Listener &progress) |
| void | readRecord (ESM::ESMReader &reader, uint32_t type) |
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 MyGUI::Widget * | getDefaultKeyFocus () |
| virtual void | setPtr (const MWWorld::Ptr &ptr) |
| Open this object in the GUI, for windows that support it. More... | |
| virtual void | onClose () |
| Notify that window has been hidden. More... | |
| virtual bool | exit () |
| Gracefully exits 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 () |
Public Member Functions inherited from MWGui::NoDrop | |
| NoDrop (DragAndDrop *drag, MyGUI::Widget *widget) | |
| void | onFrame (float dt) |
Private Types | |
| typedef std::pair< int, int > | CellId |
Private Member Functions | |
| void | onDragStart (MyGUI::Widget *_sender, int _left, int _top, MyGUI::MouseButton _id) |
| void | onMouseDrag (MyGUI::Widget *_sender, int _left, int _top, MyGUI::MouseButton _id) |
| void | onWorldButtonClicked (MyGUI::Widget *_sender) |
| void | onMapDoubleClicked (MyGUI::Widget *sender) |
| void | onCustomMarkerDoubleClicked (MyGUI::Widget *sender) |
| void | onNoteEditOk () |
| void | onNoteEditDelete () |
| void | onNoteEditDeleteConfirm () |
| void | onNoteDoubleClicked (MyGUI::Widget *sender) |
| void | onChangeScrollWindowCoord (MyGUI::Widget *sender) |
| void | globalMapUpdatePlayer () |
| void | setGlobalMapMarkerTooltip (MyGUI::Widget *widget, int x, int y) |
| virtual void | onPinToggled () |
| virtual void | onTitleDoubleClicked () |
| virtual void | doorMarkerCreated (MyGUI::Widget *marker) |
| virtual void | customMarkerCreated (MyGUI::Widget *marker) |
| virtual void | notifyPlayerUpdate () |
Private Attributes | |
| MyGUI::ScrollView * | mGlobalMap |
| std::unique_ptr< MyGUI::ITexture > | mGlobalMapTexture |
| std::unique_ptr< MyGUI::ITexture > | mGlobalMapOverlayTexture |
| MyGUI::ImageBox * | mGlobalMapImage |
| MyGUI::ImageBox * | mGlobalMapOverlay |
| MyGUI::ImageBox * | mPlayerArrowLocal |
| MyGUI::ImageBox * | mPlayerArrowGlobal |
| MyGUI::Button * | mButton |
| MyGUI::IntPoint | mLastDragPos |
| bool | mGlobal |
| MyGUI::IntCoord | mLastScrollWindowCoordinates |
| std::set< CellId > | mMarkers |
| std::vector< CellId > | mQueuedToExplore |
| MyGUI::Button * | mEventBoxGlobal |
| MyGUI::Button * | mEventBoxLocal |
| MWRender::GlobalMap * | mGlobalMapRender |
| std::map< std::pair< int, int > , MyGUI::Widget * > | mGlobalMapMarkers |
| EditNoteDialog | mEditNoteDialog |
| ESM::CustomMarker | mEditingMarker |
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 | |
| void | applyFogOfWar () |
| MyGUI::IntPoint | getMarkerPosition (float worldX, float worldY, MarkerUserData &markerPos) |
| virtual void | notifyMapChanged () |
| void | updateMagicMarkers () |
| void | addDetectionMarkers (int type) |
| void | redraw () |
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 |
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 |
|
private |
| MWGui::MapWindow::MapWindow | ( | CustomMarkerCollection & | customMarkers, |
| DragAndDrop * | drag, | ||
| MWRender::LocalMap * | localMapRender, | ||
| SceneUtil::WorkQueue * | workQueue | ||
| ) |
|
virtual |
adds the marker to the global map
| name | The ESM::Cell::mName |
|
virtual |
Clear all savegame-specific data.
Reimplemented from MWGui::WindowBase.
|
privatevirtual |
|
privatevirtual |
| void MWGui::MapWindow::ensureGlobalMapLoaded | ( | ) |
|
private |
|
privatevirtual |
|
private |
|
private |
|
private |
|
virtual |
Called every frame if the window is in an active GUI mode.
Reimplemented from MWGui::WindowBase.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
virtual |
Notify that window has been made visible.
Reimplemented from MWGui::WindowBase.
|
privatevirtual |
|
privatevirtual |
|
private |
| void MWGui::MapWindow::readRecord | ( | ESM::ESMReader & | reader, |
| uint32_t | type | ||
| ) |
| void MWGui::MapWindow::renderGlobalMap | ( | ) |
|
virtual |
| void MWGui::MapWindow::setCellName | ( | const std::string & | cellName | ) |
| void MWGui::MapWindow::setGlobalMapPlayerDir | ( | const float | x, |
| const float | y | ||
| ) |
| void MWGui::MapWindow::setGlobalMapPlayerPosition | ( | float | worldX, |
| float | worldY | ||
| ) |
|
virtual |
Sets the visibility of the window.
Reimplemented from MWGui::WindowBase.
|
virtual |
| void MWGui::MapWindow::write | ( | ESM::ESMWriter & | writer, |
| Loading::Listener & | progress | ||
| ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.6