Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- New CraftOS Notification Centre designed
- by Connerplays_mc, NC Version: 2.1
- --]]
- term.clear()
- term.setCursorPos(1, 1)
- print (" |====| ")
- sleep(0.4)
- term.setBackgroundColour(colours.lightBlue)
- term.clear()
- term.setCursorPos(1, 1)
- local nTime = os.time()
- term.setBackgroundColour(colours.blue)
- print (" "..textutils.formatTime( nTime, false ).." ")
- sleep(0.2)
- term.setBackgroundColour(colours.lightBlue)
- write(" ")
- shell.run("calander")
- print ("---------------------------------------------------")
- print (" mostly sunny currenty. The high today will be 19")
- print (" degrees, partly cloudy tonight at a low of 9")
- print ("---------------------------------------------------")
- print (" Stocks: ")
- print (" FTSE: 6,743.94 +")
- print (" ^FTAS: 3,600.19 + Weather and Stocks")
- print (" ^FTAI: 785.39 - Provided by CraftCo")
- print (" AAPL: 92.69 - Development 2014")
- print (" GOOG: 576.63 +")
- print ("---------------------------------------------------")
- print (" Calander: No plans made for today.")
- print ("---------------------------------------------------")
- print (" Tomorrow: No plans made for tomorrow")
- print ("---------------------------------------------------")
- write(" ")
- answer = read ()
- if answer == "stocks" then
- term.clear()
- term.setCursorPos(1, 1)
- term.setBackgroundColour(colours.blue)
- print ("Stocks: ")
- term.setBackgroundColour(colours.cyan)
- print ("---------------------------------------------------")
- print (" FTSE: 6,743.94 +")
- print (" ^FTAS: 3,600.19 +")
- print (" ^FTAI: 785.39 -")
- print (" AAPL: 92.69 -")
- print (" GOOG: 576.63 +")
- print (" YHOO: 35.55 +")
- print (" DOW J:16.959.24 +")
- print (" DAX: 9,910.51 +")
- print (" ^HSI:23,549.62 +")
- print (" ^N225:15,369.97 +")
- print ("---------------------------------------------------")
- print ("Stock information from CraftCo 2014.")
- term.setCursorPos(1, 18)
- answer = read ()
- if answer == "exit" then
- shell.run("shell")
- end
- end
- if answer == "calander" then
- term.clear()
- term.setCursorPos(1, 1)
- term.setBackgroundColour(colours.blue)
- print ("Calander: ")
- term.setBackgroundColour(colours.cyan)
- print ("---------------------------------------------------")
- term.setCursorPos(1, 8)
- print ("---------------------------------------------------")
- print (" Calander: You have made no plans for today.")
- print ("---------------------------------------------------")
- term.setCursorPos(1, 18)
- print ("---------------------------------------------------")
- answer = read ()
- if answer == "exit" then
- shell.run("shell")
- end
- end
- if answer == "weather" then
- term.clear()
- term.setCursorPos(1, 1)
- term.setBackgroundColour(colours.blue)
- print ("Weather: ")
- term.setBackgroundColour(colours.cyan)
- print ("---------------------------------------------------")
- print ("Weather: Mostly sunny currently, the high today")
- print (" will be 24 degrees; cloudy tonight")
- print (" with a terperature of 16 degrees.")
- print ("---------------------------------------------------")
- print (" Tomorrow will be similar today but with a")
- print (" lower temperature of 15 degrees; the low")
- print (" will be 12 degrees, clear skies through")
- print (" the night with a low of 8 degrees.")
- print ("---------------------------------------------------")
- print (" Weather information by CraftCo.")
- term.setCursorPos(1, 18)
- answer = read ()
- if answer == "exit" then
- shell.run("shell")
- end
- end
- term.setTextColour(colours.white)
- term.setBackgroundColour(colours.black)
- term.clear()
- term.setCursorPos(1, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement