mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03: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)
|
||||
{
|
||||
MWBase::Environment::get().getWindowManager()->removeGuiMode(MWGui::GM_MainMenu);
|
||||
newGame();
|
||||
mNewGameRequest = false;
|
||||
}
|
||||
|
||||
if (mLoadRequest)
|
||||
{
|
||||
MWBase::Environment::get().getWindowManager()->removeGuiMode(MWGui::GM_MainMenu);
|
||||
loadGame(*mLoadRequest);
|
||||
mLoadRequest = std::nullopt;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue