[size=6]Test Program[/size]
[size=6]os.loadAPI("btn")
btn.draw(3,6,3,6,colors.blue)
btn.make(3,6,3,6,1,reboot)[/size]
Simple API Code
draw = function(x,xx,y,yy,bcol) paintutils.drawBox(x,xx,y,yy,bcol) end[/size] [size=6]make = function(x1,xx1,y1,yy1,oot,prog) slc = 0[/size] [size=6]if (slc = 0) then if (event == "mouse_click") then if (x >= x1 and x <= xx1 and y >= y1 and y <= yy1 and button == oot) then shell.run(prog) end end end end
If there is something wrong with what my code is or what im trying to do PLZ TELL ME!
Edited by ArchTyler, 20 September 2015 - 03:11 AM.












