GUILabel

new GUILabel(id, options, guimanager, append)

Creates a new GUILabel

Parameters

NameTypeDescription
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
append
Type
bool
Description
is added to the <body>. => True by default (optional)

Options

  • w: width of label (in pixel)
  • h: height of label (in pixel)
  • x: position left of label (in pixel)
  • y: position top of label (in pixel)
  • text: value text label (string)
  • 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 GUILabel, and delete element.