mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
option for allowing cheats
This commit is contained in:
@@ -90,6 +90,10 @@ OptionsTabBase::OptionsTabBase(const JsonPath & configPath)
|
||||
CSH->setSimturnsInfo(info);
|
||||
});
|
||||
|
||||
addCallback("setCheatAllowed", [&](int index){
|
||||
CSH->setCheatAllowedInfo(index);
|
||||
});
|
||||
|
||||
addCallback("setTurnTimerAccumulate", [&](int index){
|
||||
TurnTimerInfo info = SEL->getStartInfo()->turnTimerInfo;
|
||||
info.accumulatingTurnTimer = index;
|
||||
|
||||
Reference in New Issue
Block a user