1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

disable buttons while loading (not changable)

This commit is contained in:
Laserlicht 2024-01-20 13:42:37 +01:00 committed by GitHub
parent a0098eb065
commit d6172a9c4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -413,11 +413,20 @@ void OptionsTabBase::recreate()
}
if(auto buttonCheatAllowed = widget<CToggleButton>("buttonCheatAllowed"))
{
buttonCheatAllowed->setSelectedSilent(SEL->getStartInfo()->extraOptionsInfo.cheatsAllowed);
buttonCheatAllowed->setInputEnabled(SEL->screenType != ESelectionScreen::loadGame);
}
if(auto buttonUnlimitedReplay = widget<CToggleButton>("buttonUnlimitedReplay"))
{
buttonUnlimitedReplay->setSelectedSilent(SEL->getStartInfo()->extraOptionsInfo.unlimitedReplay);
buttonUnlimitedReplay->setInputEnabled(SEL->screenType != ESelectionScreen::loadGame);
}
if(auto buttonInviteHero = widget<CToggleButton>("buttonInviteHero"))
{
buttonInviteHero->setSelectedSilent(SEL->getStartInfo()->extraOptionsInfo.inviteHero);
buttonInviteHero->setInputEnabled(SEL->screenType != ESelectionScreen::loadGame);
}
}