Auto color finding routines.
{ Description: Constants representing the different types of AutoColors }
const
srl_AutoColorCount = 13;
srl_VarrockRoadColor = 0;
srl_LumbridgeRoadColor = 1;
srl_FaladorRoadColor = 2;
srl_AlKharidRoadColor = 3;
srl_DarkDirtRoadColor = 4;
srl_LightDirtRoadColor = 5;
srl_SandColor = 6;
srl_WaterColor = 7;
srl_SwampWaterColor = 8;
srl_LadderColor = 9;
srl_RockColor = 10;
srl_MineRockColor = 11;
srl_TreeColor = 12;
procedure SetupAutoColors;
Need to initialize the global vars Which store information
Note
by Nava2
Example:
function LoadColorArray(Which: Integer): TIntegerArray;
Returns a color array depending on the parameter Which.
Note
by Coh3n
Example:
function LoadAutoColor(which: Integer; var theAC: TAutoColorInfo): Boolean;
Finds the color on the minimap depending on the parameter which.
Note
by Nava2 & Coh3n
Example:
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
by Nava2 & Coh3n
Example:
function AutoColor(which: Integer): Integer;
Returns the correct color based on the autocolor constant
Note
by Coh3n
Example: