Click or drag to resize

ASLSliderWithEcho Class

An Slider with Echo for ASL. You should not need to modify this script. However, when using an ASLSliderWithEcho, you will want to modify ASLSliderController as this class maintains all of the sliders and tells each one what to do when their value changes. This class simply initializes these sliders, maintains their state, and passes the slider values to other users. and allow
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          ASLASLSliderWithEcho

Namespace:  ASL
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public class ASLSliderWithEcho : MonoBehaviour

The ASLSliderWithEcho type exposes the following members.

Constructors
  NameDescription
Public methodASLSliderWithEcho
Initializes a new instance of the ASLSliderWithEcho class
Top
Methods
  NameDescription
Private methodFunctionToCallWhenSliderIsChangedByAUser
This function is called whenever a slider's value is changed, sending a packet to all users to inform them of the change
Public methodGetOldSliderValue
Returns the Old slider value
Public methodGetSliderValue
Returns the current slider value
Public methodInitilizeSlider
Initializes the slider
Private methodInitSliderRange
Sets the range of the slider
Private methodSetSliderLabel
Sets the label of the slider
Private methodSetSliderListener
Sets the slider's function to call when its value changes
Private methodSetSliderValue
Sets the slider's value
Private methodSliderValueChange
When the slider's value changes, this function is executed, which executes the slider's callback function
Private methodStart
Ensures the Slider, Echo, and Label are properly initialized as well as adds a listener to the slider to monitor when its value changes
Public methodUpdateSlider
Updates the slider value, old value, and echo
Top
Fields
  NameDescription
Private fieldm_OldSliderValue
The slider's previous value. Used to ensure multiple packets don't get sent for a value changed by other users
Private fieldmCallBack
The function that will be called when the slider is changed - sends the packet to all users
Public fieldTheEcho
The UI Text which echoes the slider's value
Public fieldTheLabel
The UI Text which represents the label of the slider
Public fieldTheSlider
The UI Slider
Top
See Also

Reference