mirror of
https://github.com/OpenMW/openmw.git
synced 2025-11-03 17:56:40 +00:00
Hide main menu on new and loading game from menu scripts
This commit is contained in:
parent
a6676fd6f3
commit
d400c0959c
1 changed files with 2 additions and 0 deletions
|
|
@ -757,12 +757,14 @@ void MWState::StateManager::update(float duration)
|
||||||
|
|
||||||
if (mNewGameRequest)
|
if (mNewGameRequest)
|
||||||
{
|
{
|
||||||
|
MWBase::Environment::get().getWindowManager()->removeGuiMode(MWGui::GM_MainMenu);
|
||||||
newGame();
|
newGame();
|
||||||
mNewGameRequest = false;
|
mNewGameRequest = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mLoadRequest)
|
if (mLoadRequest)
|
||||||
{
|
{
|
||||||
|
MWBase::Environment::get().getWindowManager()->removeGuiMode(MWGui::GM_MainMenu);
|
||||||
loadGame(*mLoadRequest);
|
loadGame(*mLoadRequest);
|
||||||
mLoadRequest = std::nullopt;
|
mLoadRequest = std::nullopt;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue