forked from mirror/openmw-tes3mp
Merge pull request #1250 from resilar/mapbutton
Hide WorldButton when in game mode
This commit is contained in:
commit
993860a4b1
2 changed files with 7 additions and 0 deletions
|
@ -774,6 +774,12 @@ namespace MWGui
|
||||||
mLastScrollWindowCoordinates = currentCoordinates;
|
mLastScrollWindowCoordinates = currentCoordinates;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MapWindow::setVisible(bool visible)
|
||||||
|
{
|
||||||
|
WindowBase::setVisible(visible);
|
||||||
|
mButton->setVisible(visible && MWBase::Environment::get().getWindowManager()->isGuiMode());
|
||||||
|
}
|
||||||
|
|
||||||
void MapWindow::renderGlobalMap()
|
void MapWindow::renderGlobalMap()
|
||||||
{
|
{
|
||||||
mGlobalMapRender->render();
|
mGlobalMapRender->render();
|
||||||
|
|
|
@ -204,6 +204,7 @@ namespace MWGui
|
||||||
void setCellName(const std::string& cellName);
|
void setCellName(const std::string& cellName);
|
||||||
|
|
||||||
virtual void setAlpha(float alpha);
|
virtual void setAlpha(float alpha);
|
||||||
|
void setVisible(bool visible);
|
||||||
|
|
||||||
void renderGlobalMap();
|
void renderGlobalMap();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue