GUIRadio
new GUIRadio(id, options, guimanager, callback, append)
Creates a new GUIRadio
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 click (optional) |
Name append | Type bool | Description is added to the <body>. => True by default (optional) |
Options
- name: Name to group radio buttons
- x: Position left of radio button (in pixel)
- y: Position top of radio button (in pixel)
- size: Size of radio button (float) => "1.0" by default
- zIndex: Depth of the element (int) => 1 by default
- tabindex: Tab order of the field.
Methods
isChecked() → void
return if element is checked
setChecked(value) → void
check element
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 GUIRadio, and delete element.