| 84 | void CheatOptions::resume() {} |
| 85 | |
| 86 | void CheatOptions::finish() |
| 87 | { |
| 88 | /* Store persistent options */ |
| 89 | |
| 90 | config().set("OpenApoc.Cheat.InfiniteAmmo", |
| 91 | menuform->findControlTyped<CheckBox>("CHECKBOX_INFINITE_AMMO")->isChecked()); |
| 92 | |
| 93 | for (auto &desc : multiplierDescriptors) |
| 94 | { |
| 95 | auto bar = menuform->findControlTyped<ScrollBar>(desc.controlName); |
| 96 | config().set(desc.optionName, |
| 97 | scaleScrollbarToMultiplier(bar->getValue(), desc.multMin, desc.multMax, |
| 98 | bar->getMinimum(), bar->getMaximum())); |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | void CheatOptions::eventOccurred(Event *e) |
| 103 | { |
nothing calls this directly
no test coverage detected