Documentation

Limited Show Answers

Description

Limited Show Answers is a module that allows users to view the correct answers in the specified modules.

Limited Show Answers module is based on Show Answers module. In addition to its base module, Limited Show Answers has some additional rules and functions:

  • when the Show Answers module is selected, all Limited Show Answers modules are also selected
  • all Limited Show Answers modules are also disabled in the error checking mode, triggered by Check Answers module
  • selecting one Limited Show Answers module will not select the Show Answers module or any other Limited Show module
  • selecting one Limited Show Answers module will deactivate the error checking mode on dependent modules covered by Limited Check Answer module
  • selecting one Limited Check Answer module will deactivate the show answers mode on dependent modules covered by Limited Check Answers and Check Answers modules
Note: Limited Show Aswers module and Limited Check must cover the same modules.

Properties

Property name Description
Text Text displayed on the button.
Text selected Text displayed on the button when it's selected.
Increment check counter When this option is selected, check counter will be increased while showing answers.
Increase mistake counter When this option is selected, mistake counter will be increased while showing answers.
Works with List of modules connected to Limited Check module. Each line should consist of separate modules' IDs.

Supported commands

Command name Params Description
hide --- Hides the module.
show --- Shows the module.

Advanced Connector integration

Each command supported by the Show Answers module can be used in the Advanced Connector's scripts. The below example shows how it interacts with the module Next.

EVENTSTART
    Name:AllAttempted
SCRIPTSTART
    var limitedShowAnswers = presenter.playerController.getModule('Limited_Show_Answers1');
    showAnswers.show();
SCRIPTEND
EVENTEND

EVENTSTART
    Name:NotAllAttempted
SCRIPTSTART
    var limitedShowAnswers = presenter.playerController.getModule('Limited_Show_Answers1');
    showAnswers.hide();
SCRIPTEND
EVENTEND

Events

Limited Show Answers sends events compatible with Advanced Connector.

It sends ValueChanged event when a user selects the button.

Field name Description
Value LimitedShowAnswers - it is sent when a user selects the button.
LimitedHideAnswers - it is sent when a user deselects the button.
Source Module ID of Limited Show Answers module
Item ["module1", "module2", "module3"] - an array of modules connected to Limited Check module as JSON object

CSS Classes

Property name Description
.limited-show-answers-wrapper The outer wrapper of the whole module.
.limited-show-answers-container The inner container of the whole addon.
.limited-show-answers-button Button element

.limited-show-answers-wrapper may have additional properties selected or disabled. The disabled module is simultaneously selected.

Default Styling

.limited-show-answers-wrapper,
.limited-show-answers-wrapper .limited-show-answers-container,
.limited-show-answers-wrapper .limited-show-answers-container .limited-show-answers-button {
    width: 100%;
    height: 100%;
}

.limited-show-answers-wrapper .limited-show-answers-container .limited-show-answers-button {
    background: url('resources/show-answers-button.png') no-repeat center;
    cursor: pointer;
    text-align: center;
}

Demo presentation

Demo presentation contains examples of how to use this module.