VPX Documentation

Spinner

2min

Variables

Variables are items in vpx you can set, adjust or call.

Call

Detail

Example

Name(string)





X(float)





Y(float)





TimerEnabled(bool)





TimerInterval(int)

set interval for triggering the timer (1 equals 1000 timer calls per second, 1000 equals 1 timer call per second, -1 makes it dependent on the FPS that a user can reach)



Length(float)





Rotation(float)





Height(float)





Damping(float)

0..1



Image(string)





Material(string)





Surface(float)





UserValue(any)

can store any user defined value for re-use later-on



ShowBracket(bool)





AngleMax(float)





AngleMin(float)





Elasticity(float)





Visible(bool)





CurrentAngle(float)

only readable



ReflectionEnabled(bool)

default=true



Events

Event

Detail

Example

_Init

Called when item initialized , geenerally in table/game init.



_Timer

Used to interact with the spinners timer event



_Spin

When Spinner has spun

Sub myspinner_spin 'do something End Sub

_EOS

At the End of the Spin



_BOS

At the Beginning of the Spin





Updated 25 Mar 2024
Doc contributor
Did this page help you?