Advertisement
guitarplayer616

IOS for pocket computers

May 12th, 2015
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.15 KB | None | 0 0
  1. if not fs.exists("message.nfp") then
  2.   shell.run("pastebin get iV71pG62 message.nfp")
  3.   shell.run("pastebin get w5R5g5H1 box")
  4. end
  5.  
  6. term.setBackgroundColor(colors.black)
  7. term.clear()
  8. msg = paintutils.loadImage("message")
  9. --paintutils.drawImage(msg,4,3)
  10. box = paintutils.loadImage("box")
  11. ins = paintutils.loadImage("inscribe")
  12.  
  13. paintutils.drawImage(msg,2,3)
  14. paintutils.drawImage(ins,12,2)
  15. paintutils.drawImage(box,19,1)
  16. paintutils.drawImage(box,1,8)
  17. paintutils.drawImage(box,10,8)
  18. paintutils.drawImage(box,19,8)
  19. paintutils.drawImage(box,1,15)
  20. paintutils.drawImage(box,10,15)
  21. paintutils.drawImage(box,19,15)
  22.  
  23. function appcheck(x,y,x2,y2)
  24.   if (select[3] > x and select[3] < x2) and
  25.   (select[4] > y and select[4] < y2) then
  26.     print("recieved"..tostring(x).." "..tostring(y))
  27.   end
  28. end
  29.  
  30. while true do
  31. select = {os.pullEvent("mouse_click")}
  32.   if (select[3] > 4 and select[3] < 11) and
  33.   (select[4] > 3 and select[4] < 6) then
  34.     break
  35.   end
  36.   appcheck(10,1,17,6)
  37.   appcheck(19,1,26,6)
  38.   appcheck(1,8,8,13)
  39.   appcheck(10,8,17,13)
  40.   appcheck(19,8,26,13)
  41.   appcheck(1,15,8,20)
  42.   appcheck(10,15,17,20)
  43.   appcheck(19,15,26,20)  
  44. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement