Hide WorldButton when in game mode

pull/196/head
def 8 years ago
parent ab8294b281
commit 785b3c3d01

@ -774,6 +774,12 @@ namespace MWGui
mLastScrollWindowCoordinates = currentCoordinates;
}
void MapWindow::setVisible(bool visible)
{
WindowBase::setVisible(visible);
mButton->setVisible(visible && MWBase::Environment::get().getWindowManager()->isGuiMode());
}
void MapWindow::renderGlobalMap()
{
mGlobalMapRender->render();

@ -204,6 +204,7 @@ namespace MWGui
void setCellName(const std::string& cellName);
virtual void setAlpha(float alpha);
void setVisible(bool visible);
void renderGlobalMap();

Loading…
Cancel
Save