Skip to content

watermelonoof/SliderTools

Repository files navigation

SliderTools-AI2-Kodular-Extension

Some useful feature for sliders in AI2 and its disturbution.

Blocks

Blocks Description
ErrorOccurred Rasies when any error occurred.

Params Type Description
error String Return an exception error in String form.
OnChange Raises when any registered slider's thumb position changed.
If it is changed by the user, fromUser will be true, otherwise false.

Params Type Description
component Component (Slider) Return the component
that it's thumb position changed.
progress Number (float) Return the position of the slider
that it's thumn position changed.
fromUser boolean Return true if the change is made by the User,
otherwise false.
OnTouchDown Rasies when any registered slider is touched down.

Params Type Description
component Component (Slider) Return the component that has been touched down.
OnTouchUp Rasies when any registered slider is touched up.

Params Type Description
component Component (Slider) Return the component that has been touched up.
Register Register a slider component.

Params Type Description
slider Component (slider) Input a slider component to register.
Unregister Unregister a slider component.

Params Type Description
slider Component (slider) Input a slider component to unregister.

Errors

The Error Ocuured event will only return exception error.

Change Log

v1.2

  • Bug fixed - Change event will work now
  • Removed useless variable and Hashtable

v1.1

  • Changed the name of OnChange to Changed, suggested by @Vishwas

Reference

Kodular Community MIT AI2 Community

About

Some useful feature for sliders in AI2 and its disturbution.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages