Latite Scripting Documentation (Exports)
Exports > feature/module > ModuleEvents
Interface
Source: feature/module.d.ts:1
disable:
Function
Source: feature/module.d.ts:9
():
voidCalled on any module being disabled.
Source: feature/module.d.ts:9
void
enable:
Function
Source: feature/module.d.ts:5
():
voidCalled on any module being enabled.
Source: feature/module.d.ts:5
void
get-hold-to-toggle:
Function
Source: feature/module.d.ts:13
():
booleanCalled on every frame. Return a bool to set the toggle form of the module -
truemakes it a hold module, like player list;false, standard toggle form.Source: feature/module.d.ts:13
boolean
render:
Function
Source: feature/module.d.ts:21
(isPreview:
boolean, isEditor:boolean):voidCalled on every frame; use this to render something arbitrary.
Only available in HUD modules.
Source: feature/module.d.ts:21
Parameter Type Description isPreview booleanIf it's a preview in the main menu (when module settings are extended.) isEditor booleanIf it's in the HUD editor where you move modules around.
void
text:
Function
Source: feature/module.d.ts:31
(isPreview:
boolean, isEditor:boolean):stringCalled on every frame; use this to render text. Return a string to render it on the next frame.
Only available in text modules.
Source: feature/module.d.ts:31
Parameter Type isPreview booleanisEditor boolean
string