Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("Loading-Bar/load")
- local logo = {
- "7 7 7 7 77 3 3 3 ",
- "7 7 7 3 3 ",
- "777 777 777 777 77 7 777 7 777 777 7 333 3 333",
- "7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 3 3 3 3 ",
- "7 7 7 777 7 7 7 7 777 7 7 7 777 7 3 3 3 3 ",
- "7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 3 3 3 3 ",
- " 77 7 7 777 777 7 7 777 7 7 7 7 7 7 333 3 33",
- }
- local bar = load.init( load.LOGO_IS_OVERLAY, logo, 10, nil, 14, nil, "Starting up...", "Load Screen Example", "By TheOriginalBIT" )
- local function dostuff()
- bar:setMessage("Downloading...")
- for i = 1, 9 do
- sleep(1)
- bar:triggerUpdate( "Downloading ("..( bar:getCurrentProgress() + 1 ).."/10)..." )
- end
- bar:triggerUpdate( "Done!" )
- end
- local function dobar()
- bar:run( true )
- end
- parallel.waitForAll( dobar, dostuff )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement