GUIColor
new GUIColor(id, options, guimanager, callback, append)
Creates a new GUIColor
Parameters
Name | Type | Description |
---|---|---|
Name id | Type string | Description The id and name element |
Name options | Type json | Description Options of element |
Name guimanager | Type GUIManager | Description The gui manager |
Name callback | Type function | Description Trigger function by change (optional) |
Name append | Type bool | Description is added to the <body>. => True by default (optional) |
Options
- w: width of slider (in pixel)
- h: height of slider (in pixel)
- x: position left of slider (in pixel)
- y: position top of slider (in pixel)
- value: Current value of the slider => "red" by default (optional)
- zIndex: depth of the element (int) => 1 by default
- tabindex: Tab order of the field.
Methods
getColor(bool: rgb) → void
Get the color value of element in rgb (true by default) or hex (false by default)
setVisible(bool: fade) → void
Set this GUI element to visible or invisible
isVisible() → void
Returns element if is visible or no
dispose() → void
Dispose the GUIColor, and delete element.