Documentation
Limited Reset
Description
Limited Reset is a module that allows you to add a button clicking on which will reset answers given in the specified modules.
Note: This module should not be used when a lesson has the Score type defined as first (more about score types can be found in documentation)!
The Limited Reset module is based on the Reset module. In addition to the base module, Limited Reset has additional rules and functions:
- when the Check module is selected, all Limited Reset modules are disabled during the error checking mode
- when the Show Answers module is selected and a user selects the Limited Reset module, the Show Answers module will be disabled and deselected
Properties
The list starts with the common properties, learn more about them by visiting the Modules description section. The other available properties are described below.
Property name | Description |
---|---|
Title | A title displayed inside the module. |
Works with | List of modules connected to the Limited Check module. Each line should consist of a separate module ID. |
Reset only wrong answers | Resets only wrong answers. |
Speech texts | List of speech texts:
Disabled,
Activity has been reset. This texts will be read by Text to Speech addon after a user performs an action. |
Supported commands
Command name | Params | Description |
---|---|---|
hide | --- | Hides the module. |
show | --- | Shows the module. |
Advanced Connector integration
Each command supported by the Limited Reset module can be used in the Advanced Connector's scripts. The below example shows how it interacts with the Single Stare Button module.
EVENTSTART
Name:ValueChanged
Source:SingleStateButton1
SCRIPTSTART
var limitedReset = presenter.playerController.getModule('LimitedReset1');
limitedReset.show();
SCRIPTEND
EVENTEND
EVENTSTART
Name:ValueChanged
Source:SingleStateButton2
SCRIPTSTART
var limitedReset = presenter.playerController.getModule('LimitedReset1');
limitedReset.hide();
SCRIPTEND
EVENTEND
Events
Limited Reset does not send any events.
CSS Classes
Class name | Description |
---|---|
.ic_button_limited_reset | indicates the look of the Limited Reset button |
.ic_button_limited_reset-up-hovering | indicates the look of the Limited Reset button while putting a mouse cursor on it. |
.ic_button_limited_reset-down-hovering | indicates the look of the Limited Reset button while clicking on it. |
Default Styling
.ic_button_limited_reset{ background-image :url('images/reset.png'); background-repeat :no-repeat; background-position :center; cursor: pointer; }
Custom Styling Example
.LimitedReset_MyClass{ background-color: #fefefe; border-radius: 2px; cursor: pointer; }
Demo presentation
Demo presentation contains examples of how to use this module.