Latite Scripting Documentation (Exports)
Exports > feature/hudmodule > HudModule
Class
Source: feature/hudmodule.d.ts:1
Module.HudModule
new HudModule( name:
string, displayName:string, description:string, key:KeyCode, resizable:boolean):HudModule
Source: feature/hudmodule.d.ts:2
| Parameter | Type |
|---|---|
| name | string |
| displayName | string |
| description | string |
| key | KeyCode |
| resizable | boolean |
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 |
getPos():
Vector2
Source: feature/hudmodule.d.ts:9
getRect():
Rect
Source: feature/hudmodule.d.ts:4
getSettings():
Setting[]
Gets the settings of the module.
Source: feature/module.d.ts:83
Setting[]
getSize():
number
Source: feature/hudmodule.d.ts:7
number
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
setBounds(width:
number, height:number):void
Source: feature/hudmodule.d.ts:6
| Parameter | Type |
|---|---|
| width | number |
| height | number |
void
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
setPos(x:
number, y:number):void
Source: feature/hudmodule.d.ts:10
| Parameter | Type |
|---|---|
| x | number |
| y | number |
void
setRect(newRect:
Rect):void
Source: feature/hudmodule.d.ts:5
| Parameter | Type |
|---|---|
| newRect | Rect |
void
setSize():
number
Source: feature/hudmodule.d.ts:8
number