Documentation
Lesson Error Counter
Description
The Lesson Error Counter is a module that enables to display of 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 if it is visible. |
show | --- | Shows the module if it is hidden. |
Advanced Connector integration
Each command supported by the Lesson Error Counter module can be used in the Advanced Connector module's scripts. The below example shows how to show or hide the module accordingly to the state of the Double State Button module.
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 |
---|---|
--- | --- |
The Lesson Error Counter module doesn't expose any CSS classes because its internal structure is only text.
Example
.addon_Lesson_Error_Counter {
text-align: center;
border-radius: 5px;
border: 2px solid black;
color: red;
}
The above example shows the default styling of the module.