SCAR Code:function FindDoorColor: Integer;
var
rx, ry : integer;
begin
FindColorRecordEx(rx, ry, 3227209, MSX1, MSY1, MSX2, MSY2, false); // error line
end;
any help?
SCAR Code:function FindDoorColor: Integer;
var
rx, ry : integer;
begin
FindColorRecordEx(rx, ry, 3227209, MSX1, MSY1, MSX2, MSY2, false); // error line
end;
any help?
The third parameter needs to be a TAutoColorInfo, not an integer.
EDIT: Here's the description of it in Globals.scar:
SCAR Code:{ type TAutoColorInfo;
Description: Set of information that can be used in some functions. }
type
TAutoColorInfo = record
Name: string;
Color: Integer;
ColorArray: TIntegerArray;
MinCount: Integer;
MaxCount: Integer;
MaxDist: Integer;
MaxDistCenter: Integer;
UpText: string;
UpTextMulti: TStringArray;
HueMod, SatMod: Extended;
LumTol: Integer;
MinR, MaxR, MinG, MaxG, MinB, MaxB: Integer;
MinX, MaxX, MinY, MaxY, MinZ, MaxZ: Extended;
end;
:-)
There are currently 1 users browsing this thread. (0 members and 1 guests)