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:
parent
a0098eb065
commit
d6172a9c4c
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user