Jump to content

UIPanel AnimateScroll


kosmo111

Recommended Posts

I have been trying to use UIStatLists with AnimateScroll to show a large amount of data to the user, however there is an annoying bug I cannot seem to fix. If you modify the contents of the panel while it is scrolling, the panel does not properly reset.

 

To clarify, this is exactly what the Shot Wings do (where it shows the breakdown of your hit and crit chances). If there are enough fields to require scrolling, and while the fields are scrolling you switch targets, the animation starts over without resetting back to the top. This leads to a situation where eventually all of the information might be off the screen.

 

My Lifetime Stats mod uses a similar panel to show the breakdown of shots/hits/misses/... of a soldier and in order to get it to work properly I had to do really ugly things.

 

I would much prefer if I could just call ClearScroll (as the API would seem to imply) rather than the duct tape code I had to write. Has anyone found a solution to this?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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