Files
types-ts-2take1/RAGE/Graphics.d.ts
2021-06-27 20:27:03 -05:00

56 lines
3.9 KiB
TypeScript

/**
* Graphics Functions
* @public
* @noSelf
*/
declare namespace graphics {
function get_screen_height(): int;
function get_screen_width(): int;
function request_named_ptfx_asset(asset: string): void;
function has_named_ptfx_asset_loaded(asset: string): boolean;
function set_next_ptfx_asset(asset: string): void;
function set_next_ptfx_asset_by_hash(hash: Hash): void;
function start_ptfx_looped_on_entity(name: string, e: Entity, offset: v3, rot: v3, scale: float): Ptfx;
function start_ptfx_non_looped_on_entity(name: string, e: Entity, offset: v3, rot: v3, scale: float): boolean;
function remove_ptfx_from_entity(entity: Entity): void;
function does_looped_ptfx_exist(ptfx: Ptfx): boolean;
function start_particle_fx_looped_at_coord(name: string, pos: v3, rot: v3, scale: float, xAxis: boolean, yAxis: boolean, zAxis: boolean, a8: boolean): Ptfx;
function start_particle_fx_non_looped_at_coord(name: string, pos: v3, rot: v3, scale: float, xAxis: boolean, yAxis: boolean, zAxis: boolean): boolean;
function start_networked_particle_fx_non_looped_at_coord(name: string, pos: v3, rot: v3, scale: float, xAxis: boolean, yAxis: boolean, zAxis: boolean): boolean;
function remove_particle_fx(ptfx: Ptfx, a2: boolean): void;
function remove_particle_fx_in_range(pos: v3, range: float): void;
function set_particle_fx_looped_offsets(ptfx: Ptfx, pos: v3, rot: v3): void;
function set_particle_fx_looped_evolution(ptfx: Ptfx, propertyName: string, amount: float, a4: boolean): void;
function set_particle_fx_looped_color(ptfx: Ptfx, r: float, b: float, g: float, a5: boolean): void;
function set_particle_fx_looped_alpha(ptfx: Ptfx, a: float): void;
function set_particle_fx_looped_scale(ptfx: Ptfx, scale: float): void;
function set_particle_fx_looped_far_clip_dist(ptfx: Ptfx, dist: float): void;
function enable_clown_blood_vfx(toggle: boolean): void;
function enable_alien_blood_vfx(toggle: boolean): void;
function animpostfx_play(effect: Hash, duration: int32_t, looped: boolean): void;
function animpostfx_stop(effect: Hash): void;
function animpostfx_is_running(effect: Hash): boolean;
function animpostfx_stop_all(): void;
function request_scaleform_movie(szName: string): any;
function begin_scaleform_movie_method(scaleform: any, szMethod: string): boolean;
function scaleform_movie_method_add_param_texture_name_string(val: string): void;
function scaleform_movie_method_add_param_int(val: int32_t): void;
function scaleform_movie_method_add_param_float(val: float): void;
function scaleform_movie_method_add_param_boolean(val: boolean): void;
function draw_scaleform_movie_fullscreen(scaleform: any, r: int, g: int, b: int, a: int, a6: int): void;
function draw_scaleform_movie(scaleform: any, x: float, y: float, w: float, h: float, r: int, g: int, b: int, a: int, a10: int): void;
function end_scaleform_movie_method(): void;
function draw_marker(type: any, pos: v3, dir: v3, rot: v3, scale: v3, red: int, green: int, blue: int, alpha: int, bobUpAndDown: boolean, faceCam: boolean, a12: int, rotate: boolean, textureDict: string|null, textureName: string|null, drawOntEnts: boolean): void;
function create_checkpoint(type: any, thisPos: v3, nextPos: v3, radius: float, red: int, green: int, blue: int, alpha: int, reserved: int): any;
function set_checkpoint_icon_height(checkpoint: any, height: float): void;
function set_checkpoint_cylinder_height(checkpoint: any, nearHeight: float, farHeight: float, radius: float): void;
function set_checkpoint_rgba(checkpoint: any, r: int, g: int, b: int, a: int): void;
function set_checkpoint_icon_rgba(checkpoint: any, r: int, g: int, b: int, a: int): void;
function delete_checkpoint(checkpoint: any): void;
function has_scaleform_movie_loaded(scaleform: any): boolean;
function set_scaleform_movie_as_no_longer_needed(scaleform: any): void;
}