Documentation

Lesson Error Counter

Description

Lesson Error Counter is a module that enables to display the summed up number of errors of the entire lesson.

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
--- ---

Supported commands

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

Advanced Connector integration

Each command supported by the Lesson Error Counter module can be used in the Advanced Connector addon's scripts. The below example shows how to show or hide the addon accordingly to the Double State Button module's state.

EVENTSTART
Source:DoubleStateButton1
Value:1
SCRIPTSTART
    var module = presenter.playerController.getModule('Lesson_Error_Counter_1');
    module.show();
SCRIPTEND
EVENTEND

EVENTSTART
Source:DoubleStateButton1
Value:0
SCRIPTSTART
    var module = presenter.playerController.getModule('Lesson_Error_Counter_1');
    module.hide();
SCRIPTEND
EVENTEND

CSS classes

Class name Description
--- ---

Lesson Error Counter module doesn't expose any CSS classes because its internal structure is only a text.

Example

.addon_Lesson_Error_Counter {
    text-align: center;
    border-radius: 5px;
    border: 2px solid black;
    color: red;
}

The above example shows default module styling.