SRL Archive - OSR Help

Debug TBox in Simba


bbri06

2010-05-16 16:02:20

Can this be done? If so, how?

Gu3st...

2010-05-16 16:12:02

var
B : TBox;
begin
WriteLn([B.x1, B.y1, B.x2, B.y2]);
end.
Or are you talking on painting it on a debug canvas?

bbri06

2010-05-16 16:35:00

I meant painting in on the debug canvas, sorry.

nielsie95

2010-05-16 16:58:58

WriteLn(b) is enough ;)

Wanted

2010-05-16 17:00:19

From: bbri06
I meant painting in on the debug canvas, sorry.


{.include SRL\SRL.scar}
{.include SRL\SRL\Misc\Debug.scar}

const
X1 = 0;
Y1 = 0;
X2 = 100;
Y2 = 100;

var
ATPA: T2DPointArray;

begin
SetLength(ATPA, 1);
SetLength(ATPA[0], 2);
ATPA[0][0] := Point(X1, Y1);
ATPA[0][1] := Point(X2, Y2);
DebugATPABounds(ATPA);
end.

bbri06

2010-05-16 17:10:53

Perfect, thanks IceFire.

Edit: It seems I can't give you any more rep right now :(