GUITexture
new GUITexture(id, imageUrl, options, guimanager, callback, append)
Creates a new GUITexture
Parameters
Name | Type | Description |
---|---|---|
Name id | Type string | Description The id and name element |
Name imageUrl | Type string | Description The image with path relative or absolute |
Name options | Type json | Description Options of element |
Name guimanager | Type GUIManager | Description The gui manager |
Name callback | Type function | Description Trigger function by click (optional) |
Name append | Type bool | Description is added to the <body>. => True by default (optional) |
Options
- w: width of image (in pixel)
- h: height of image (in pixel)
- x: position left of image (in pixel)
- y: position top of image (in pixel)
- zIndex: depth of the element (int) => 1 by default
Methods
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 GUITexture, and delete element.