Advertisement
theoriginalbit

Loading API: Generic Object Calls

Jan 13th, 2013
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. -- generic stuff
  2. print( tostring( loadObj ) )
  3. print( load.getVersion() )
  4. print( load.getApiIdentifier() )
  5. print( tostring( loadObj ) == load.getApiIdentifier() )
  6. print( loadObj:getId() )
  7. print( loadObj:getCurrentProgress() )
  8. print( loadObj:getFormattedProgress() )
  9. loadObj:setMessage( "Starting...")
  10. loadObj:removeMessage()
  11. loadObj:dealloc() -- technically anything beyond this point won't work, but this is just an example
  12. loadObj:reset()
  13. loadObj:forceStop()
  14. loadObj:triggerUpdate()
  15. loadObj:triggerUpdate( "Downloading file 1/10..." )
  16. loadObj:forceDraw()
  17. loadObj:run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement