mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-06 04:45:32 +00:00
Hide WorldButton when in game mode
This commit is contained in:
parent
ab8294b281
commit
785b3c3d01
2 changed files with 7 additions and 0 deletions
|
@ -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…
Reference in a new issue