Advertisement
Guest User

todo

a guest
Jan 20th, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.74 KB | None | 0 0
  1. local other = "ugh"
  2. local mon = peripheral.wrap("top")
  3. local bleh, monize = mon.getSize()
  4. local bleh2
  5. color1 = colors.white
  6. color2 = colors.cyan
  7.  
  8. term.clear()
  9. term.setCursorPos(1,1)
  10. print("Enter the side your monitor is on (No Caps):")
  11. mon = peripheral.wrap(read())
  12. bleh, monsize = mon.getSize()
  13. print("Do you want to reset the tasks? Type 'y' if so. (Use if program crashes)")
  14. bleh2 = read()
  15. if bleh2 == "y" then
  16. game = "Do Nothing :)"
  17. hunter = "Do Nothing :)"
  18. wtg = "Do Nothing :)"
  19. end
  20. term.clear()
  21. mon.clear()
  22.  
  23. while true do
  24. mon.setTextScale(1.25)
  25. mon.setCursorPos(-5+bleh/2,1+monsize/4)
  26. mon.setTextColor(color1)
  27. mon.setBackgroundColor(color2)
  28. mon.write("Todo List:")
  29. mon.setCursorPos(1,4+monsize/4)
  30. print("Todo List:\n\n\n")
  31. mon.write("Gameover28956: ")
  32. mon.write(game)
  33. print("Gameover28956: ", game, "\n\n")
  34. mon.setCursorPos(1,6+monsize/4)
  35. mon.write("hunterboerner: ")
  36. mon.write(hunter)
  37. print("hunterboerner: ", hunter, "\n\n")
  38. mon.setCursorPos(1,8+monsize/4)
  39. mon.write("wtg62: ")
  40. mon.write(wtg)
  41. mon.setCursorBlink(false)
  42. print("wtg62: ", wtg, "\n")
  43. print("\n\nType 'edit' to edit tasks")
  44. print("'edit 1' to edit Gameover28956")
  45. print("'edit 2' to edit hunterboerner")
  46. print("'edit 3' to edit wtg62")
  47. print("Ctrl+T to exit")
  48. other = read()
  49. if other == "edit" then
  50.  print("Enter task for Gameover28956:")
  51.  game = read()
  52.  print("Enter task for hunterboerner:")
  53.  hunter = read()
  54.  print("Enter task for wtg62:")
  55.  wtg = read()
  56.  term.clear()
  57.  mon.clear()
  58. elseif other == "edit 1" then
  59.  print("Enter task for Gameover28956:")
  60.  game = read()
  61. elseif other == "edit 2" then
  62.  print("Enter task for hunterboerner:")
  63.  hunter = read()
  64. elseif other == "edit 3" then
  65.  print("Enter task for wtg62:")
  66.  wtg = read()
  67. end
  68. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement