Latite Scripting Documentation (Exports)
Exports > feature/module > Module
Class
Source: feature/module.d.ts:34
new Module( name:
string, displayName:string, description:string, key:KeyCode):Module
Source: feature/module.d.ts:60
| Parameter | Type | Description |
|---|---|---|
| name | string |
The internal name of the module. |
| displayName | string |
The display name of the module. Shown in the ClickGUI. |
| description | string |
A short description of what the module does. |
| key | KeyCode |
The default keybind to activate the module. |
readonlydescription:string
Source: feature/module.d.ts:37
readonlydisplayName:string
Source: feature/module.d.ts:36
readonlyid:number
IDs for script modules are always 255.
Source: feature/module.d.ts:43
readonlykey:KeyCode
Source: feature/module.d.ts:38
readonlyname:string
Source: feature/module.d.ts:35
on:
Function
Source: feature/module.d.ts:62
<K>(eventName:
K, handler:ModuleEvents[K]):voidSource: feature/module.d.ts:62
Parameter K extends keyof ModuleEvents
Parameter Type eventName Khandler ModuleEvents[K]
void
readonlyvisible:boolean
If the module is visible in the ClickGui
Source: feature/module.d.ts:51
readonlyvisual:boolean
If the module is a HUD module (that you can move in the hud editor)
Source: feature/module.d.ts:47
addBoolSetting( name:
string, displayName:string, description:string, defVal:boolean):Setting
Adds a setting.
Source: feature/module.d.ts:92
| Parameter | Type | Description |
|---|---|---|
| name | string |
The internal name |
| displayName | string |
The name that shows in the menu |
| description | string |
A short description of what the setting does |
| defVal | boolean |
The default value |
addColorSetting( name:
string, displayName:string, description:string, defVal:Color):Setting
Adds a setting.
- Source: feature/module.d.ts:131
| Parameter | Type | Description |
|---|---|---|
| name | string |
The internal name * |
| displayName | string |
The name that shows in the menu * |
| description | string |
A short description of what the setting does * |
| defVal | Color |
The default value |
addKeySetting( name:
string, displayName:string, description:string, defVal:KeyCode):Setting
Adds a setting.
- Source: feature/module.d.ts:113
| Parameter | Type | Description |
|---|---|---|
| name | string |
The internal name * |
| displayName | string |
The name that shows in the menu * |
| description | string |
A short description of what the setting does * |
| defVal | KeyCode |
The default value |
addNumberSetting( name:
string, displayName:string, description:string, min:number, max:number, interval:number, defVal:number):Setting
Adds a setting.
Source: feature/module.d.ts:104
| Parameter | Type | Description |
|---|---|---|
| name | string |
The internal name |
| displayName | string |
The name that shows in the menu |
| description | string |
A short description of what the setting does |
| min | number |
The minimum value |
| max | number |
The maximum value |
| interval | number |
The precision of the setting |
| defVal | number |
The default value |
addTextSetting( name:
string, displayName:string, description:string, defVal:string):Setting
Adds a setting.
- Source: feature/module.d.ts:122
| Parameter | Type | Description |
|---|---|---|
| name | string |
The internal name * |
| displayName | string |
The name that shows in the menu * |
| description | string |
A short description of what the setting does * |
| defVal | string |
The default value |
getSettings():
Setting[]
Gets the settings of the module.
Source: feature/module.d.ts:83
Setting[]
isBlocked():
boolean
Check if the module is blocked.
Source: feature/module.d.ts:78
boolean
isEnabled():
boolean
Checks if the module is enabled.
Source: feature/module.d.ts:67
boolean
setEnabled(b:
boolean):void
Set the module to be enabled or not.
Source: feature/module.d.ts:73
| Parameter | Type | Description |
|---|---|---|
| b | boolean |
The new status of the module. |
void