settings: Add an option to show MCQ distance from good

This commit is contained in:
nemunaire 2022-01-20 16:06:27 +01:00
commit 63d8ae4ecd
4 changed files with 17 additions and 1 deletions

View file

@ -66,6 +66,7 @@ func ApplySettings(config settings.FICSettings) {
fic.PartialValidation = config.PartialValidation
fic.UnlockedChallengeDepth = config.UnlockedChallengeDepth
fic.DisplayAllFlags = config.DisplayAllFlags
fic.DisplayMCQBadCount = config.DisplayMCQBadCount
fic.FirstBlood = config.FirstBlood
fic.SubmissionCostBase = config.SubmissionCostBase
fic.HintCoefficient = config.HintCurCoefficient
@ -97,6 +98,7 @@ func ResetSettings() error {
UnlockedChallengeDepth: 0,
SubmissionUniqueness: false,
DisplayAllFlags: false,
DisplayMCQBadCount: false,
EventKindness: false,
})
}

View file

@ -211,6 +211,13 @@
</label>
</div>
<div class="form-check">
<label class="custom-control custom-checkbox">
<input class="custom-control-input" type="checkbox" ng-model="config.displayMCQBadCount">
<span class="custom-control-label">Afficher le décompte de mauvaises réponses des QCM</span>
</label>
</div>
<div class="form-check">
<label class="custom-control custom-checkbox">
<input class="custom-control-input" type="checkbox" ng-model="config.eventKindness">