Advertisement
thegreatstudio

startup

Mar 16th, 2013
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.02 KB | None | 0 0
  1. if not load then
  2. os.loadAPI("/load")
  3. end
  4.  
  5. local logo = {
  6.   "5555555 5 5       555555                    ",
  7.   "55      5   55555 5      555555  55555 55555",
  8.   "55      5 5 5   5 555555 5    5  5   5 5    ",
  9.   "55 5555 5 5 55555      5 555555  5   5 55555",
  10.   "55    5 5 5 5          5 5       5   5     5",
  11.   "5555555 5 5 55555 555555 555555  55555 55555",  
  12. }
  13.  
  14. local bar = load.init( load.LOGO_IS_LOAD, logo, 10, nil, 14, colors.red, "Starting Gliese OS...", "Gliese OS", "Created By thegreatstudio" )
  15.  
  16.  local function dostuff()
  17.          bar:setMessage( "Loading.." )
  18.          for i = 1, 9 do
  19.                  sleep(1)
  20.                  bar:triggerUpdate( "Loading ("..( bar:getCurrentProgress() + 1 ).."/10)..." )
  21.          end
  22.          
  23.          
  24.          bar:triggerUpdate( "Done!" )
  25. end
  26.  
  27. local function dobar()
  28.         bar:run( true )
  29. end
  30.  
  31. parallel.waitForAll( dobar, dostuff )
  32.  
  33. if fs.exists("gliese/gui") then
  34. shell.run("gliese/gui")
  35. elseif not fs.exists("gliese/gui") then
  36. shell.run("gliese/shell")
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement