From: n3ss3s
TBox is the same as when you find colors etc, it's just a variable for them.
Box.x1 :=..;
Box.y1 :=..;
Box.x2 :=..;
Box.y2 :=..;
If you use a TBox for the current color finding functions, which do not take TBoxes for input, but ints, you need to still do like
FindColor(X, Y, Z, Box.x1, Box.y1, Box.x2, Box.y2), so it might not always be worth it.
Other box defining methods you can see in the scar manual, which are IntToBox and PointToBox.
It's not a variable, it's a type, no? actually which pretty much holds a record like this:
program New;
type
TTbox = record
x1, y1, x2, y2: integer;
end;
var
MyTTBox: TTbox;
begin
MyTTBox.x1 := 0; // 0,0------------
MyTTbox.y1 := 0; // | | the window on RS
MyTTBox.x2 := 50;// | |
MyTTBox.y2 := 50;// |---------50,50
end.
-Tsn.
EDIT: I caleld it TTBox, because (ofcourse:p) TBox already excists:p
EDIT2:
From: n3ss3s
Other box defining methods you can see in the scar manual, which are IntToBox and PointToBox.
That aren't defining methods:) That are more like convertions like "IntToBox", you
convert 4 integer coords to a box:)