Skip to content

Commit

Permalink
Reverted code parts sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
Toliak committed Jul 31, 2021
1 parent f0abec2 commit e153c57
Show file tree
Hide file tree
Showing 122 changed files with 24,901 additions and 24,901 deletions.
4 changes: 2 additions & 2 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"void-return": false,
// Const Enum is forbidden? Well....
"no-const-enum": false,
// I have to use `Function` type
"ban-types": false
//
"no-unnecessary-generics": false
}
}
708 changes: 354 additions & 354 deletions types/mtasa/client/function/audio.d.ts

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions types/mtasa/client/function/blip.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,38 @@ export declare function createBlipAttachedTo(
visibleDistance?: number
): Blip;

/**
* This function will tell you what color a blip is. This color is only applicable to the
* default blip icon (Image:Blipid0s.png|12px, Image:Blipid0u.png|12px or
* Image:Blipid0d.png|12px). All other icons will ignore this.
* @see {@link https://wiki.multitheftauto.com/wiki/GetBlipColor Wiki, getBlipColor }
* @param theBlip The blip whose color you wish to get.
* @return returns four integers in rgba format, with a maximum value of 255 for each. the values
* are, in order, red, green, blue, and alpha. alpha decides the transparancy where 255 is
* opaque and 0 is fully transparent. false is returned if the blip is invalid.
* @noSelf
*/
export declare function getBlipColor(
theBlip: Blip
): LuaMultiReturn<[
number,
number,
number,
number
]>;

/**
* This function returns the icon a blip currently has.
* @see {@link https://wiki.multitheftauto.com/wiki/GetBlipIcon Wiki, getBlipIcon }
* @param theBlip : the blip were getting the icon number of.
* @return returns an int indicating which icon the blip has. valid values are listed on the radar
* blips page.
* @noSelf
*/
export declare function getBlipIcon(
theBlip: Blip
): number;

/**
* This function gets the Z ordering value of a blip. The Z ordering determines if a blip
* appears on top of or below other blips. Blips with a higher Z ordering value appear on
Expand All @@ -118,30 +150,37 @@ export declare function getBlipSize(
): number;

/**
* This function returns the icon a blip currently has.
* @see {@link https://wiki.multitheftauto.com/wiki/GetBlipIcon Wiki, getBlipIcon }
* @param theBlip : the blip were getting the icon number of.
* @return returns an int indicating which icon the blip has. valid values are listed on the radar
* blips page.
* This function will tell you what visible distance a blip has.
* @see {@link https://wiki.multitheftauto.com/wiki/GetBlipVisibleDistance Wiki, getBlipVisibleDistance }
* @param theBlip The blip whose visible distance you wish to get.
* @return returns one float with the blips visible distance, false if the blip is invalid.
* @noSelf
*/
export declare function getBlipIcon(
export declare function getBlipVisibleDistance(
theBlip: Blip
): number;

/**
* This function sets the Z ordering of a blip. It allows you to make a blip appear on top
* of or below other blips.
* @see {@link https://wiki.multitheftauto.com/wiki/SetBlipOrdering Wiki, setBlipOrdering }
* @param theBlip the blip whose Z ordering to change.
* @param ordering the new Z ordering value. Blips with higher values will appear on top of blips with lower
* values. Possible range: -32767 to 32767. Default: 0.
* @return returns true if the blip ordering was changed successfully, false otherwise.
* This function will let you change the color of a blip. This color is only applicable to
* the default blip icon (Image:Blipid0s.png|12px, Image:Blipid0u.png|12px or
* Image:Blipid0d.png|12px). All other icons will ignore this.
* @see {@link https://wiki.multitheftauto.com/wiki/SetBlipColor Wiki, setBlipColor }
* @param theBlip The blip whos color you wish to set.
* @param red The amount of red in the blips color (0 - 255).
* @param green The amount of green in the blips color (0 - 255).
* @param blue The amount of blue in the blips color (0 - 255).
* @param alpha The amount of alpha in the blips color (0 - 255). Alpha decides transparancy where 255
* is opaque and 0 is transparent.
* @return returns true if the blips color was set successfully. returns false if the blip passed to
* the function is invalid, or any of the colors are out of the valid range.
* @noSelf
*/
export declare function setBlipOrdering(
export declare function setBlipColor(
theBlip: Blip,
ordering: number
red: number,
green: number,
blue: number,
alpha: number
): boolean;

/**
Expand All @@ -159,6 +198,21 @@ export declare function setBlipIcon(
icon: number
): boolean;

/**
* This function sets the Z ordering of a blip. It allows you to make a blip appear on top
* of or below other blips.
* @see {@link https://wiki.multitheftauto.com/wiki/SetBlipOrdering Wiki, setBlipOrdering }
* @param theBlip the blip whose Z ordering to change.
* @param ordering the new Z ordering value. Blips with higher values will appear on top of blips with lower
* values. Possible range: -32767 to 32767. Default: 0.
* @return returns true if the blip ordering was changed successfully, false otherwise.
* @noSelf
*/
export declare function setBlipOrdering(
theBlip: Blip,
ordering: number
): boolean;

/**
* This function sets the size of a blips icon.
* @see {@link https://wiki.multitheftauto.com/wiki/SetBlipSize Wiki, setBlipSize }
Expand All @@ -174,29 +228,6 @@ export declare function setBlipSize(
iconSize: number
): boolean;

/**
* This function will let you change the color of a blip. This color is only applicable to
* the default blip icon (Image:Blipid0s.png|12px, Image:Blipid0u.png|12px or
* Image:Blipid0d.png|12px). All other icons will ignore this.
* @see {@link https://wiki.multitheftauto.com/wiki/SetBlipColor Wiki, setBlipColor }
* @param theBlip The blip whos color you wish to set.
* @param red The amount of red in the blips color (0 - 255).
* @param green The amount of green in the blips color (0 - 255).
* @param blue The amount of blue in the blips color (0 - 255).
* @param alpha The amount of alpha in the blips color (0 - 255). Alpha decides transparancy where 255
* is opaque and 0 is transparent.
* @return returns true if the blips color was set successfully. returns false if the blip passed to
* the function is invalid, or any of the colors are out of the valid range.
* @noSelf
*/
export declare function setBlipColor(
theBlip: Blip,
red: number,
green: number,
blue: number,
alpha: number
): boolean;

/**
* This function will set the visible distance of a blip.
* @see {@link https://wiki.multitheftauto.com/wiki/SetBlipVisibleDistance Wiki, setBlipVisibleDistance }
Expand All @@ -209,34 +240,3 @@ export declare function setBlipVisibleDistance(
theBlip: Blip,
theDistance: number
): boolean;

/**
* This function will tell you what color a blip is. This color is only applicable to the
* default blip icon (Image:Blipid0s.png|12px, Image:Blipid0u.png|12px or
* Image:Blipid0d.png|12px). All other icons will ignore this.
* @see {@link https://wiki.multitheftauto.com/wiki/GetBlipColor Wiki, getBlipColor }
* @param theBlip The blip whose color you wish to get.
* @return returns four integers in rgba format, with a maximum value of 255 for each. the values
* are, in order, red, green, blue, and alpha. alpha decides the transparancy where 255 is
* opaque and 0 is fully transparent. false is returned if the blip is invalid.
* @noSelf
*/
export declare function getBlipColor(
theBlip: Blip
): LuaMultiReturn<[
number,
number,
number,
number
]>;

/**
* This function will tell you what visible distance a blip has.
* @see {@link https://wiki.multitheftauto.com/wiki/GetBlipVisibleDistance Wiki, getBlipVisibleDistance }
* @param theBlip The blip whose visible distance you wish to get.
* @return returns one float with the blips visible distance, false if the blip is invalid.
* @noSelf
*/
export declare function getBlipVisibleDistance(
theBlip: Blip
): number;
Loading

0 comments on commit e153c57

Please sign in to comment.