mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-16 02:36:44 +00:00
Pack LocalMapBase members
This commit is contained in:
parent
79dbbceb10
commit
326544ade5
2 changed files with 12 additions and 24 deletions
|
@ -177,18 +177,8 @@ namespace MWGui
|
||||||
LocalMapBase::LocalMapBase(
|
LocalMapBase::LocalMapBase(
|
||||||
CustomMarkerCollection& markers, MWRender::LocalMap* localMapRender, bool fogOfWarEnabled)
|
CustomMarkerCollection& markers, MWRender::LocalMap* localMapRender, bool fogOfWarEnabled)
|
||||||
: mLocalMapRender(localMapRender)
|
: mLocalMapRender(localMapRender)
|
||||||
, mActiveCell(nullptr)
|
|
||||||
, mLocalMap(nullptr)
|
|
||||||
, mCompass(nullptr)
|
|
||||||
, mFogOfWarToggled(true)
|
|
||||||
, mFogOfWarEnabled(fogOfWarEnabled)
|
, mFogOfWarEnabled(fogOfWarEnabled)
|
||||||
, mNumCells(1)
|
|
||||||
, mCellDistance(0)
|
|
||||||
, mCustomMarkers(markers)
|
, mCustomMarkers(markers)
|
||||||
, mMarkerUpdateTimer(0.0f)
|
|
||||||
, mLastDirectionX(0.0f)
|
|
||||||
, mLastDirectionY(0.0f)
|
|
||||||
, mNeedDoorMarkersUpdate(false)
|
|
||||||
{
|
{
|
||||||
mCustomMarkers.eventMarkersChanged += MyGUI::newDelegate(this, &LocalMapBase::updateCustomMarkers);
|
mCustomMarkers.eventMarkersChanged += MyGUI::newDelegate(this, &LocalMapBase::updateCustomMarkers);
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,20 +112,20 @@ namespace MWGui
|
||||||
protected:
|
protected:
|
||||||
void updateLocalMap();
|
void updateLocalMap();
|
||||||
|
|
||||||
float mLocalMapZoom = 1.f;
|
|
||||||
MWRender::LocalMap* mLocalMapRender;
|
MWRender::LocalMap* mLocalMapRender;
|
||||||
|
const MWWorld::Cell* mActiveCell = nullptr;
|
||||||
const MWWorld::Cell* mActiveCell;
|
|
||||||
bool mHasALastActiveCell = false;
|
|
||||||
osg::Vec2f mCurPos; // the position of the player in the world (in cell coords)
|
osg::Vec2f mCurPos; // the position of the player in the world (in cell coords)
|
||||||
|
|
||||||
MyGUI::ScrollView* mLocalMap;
|
MyGUI::ScrollView* mLocalMap = nullptr;
|
||||||
MyGUI::ImageBox* mCompass;
|
MyGUI::ImageBox* mCompass = nullptr;
|
||||||
bool mFogOfWarToggled;
|
float mLocalMapZoom = 1.f;
|
||||||
|
bool mHasALastActiveCell = false;
|
||||||
|
bool mFogOfWarToggled = true;
|
||||||
bool mFogOfWarEnabled;
|
bool mFogOfWarEnabled;
|
||||||
|
bool mNeedDoorMarkersUpdate = false;
|
||||||
|
|
||||||
int mNumCells; // for convenience, mCellDistance * 2 + 1
|
int mNumCells = 1; // for convenience, mCellDistance * 2 + 1
|
||||||
int mCellDistance;
|
int mCellDistance = 0;
|
||||||
|
|
||||||
// Stores markers that were placed by a player. May be shared between multiple map views.
|
// Stores markers that were placed by a player. May be shared between multiple map views.
|
||||||
CustomMarkerCollection& mCustomMarkers;
|
CustomMarkerCollection& mCustomMarkers;
|
||||||
|
@ -185,12 +185,10 @@ namespace MWGui
|
||||||
void redraw();
|
void redraw();
|
||||||
float getWidgetSize() const;
|
float getWidgetSize() const;
|
||||||
|
|
||||||
float mMarkerUpdateTimer;
|
float mMarkerUpdateTimer = 0.f;
|
||||||
|
|
||||||
float mLastDirectionX;
|
float mLastDirectionX = 0.f;
|
||||||
float mLastDirectionY;
|
float mLastDirectionY = 0.f;
|
||||||
|
|
||||||
bool mNeedDoorMarkersUpdate;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void updateDoorMarkers();
|
void updateDoorMarkers();
|
||||||
|
|
Loading…
Reference in a new issue