hey peeps... Questions in the topic title :)
I need to set a function so calling it without the "gadget" param makes it default to desktop. At the moment i keep getting "error:type".
Code:
How do i do it?!
I need to set a function so calling it without the "gadget" param makes it default to desktop. At the moment i keep getting "error:type".
Code:
Function drawrect(x,y,Lgth,height,fill=0,gadget.ui_gadget=null) If gadget=Null Then gadget=ui_desktop Local bf=GraphicsBuffer() If gadget\texture<>0 Then SetBuffer TextureBuffer(gadget\Texture) Rect x,y,lgth,height SetBuffer bf EndIf End Function
How do i do it?!