changed types and added utils/sw
This commit is contained in:
16
ts-lua/types/Menu.d.ts
vendored
16
ts-lua/types/Menu.d.ts
vendored
@@ -8,27 +8,27 @@ declare namespace menu {
|
||||
|
||||
type featureTypes = "parent"|"toggle"|"action"|"value_i"|"action_value_i"|"autoaction_value_i";
|
||||
|
||||
export function add_feature(name: string, type: featureTypes, parent: type2take1.Feature, script_handler: (feat: Feat) => void): Feat;
|
||||
export function add_feature(name: string, type: featureTypes, parent: Feature, script_handler: (feat: Feat) => void): Feat;
|
||||
|
||||
export function delete_feature(id: type2take1.int): boolean;
|
||||
export function delete_feature(id: int): boolean;
|
||||
|
||||
export function set_menu_can_navigate(): void;
|
||||
|
||||
export function get_version(): void;
|
||||
|
||||
export function add_player_feature(name: string, type: string, parent: type2take1.integer, script_handler: (feat: Feat) => void): PlayerFeat
|
||||
export function add_player_feature(name: string, type: string, parent: integer, script_handler: (feat: Feat) => void): PlayerFeat
|
||||
|
||||
export function get_player_feature(i: type2take1.uint32_t): PlayerFeat
|
||||
export function get_player_feature(i: uint32_t): PlayerFeat
|
||||
|
||||
export function is_threading_mode(mode: type2take1.int): boolean
|
||||
export function is_threading_mode(mode: int): boolean
|
||||
|
||||
/**
|
||||
* @privateRemarks callback declaration may be wrong
|
||||
*/
|
||||
export function create_thread(callback: () => void, context: any): type2take1.Thread
|
||||
export function create_thread(callback: () => void, context: any): Thread
|
||||
|
||||
export function has_thread_finished(id: type2take1.Thread): boolean
|
||||
export function has_thread_finished(id: Thread): boolean
|
||||
|
||||
export function delete_thread(id: type2take1.Thread): boolean
|
||||
export function delete_thread(id: Thread): boolean
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user