Jump to content

Prepare progress


royibernthal
 Share

Recommended Posts

I have gone through the git repo and the documentation and I can't see anything. All that seems to be available is a 'done' callback on the upload function. 

That being said, if you extend the prepare class, and in the constructor, pass an event / signal.. you could add it to line 155 of http://pixijs.download/release/docs/prepare_BasePrepare.js.html. Then, every time an uploaded item is pushed to the completes array, your event will fire.. and you could pass a parameter of 'this.completes.length / this.queue.length * 100'. This would give you a percentage of the prepare completion.

Just a thought :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...