init
This commit is contained in:
33
RAGE/ScriptDraw.d.ts
vendored
Normal file
33
RAGE/ScriptDraw.d.ts
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
* ScriptDraw Functions
|
||||
* @public
|
||||
* @noSelf
|
||||
*/
|
||||
declare namespace scriptdraw {
|
||||
|
||||
enum eDrawTextFlags {
|
||||
TEXTFLAG_NONE = 0,
|
||||
TEXTFLAG_CENTER = 1 << 0,
|
||||
TEXTFLAG_SHADOW = 1 << 1,
|
||||
TEXTFLAG_VCENTER = 1 << 2,
|
||||
TEXTFLAG_BOTTOM = 1 << 3,
|
||||
TEXTFLAG_JUSTIFY_RIGHT = 1 << 4,
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user