LDShadowLord

startup(2)

Feb 15th, 2013
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local lp = shell.resolve(".")
  2. local w,h = term.getSize()
  3. local t = w/2 - 3
  4. local y = h/2 - 3
  5. os.loadAPI(lp.."/gameutils")
  6. local updateRate = 0.3
  7.  
  8. local function taskBar()
  9.   print("==VERR=============================================")
  10. end
  11.  
  12. local fin = gameutils.loadAnimation(lp.."/.startup/fin.nfa", t, y, 1)
  13. fin.timerID = os.startTimer(updateRate)
  14.  
  15. local function runLoad()
  16.   while true do
  17.   term.setBackgroundColour(colours.lightGrey)
  18.   term.clear()
  19.   fin:draw()
  20.  
  21.   local id,key = os.pullEvent("timer")
  22.   if fin:update(key) then
  23.     fin.timerID = os.startTimer(updateRate)
  24.   end
  25.  
  26.   if fin.currentFrame == fin.upperBound then
  27.     term.setCursorPos(1,1)
  28.     term.clear()
  29.     sleep(1)
  30.     term.clear()
  31.     term.setCursorPos(1,1)
  32.     taskBar()
  33.     print("Welcome to VERR OS, LDShadowLord")
  34.     shell.setAlias("firewolf","ProgramFiles/firewolf")
  35.     shell.setAlias("fw","ProgramFiles/firewolf")
  36.     shell.setAlias("thunderbird","ProgramFiles/thunderbird")
  37.     shell.setAlias("tb","ProgramFiles/thunderbird")
  38.     shell.setAlias("npaintpro","ProgramFiles/npaintpro")
  39.     shell.setAlias("npp","ProgramFiles/npaintpro")
  40.     shell.setAlias("lightshot","ProgramFiles/lightshot")
  41.     print("Alias Commands Set")
  42.     if fs.exists("disk") == true then
  43.       print("There is a disk inserted into the drive.")
  44.     end
  45.     print("Type 'lock' to secure the computer")
  46.     return
  47.   end
  48.   end
  49. end
  50.  
  51. term.clear()
  52. term.setCursorPos(1,1)
  53. taskBar()                                              --I
  54. print("VERR BIOS v0.7")
  55. print("Running functions....")
  56. print("Defining parameters...")
  57. print("Localising variables...")
  58. sleep(0.1)
  59. print("Routing Alias'")
  60. sleep(0.1)
  61. print("Loading UI")
  62. print("Accessing Interface")
  63. print("Pulling ID Key...")
  64. sleep(0.1)
  65. print("Redirecting...")
  66. runLoad()
Advertisement
Add Comment
Please, Sign In to add comment