Sir R. M8gic1an
2010-06-11 08:44:05
function MSBox: TBox;
begin
with Result do
begin
x1 := MSX1;
y1 := MSY1;
x2 := MSX2;
y2 := MSY2;
end;
end;
function MMBox: TBox;
begin
with Result do
begin
x1 := MMX1;
y1 := MMY1;
x2 := MMX2;
y2 := MMY2;
end;
end;
function MIBox: TBox;
begin
with Result do
begin
x1 := MIX1;
y1 := MIY1;
x2 := MIX2;
y2 := MIY2;
end;
end;
function MCBox: TBox;
begin
with Result do
begin
x1 := MCX1;
y1 := MCY1;
x2 := MCX2;
y2 := MCY2;
end;
end;
Very often I would rather pass a TBox to my functions than 4 coords, as I find it helps with readability and scripting speed. Which is why I suggest that these be added to globals.scar
~RM