Documentation
Lesson Reset
Description
The Lesson Reset module allows resetting the lesson score and optionally the number of mistakes and checks.
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 | Text that appears as the module's title. |
Reset mistakes | When this option is selected, the number of mistakes will be reset. |
Reset checks | When this option is selected, the number of checks will be reset. |
Supported commands
Command name | Params | Description |
---|---|---|
hide | --- | Hides the module if it is visible. |
show | --- | Shows the module if it is hidden. |
execute | --- | Allows calling the module's function by command. |
Advanced Connector integration
Each command supported by the Lesson Reset module can be used in the Advanced Connector's scripts. The following example shows how it interacts with the Single State Button module.
EVENTSTART
Name:ValueChanged
Source:SingleStateButton1
SCRIPTSTART
var lessonReset = presenter.playerController.getModule('LessonReset1');
lessonReset.show();
SCRIPTEND
EVENTEND
EVENTSTART
Name:ValueChanged
Source:SingleStateButton2
SCRIPTSTART
var lessonReset = presenter.playerController.getModule('LessonReset1');
lessonReset.hide();
SCRIPTEND
EVENTEND
Events
The Lesson Reset module does not send any events.
CSS classes
Class name | Description |
---|---|
ic_button_lesson_reset | Indicates the look of the Lesson Reset button. |
.ic_button_lesson_reset-up-hovering | Indicates the look of the Lesson Reset button while putting a mouse cursor on it. |
.ic_button_lesson_reset-down-hovering | Indicates the look of the Lesson Reset button while clicking it. |
Default Styling
.ic_button_lesson_reset {
background-image: url('images/reset.png');
background-repeat: no-repeat;
background-position: center;
cursor: pointer;
}
Demo presentation
Demo presentation contains examples of how to use the Lesson Reset module.