Jackson_Pike

Untitled

Apr 7th, 2022
1,168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. os.loadAPI("m")
  2.  
  3. -------------------
  4. if fs.exists("m") then
  5. --fs.delete("m")
  6. --shell.run("pastebin get nXvVUSuw m")
  7. term.clear()
  8. term.setCursorPos(1, 1)
  9. else
  10. shell.run("pastebin get nxvvusuw m")
  11.  
  12. term.clear()
  13. term.write("Downloading Text API.")
  14. sleep(1)
  15. term.write(".")
  16. sleep(1)
  17. term.write(".")
  18. sleep(1)
  19. term.write(" Success")
  20. term.setCursorPos(1, 2)
  21. os.loadAPI("m")
  22. shell.run("m")
  23. end
  24. shell.run("m")
  25. -------------
  26. mon2 = peripheral.wrap("left")
  27. monX, monY = mon2.getSize()
  28. mon2.setTextScale(1)
  29. -------------------
  30. monx, mony = mon2.getSize()
  31. mon2.setBackgroundColor(colors.black)
  32. mon2.clear()
  33. mon2.setTextColor(colors.white)
  34. mon2.setTextScale(1)
  35. mon2.setCursorPos(1, 1)
  36. mon2.setBackgroundColor(colors.gray)
  37. mon2.write(string.rep(" ", monx))
  38. mon2.setCursorPos(1, mony)
  39. mon2.write(string.rep(" ", monx))
  40. mon2.setBackgroundColor(colors.black)
  41. mon2.setTextColor(colors.red)
  42. mon2.setCursorPos(1, 3)
  43. mon2.write("------>")
  44. event, side, xpos, ypos = os.pullEvent("monitor_touch")
  45. if side == "monitor_5" then
  46.   page2()
  47. else
  48.   page1()
  49. end
  50. end
Advertisement
Add Comment
Please, Sign In to add comment