SRL Archive - OSR Help

Drawing on smart instead of debug


Wetish

2012-10-20 14:17:13

How can I draw one or all of the ATPAs on smart instead of debugimgform?

Flight

2012-10-20 14:24:13

Look through SRL/SRL/misc/painsmart.simba. Give this a try:
procedure SMART_DebugATPA(Clear: Boolean; ATPA: T2DPointArray); 

Edit:
+5 for :ninja:'ing Nebula.

Nebula

2012-10-20 14:24:14

For i := 0 to high(atpa) do
Smart_drawbox(GetTPABounds(atpa[i]));

Something like that.


Edit: didn't know SMART_DebugATPA existed. And fyi paintsmart was changed to smartgraphics

Edit:
-5 for being :ninja:'d by flight.

Wetish

2012-10-20 14:29:59

Thanks. Works great.

edit: Too many :ninja:s