Advertisement
CodeCrafter

Update

Feb 16th, 2013
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. -- this is my update tool by gijsvdsande
  2.  
  3. local scannerFrame = {
  4. "+--------------------------------+",
  5. "| |",
  6. "| |",
  7. "| |",
  8. "| |",
  9. "| |",
  10. "| |",
  11. "| |",
  12. "| [Yes] [no] |",
  13. "| |",
  14. "| |",
  15. "+--------------------------------+",
  16. }
  17. local Text = {
  18. " Update ",
  19. " +---------------------+ ",
  20. " | | ",
  21. " +---------------------+ ",
  22. }
  23.  
  24. local Options = {
  25. " Yes", "no"
  26. }
  27.  
  28. while true do
  29. local event, button, X, Y = os.pullEvent("mouse_click")
  30. XY = mouseX..","..mouseY
  31.  
  32. if XY == "1,2" and button == 1 then
  33. print("not right now ")
  34. shell.run("menu")
  35. break
  36. end
  37.  
  38. if XY == "1,3" and button == 1 then
  39. print("Updating...")
  40. shell.run("UpdateTest")
  41. break
  42. end
  43. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement