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

Property name Description
Check text Text displayed on the button.
Uncheck text Text displayed on the button when it's selected.
Works with List of modules connected to the Limited Check module. Each line should consist of a separate module ID.

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.