Advertisement
Guest User

NC

a guest
Sep 2nd, 2014
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.83 KB | None | 0 0
  1. --[[
  2.     New CraftOS Notification Centre designed
  3.     by Connerplays_mc, NC Version: 2.1
  4. --]]
  5.  
  6. term.clear()
  7. term.setCursorPos(1, 1)
  8.  
  9. print ("                      |====|                 ")
  10. sleep(0.4)
  11.  
  12. term.setBackgroundColour(colours.lightBlue)
  13. term.clear()
  14. term.setCursorPos(1, 1)
  15.  
  16. local nTime = os.time()
  17.  
  18. term.setBackgroundColour(colours.blue)
  19.  
  20. print ("                      "..textutils.formatTime( nTime, false ).."                      ")
  21. sleep(0.2)
  22.  
  23. term.setBackgroundColour(colours.lightBlue)
  24.  
  25. write(" ")
  26. shell.run("calander")
  27. print ("---------------------------------------------------")
  28. print (" mostly sunny currenty. The high today will be 19")
  29. print (" degrees, partly cloudy tonight at a low of 9")
  30. print ("---------------------------------------------------")
  31. print (" Stocks: ")
  32. print ("           FTSE:  6,743.94 +")
  33. print ("          ^FTAS:  3,600.19 +   Weather and Stocks")
  34. print ("          ^FTAI:    785.39 -   Provided by CraftCo")
  35. print ("           AAPL:     92.69 -    Development 2014")
  36. print ("           GOOG:    576.63 +")
  37. print ("---------------------------------------------------")
  38. print (" Calander: No plans made for today.")
  39. print ("---------------------------------------------------")
  40. print (" Tomorrow: No plans made for tomorrow")
  41. print ("---------------------------------------------------")
  42. write("  ")
  43.  
  44. answer = read ()
  45. if answer == "stocks" then
  46. term.clear()
  47. term.setCursorPos(1, 1)
  48. term.setBackgroundColour(colours.blue)
  49. print ("Stocks:                                            ")
  50. term.setBackgroundColour(colours.cyan)
  51. print ("---------------------------------------------------")
  52. print ("  FTSE: 6,743.94 +")
  53. print (" ^FTAS: 3,600.19 +")
  54. print (" ^FTAI:   785.39 -")
  55. print ("  AAPL:    92.69 -")
  56. print ("  GOOG:   576.63 +")
  57. print ("  YHOO:    35.55 +")
  58. print (" DOW J:16.959.24 +")
  59. print ("   DAX: 9,910.51 +")
  60. print ("  ^HSI:23,549.62 +")
  61. print (" ^N225:15,369.97 +")
  62. print ("---------------------------------------------------")
  63. print ("Stock information from CraftCo 2014.")
  64. term.setCursorPos(1, 18)
  65. answer = read ()
  66.  if answer == "exit" then
  67.   shell.run("shell")
  68.  end
  69. end
  70.  
  71. if answer == "calander" then
  72. term.clear()
  73. term.setCursorPos(1, 1)
  74. term.setBackgroundColour(colours.blue)
  75. print ("Calander:                                          ")
  76. term.setBackgroundColour(colours.cyan)
  77. print ("---------------------------------------------------")
  78. term.setCursorPos(1, 8)
  79. print ("---------------------------------------------------")
  80. print ("   Calander: You have made no plans for today.")
  81. print ("---------------------------------------------------")
  82. term.setCursorPos(1, 18)
  83. print ("---------------------------------------------------")
  84. answer = read ()
  85.  if answer == "exit" then
  86.   shell.run("shell")
  87.  end
  88. end
  89.  
  90. if answer == "weather" then
  91. term.clear()
  92. term.setCursorPos(1, 1)
  93. term.setBackgroundColour(colours.blue)
  94. print ("Weather:                                           ")
  95. term.setBackgroundColour(colours.cyan)
  96. print ("---------------------------------------------------")
  97. print ("Weather: Mostly sunny currently, the high today")
  98. print ("         will be 24 degrees; cloudy tonight")
  99. print ("         with a terperature of 16 degrees.")
  100. print ("---------------------------------------------------")
  101. print ("         Tomorrow will be similar today but with a")
  102. print ("         lower temperature of 15 degrees; the low")
  103. print ("         will be 12 degrees, clear skies through")
  104. print ("         the night with a low of 8 degrees.")
  105. print ("---------------------------------------------------")
  106. print ("  Weather information by CraftCo.")
  107. term.setCursorPos(1, 18)
  108. answer = read ()
  109.  if answer == "exit" then
  110.   shell.run("shell")
  111.  end
  112. end
  113.  
  114. term.setTextColour(colours.white)
  115. term.setBackgroundColour(colours.black)
  116.  
  117. term.clear()
  118. term.setCursorPos(1, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement