AutoColor

Auto color finding routines.

SetupAutoColors

procedure SetupAutoColors;

Need to initialize the global vars Which store information

Note

Author: Nava2 Last Modified: Unknown

Example:

SetupAutoColors;

LoadColorArray

function LoadColorArray(Which: Integer): TIntegerArray;

Returns a color array depending on the parameter Which.

Note

Author: Coh3n Last Modified: Unknown

Example:

colArray := LoadColorArray(srl_VarrockRoadColor);

LoadAutoColor

function LoadAutoColor(which: Integer; var theAC: TAutoColorInfo): Boolean;

Finds the color on the minimap depending on the parameter which.

Note

Author: Nava2 & Coh3n Last Modified: Unknown

Example:

foundColor := LoadAutoColor(srl_VarrockRoadColor, var_AutoColor);

AutoColorEx

function AutoColorEx(i: Integer): TAutoColorInfo;
Check the isACLoaded boolean for the asked AC, if true, we know the
AutoColorInfo has been loaded, and we will not do it again. Otherwise, load the initial TAutoColorInfo from the stored array of colours.

Note

Author: Nava2 & Coh3n Last Modified: Unknown

Example:

var_AutoColor := AutoColorEx(srl_VarrockRoadColor);

AutoColor

function AutoColor(i: Integer): Integer;

Returns the correct color based on the autocolor constant

Note

Author: Coh3n Last Modified: Unknown

Example:

Color := AutoColor(srl_VarrockRoadColor);