Advertisement
thegreatstudio

program.lua

Mar 13th, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. screenX, screenY = term.getSize()
  2.  
  3. function Program()
  4. term.setBackgroundColor(colors.white)
  5. term.clear()
  6. term.setCursorPos(1,1)
  7. os.sleep(0.1)
  8. while true do
  9. term.setBackgroundColor(colors.lightBlue)
  10. term.clear()
  11. paintutils.drawLine(1, 1, screenX, 1, colors.cyan)
  12. term.setTextColor(colors.black)
  13. term.setCursorPos(1,1)
  14. print("Programs")
  15. term.setTextColor(colors.black)
  16. term.setCursorPos(1,4)
  17. print("[System Programs]")
  18. term.setTextColor(colors.black)
  19. term.setCursorPos(40,1)
  20. print("[Close]")
  21. local event, button, X, Y = os.pullEventRaw("mouse_click")
  22. if X >= 1 and X <= 10 and Y == 3 and button == 1 then
  23. shell.run("/isaacos/Programs/gfb")
  24. elseif X >= 1 and X <= 16 and Y == 4 and button == 2 then
  25. print("Going to System Programs")
  26. sleep(0.5)
  27. shell.run("/isaacos/system/system.lua")
  28. elseif X >= 40 and X <= 47 and Y == 1 and button == 3 then
  29. sleep(0.5)
  30. break
  31. end
  32.  
  33.  
  34. end
  35. end
  36.  
  37. Program()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement