changed types and added utils/sw
This commit is contained in:
28
ts-lua/types/RAGE/ScriptDraw.d.ts
vendored
28
ts-lua/types/RAGE/ScriptDraw.d.ts
vendored
@@ -4,20 +4,20 @@
|
||||
*/
|
||||
declare namespace scriptdraw {
|
||||
|
||||
//void draw_text(string text, v2 pos, v2 size, float scale, uint32_t color, uint32_t flags)
|
||||
//void wdraw_text(wstring text, v2 pos, v2 size, float scale, uint32_t color, uint32_t flags)
|
||||
//uint32_t register_sprite(string path)
|
||||
//void draw_sprite(uint32_t id, v2 pos, float scale, float rot, uint32_t color)
|
||||
//void draw_line(v2 start, v2 end, uint32_t size, uint32_t color)
|
||||
//void draw_rect(v2 pos, v2 size, uint32_t color)
|
||||
//float pos_pixel_to_rel_x(float in)
|
||||
//float pos_pixel_to_rel_y(float in)
|
||||
//float pos_rel_to_pixel_x(float in)
|
||||
//float pos_rel_to_pixel_y(float in)
|
||||
//float size_pixel_to_rel_x(float in)
|
||||
//float size_pixel_to_rel_y(float in)
|
||||
//float size_rel_to_pixel_x(float in)
|
||||
//float size_rel_to_pixel_y(float in)
|
||||
function draw_text(text: string, pos: v2, size: v2, scale: float, color: uint32_t, flags: uint32_t): void;
|
||||
//function wdraw_text(text: wstring, pos: v2, size: v2, scale: float, color: uint32_t, flags: uint32_t): void;
|
||||
function register_sprite(path: string): uint32_t;
|
||||
function draw_sprite(id: uint32_t, pos: v2, scale: float, rot: float, color: uint32_t): void;
|
||||
function draw_line(start: v2, end: v2, size: uint32_t, color: uint32_t): void;
|
||||
function draw_rect(pos: v2, size: v2, color: uint32_t): void;
|
||||
function pos_pixel_to_rel_x(input: float): float;
|
||||
function pos_pixel_to_rel_y(input: float): float;
|
||||
function pos_rel_to_pixel_x(input: float): float;
|
||||
function pos_rel_to_pixel_y(input: float): float;
|
||||
function size_pixel_to_rel_x(input: float): float;
|
||||
function size_pixel_to_rel_y(input: float): float;
|
||||
function size_rel_to_pixel_x(input: float): float;
|
||||
function size_rel_to_pixel_y(input: float): float;
|
||||
|
||||
}
|
||||
|
||||
|
||||
16
ts-lua/types/RAGE/Utils.d.ts
vendored
16
ts-lua/types/RAGE/Utils.d.ts
vendored
@@ -4,7 +4,21 @@
|
||||
*/
|
||||
declare namespace utils {
|
||||
|
||||
|
||||
function str_to_vk(keyName: string): int
|
||||
//function string_to_wstring(str: string): wstring
|
||||
//function wstring_to_string(str: wstring): string
|
||||
function get_all_files_in_directory(path: string, extension: string): vector<string>
|
||||
function get_all_sub_directories_in_directory(path: string): vector<string>
|
||||
function file_exists(path: string): boolean
|
||||
function dir_exists(path: string): boolean
|
||||
function make_dir(path: string): boolean
|
||||
function get_appdata_path(dir: string, file: string): string
|
||||
function from_clipboard(): string
|
||||
function to_clipboard(str: string): void
|
||||
function time(): int
|
||||
function time_ms(): int
|
||||
function str_to_vecu64(str: string): vector<uint64_t>
|
||||
function vecu64_to_str(vec: vector<uint64_t>): string
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user