Joystick style

From TargetWiki

A joystick style is a specialization of a widget style. It controls they way a joystick is drawn on the screen. All widget style functions can also be called on a joystick style.

Since a joystick style is a Lua object, calls should use the object:function() syntax. Also, all Lua object functions can also be called on a joystick style.

Functions

background()
Returns the backgroud <Box style>.
setbackground( <Box style> )
Sets the backgroud <Box style>.
linecolor()
Returns the line color as four numbers: <red>, <green>, <blue>, <alpha>.
setlinecolor( <red>, <green>, <blue>, <alpha> )
Sets the line color using values 0-255 for each of the parameters.
linewidth()
Returns the line width.
setlinewidth( <float> )
Sets the line width.
dotcolor()
Returns the dot color as four numbers: <red>, <green>, <blue>, <alpha>.
setdotcolor( <red>, <green>, <blue>, <alpha> )
Sets the dot color using values 0-255 for each of the parameters.
dotsize()
Returns the dot size.
setdotsize( <float> )
Sets the dot size.
Views