|
|
string | align |
| | text alignement: "centred" | "left"| "right" | "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight"
|
| |
|
number | alpha |
| | transparency value between 0.0 and 1.0
|
| |
|
string | backgroundColour |
| | background colour: colour string that defines the desired colour. It can be either a named colour like "blue" or "red" or an hexadecimal string in RGB ("#FF00CC") or ARGB ("#3C00FECD") format
|
| |
|
string | backgroundImage |
| | path to background image
|
| |
|
table | bounds |
| | widget bounding rect {x,y,width,height}
|
| |
|
function | changed |
| | callback function used by child widgets to be notified of changes
|
| |
|
number | default |
| | the widget's default value
|
| |
|
string | displayName |
| | widget display name
|
| |
|
string | displayText |
| | custom text to display in place of the standard value display. To revert to the standard behaviour, leave it empty.
|
| |
|
bool | enabled |
| | boolean flag to enable / disable the widget
|
| |
|
string | font |
| | path to custom font file
|
| |
|
number | fontSize |
| | font size
|
| |
|
int | height |
| | widget height in pixels
|
| |
|
bool | interceptsMouseClicks |
| | boolean flag to toggle mouse handling on widget
|
| |
|
Mapper::Type | mapper |
| | Mapper type, default is Mapper.Linear.
|
| |
|
number | max |
| | the widget's maximum value
|
| |
|
number | min |
| | the widget's minimum value
|
| |
|
string | name |
| | widget name
|
| |
|
int | paramId |
| | parameter id
|
| |
|
bool | persistent |
| | flag to tell if the widget values should be serialized when saving. True by default. Persistent widgets will call their changed function on reload
|
| |
|
table | position |
| | widget position {x,y}
|
| |
|
bool | showLabel |
| | show widgets label if any
|
| |
|
table | size |
| | widget size {width, height}
|
| |
|
string | textColour |
| | text colour: colour string that defines the desired colour. It can be either a named colour like "blue" or "red" or an hexadecimal string in RGB ("#FF00CC") or ARGB ("#3C00FECD") format
|
| |
|
string | tooltip |
| | widget tooltip, default is name
|
| |
|
Unit::Type | unit |
| | Unit type, default is Unit.Generic.
|
| |
|
number | value |
| | the widget's value
|
| |
|
bool | visible |
| | boolean flag to toggle widget visibility
|
| |
|
int | width |
| | widget width in pixels
|
| |
|
int | x |
| | x position in pixels
|
| |
|
int | y |
| | y position in pixels
|
| |
Numeric spinner label.
creates a numbox widget on the user inteface.
n =
NumBox(
"numbox", 0.5, 0.0, 1.0,
false)
n.changed = function(self)
print("numbox changed", self.value)
end