This commit is contained in:
2021-06-23 21:29:51 -05:00
parent 3b0ee59f47
commit 655edc3d16
45 changed files with 963 additions and 0 deletions

45
ts-lua/types/Menu.d.ts vendored Normal file
View File

@@ -0,0 +1,45 @@
/**
* Menu Functions
* @public
*/
declare namespace menu {
/**
* @param parent integer
*/
export function add_feature(name: string, type: string, parent: number, script_handler: (feat: Feat) => void): Feat;
/**
* @param id int
*/
export function delete_feature(id: number): boolean;
export function set_menu_can_navigate(): void;
export function get_version(): void;
/**
* @param parent integer
*/
export function add_player_feature(name: string, type: string, parent: number, script_handler: (feat: Feat) => void): PlayerFeat
/**
* @param i uint32_t
*/
export function get_player_feature(i: number): PlayerFeat
/**
* @param mode int
*/
export function is_threading_mode(mode: number): boolean
/**
* @privateRemarks callback declaration may be wrong
*/
export function create_thread(callback: () => void, context: any): lua2take1.Thread
export function has_thread_finished(id: lua2take1.Thread): boolean
export function delete_thread(id: lua2take1.Thread): boolean
}