OpenMW
|
#include <mapwindow.hpp>
Public Member Functions | |
MapWindow (CustomMarkerCollection &customMarkers, DragAndDrop *drag, MWRender::LocalMap *localMapRender) | |
virtual | ~MapWindow () |
void | setCellName (const std::string &cellName) |
virtual void | setAlpha (float alpha) |
void | renderGlobalMap (Loading::Listener *loadingListener) |
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) |
virtual void | open () |
Notify that window has been made visible. More... | |
void | onFrame (float dt) |
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 void | close () |
Notify that window has been hidden. More... | |
virtual void | 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 () |
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::auto_ptr< MyGUI::ITexture > | mGlobalMapTexture |
std::auto_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 < boost::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 | ||
) |
|
virtual |
adds the marker to the global map
name | The ESM::Cell::mName |
void MWGui::MapWindow::clear | ( | ) |
Clear all savegame-specific data.
|
privatevirtual |
|
privatevirtual |
|
private |
|
privatevirtual |
|
private |
|
private |
|
private |
void MWGui::MapWindow::onFrame | ( | float | dt | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
privatevirtual |
|
privatevirtual |
|
private |
|
virtual |
Notify that window has been made visible.
Reimplemented from MWGui::WindowBase.
void MWGui::MapWindow::readRecord | ( | ESM::ESMReader & | reader, |
uint32_t | type | ||
) |
void MWGui::MapWindow::renderGlobalMap | ( | Loading::Listener * | loadingListener | ) |
|
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 |
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 |