Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI( "/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 bar1 = load.init( load.BAR_ONLY, nil, 20, 30, 12, colors.yellow, nil, nil, nil )
- local bar2 = load.init( load.BAR_ONLY, nil, 20, 15, 13, colors.yellow, nil, nil, nil )
- local bar3 = load.init( load.BAR_ONLY, nil, 20, 10, 14, colors.yellow, nil, nil, nil )
- local bar4 = load.init( load.BAR_ONLY, nil, 20, 5, 15, colors.yellow, nil, nil, nil )
- local function dobarstuff()
- for i = 1, 20 do
- sleep( 0.3 ) -- normally something would be done here, please for the love of ___ don't just sleep it, this api isn't designed for fake loading screens
- bar1:triggerUpdate( )
- bar2:triggerUpdate( )
- bar3:triggerUpdate( )
- bar4:triggerUpdate( )
- end
- end
- local function dobar1()
- bar1:run( )
- end
- local function dobar2()
- bar2:run( )
- end
- local function dobar3()
- bar3:run( )
- end
- local function dobar4()
- bar4:run( )
- end
- parallel.waitForAll( dobar1, dobar2, dobar3, dobar4, dobarstuff )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement