1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-25 00:37:24 +02:00

Add game pause

This commit is contained in:
nordsoft
2023-10-07 01:44:37 +02:00
parent 088ce9b948
commit d7d435dcb7
23 changed files with 83 additions and 18 deletions

View File

@ -75,6 +75,8 @@ SettingsMainWindow::SettingsMainWindow(BattleInterface * parentBattleUi) : Inter
std::shared_ptr<CToggleGroup> mainTabs = widget<CToggleGroup>("settingsTabs");
mainTabs->setSelected(defaultTabIndex);
LOCPLINT->gamePause(true);
}
std::shared_ptr<CIntObject> SettingsMainWindow::createTab(size_t index)
@ -108,6 +110,8 @@ void SettingsMainWindow::close()
{
if(!GH.windows().isTopWindow(this))
logGlobal->error("Only top interface must be closed");
LOCPLINT->gamePause(false);
GH.windows().popWindows(1);
}