|
|
@ -629,7 +629,7 @@ namespace MWGui
|
|
|
|
, mGlobalMap(0)
|
|
|
|
, mGlobalMap(0)
|
|
|
|
, mGlobalMapImage(NULL)
|
|
|
|
, mGlobalMapImage(NULL)
|
|
|
|
, mGlobalMapOverlay(NULL)
|
|
|
|
, mGlobalMapOverlay(NULL)
|
|
|
|
, mGlobal(false)
|
|
|
|
, mGlobal(Settings::Manager::getBool("global", "Map"))
|
|
|
|
, mEventBoxGlobal(NULL)
|
|
|
|
, mEventBoxGlobal(NULL)
|
|
|
|
, mEventBoxLocal(NULL)
|
|
|
|
, mEventBoxLocal(NULL)
|
|
|
|
, mGlobalMapRender(new MWRender::GlobalMap(localMapRender->getRoot(), workQueue))
|
|
|
|
, mGlobalMapRender(new MWRender::GlobalMap(localMapRender->getRoot(), workQueue))
|
|
|
@ -667,7 +667,7 @@ namespace MWGui
|
|
|
|
|
|
|
|
|
|
|
|
getWidget(mButton, "WorldButton");
|
|
|
|
getWidget(mButton, "WorldButton");
|
|
|
|
mButton->eventMouseButtonClick += MyGUI::newDelegate(this, &MapWindow::onWorldButtonClicked);
|
|
|
|
mButton->eventMouseButtonClick += MyGUI::newDelegate(this, &MapWindow::onWorldButtonClicked);
|
|
|
|
mButton->setCaptionWithReplacing("#{sWorld}");
|
|
|
|
mButton->setCaptionWithReplacing( mGlobal ? "#{sLocal}" : "#{sWorld}");
|
|
|
|
|
|
|
|
|
|
|
|
getWidget(mEventBoxGlobal, "EventBoxGlobal");
|
|
|
|
getWidget(mEventBoxGlobal, "EventBoxGlobal");
|
|
|
|
mEventBoxGlobal->eventMouseDrag += MyGUI::newDelegate(this, &MapWindow::onMouseDrag);
|
|
|
|
mEventBoxGlobal->eventMouseDrag += MyGUI::newDelegate(this, &MapWindow::onMouseDrag);
|
|
|
@ -680,6 +680,9 @@ namespace MWGui
|
|
|
|
mEventBoxLocal->eventMouseButtonDoubleClick += MyGUI::newDelegate(this, &MapWindow::onMapDoubleClicked);
|
|
|
|
mEventBoxLocal->eventMouseButtonDoubleClick += MyGUI::newDelegate(this, &MapWindow::onMapDoubleClicked);
|
|
|
|
|
|
|
|
|
|
|
|
LocalMapBase::init(mLocalMap, mPlayerArrowLocal, Settings::Manager::getInt("local map widget size", "Map"), Settings::Manager::getInt("local map cell distance", "Map"));
|
|
|
|
LocalMapBase::init(mLocalMap, mPlayerArrowLocal, Settings::Manager::getInt("local map widget size", "Map"), Settings::Manager::getInt("local map cell distance", "Map"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mGlobalMap->setVisible(mGlobal);
|
|
|
|
|
|
|
|
mLocalMap->setVisible(!mGlobal);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MapWindow::onNoteEditOk()
|
|
|
|
void MapWindow::onNoteEditOk()
|
|
|
@ -912,6 +915,8 @@ namespace MWGui
|
|
|
|
mGlobalMap->setVisible(mGlobal);
|
|
|
|
mGlobalMap->setVisible(mGlobal);
|
|
|
|
mLocalMap->setVisible(!mGlobal);
|
|
|
|
mLocalMap->setVisible(!mGlobal);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Settings::Manager::setBool("global", "Map", mGlobal);
|
|
|
|
|
|
|
|
|
|
|
|
mButton->setCaptionWithReplacing( mGlobal ? "#{sLocal}" :
|
|
|
|
mButton->setCaptionWithReplacing( mGlobal ? "#{sLocal}" :
|
|
|
|
"#{sWorld}");
|
|
|
|
"#{sWorld}");
|
|
|
|
|
|
|
|
|
|
|
@ -921,6 +926,8 @@ namespace MWGui
|
|
|
|
|
|
|
|
|
|
|
|
void MapWindow::onPinToggled()
|
|
|
|
void MapWindow::onPinToggled()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
Settings::Manager::setBool("map pin", "Windows", mPinned);
|
|
|
|
|
|
|
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->setMinimapVisibility(!mPinned);
|
|
|
|
MWBase::Environment::get().getWindowManager()->setMinimapVisibility(!mPinned);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|