Documentation

Lesson Reset

Description

The Lesson Reset module allows you to reset the lesson score and optionally the number of mistakes and checks.

Properties

Property name Description
Title Text that appears as a module 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.
show --- Shows the module.
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 below 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

Lesson Reset 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 on 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 this module.