1
0
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:
Laserlicht
2023-12-27 14:39:35 +01:00
committed by GitHub
parent bb6179d05e
commit fc4827c89c
14 changed files with 67 additions and 4 deletions

View File

@@ -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;