I'm working on a level browsing system, but have some problems getting it to focus on the selected section.
Collapsed:
http://i.imgur.com/4DIVHHM.pngExpanded:
http://i.imgur.com/ybkzjsB.pngThis was made like the quest log example, so the levels get expanded under the act button using a TweenScale.
When you click on the act button, it should expand and the button should be placed at the top (like in the screenshots), any other expanded acts should collapse (I got this part working just fine).
I had a look at your UICenterOnClick script, but there are 2 problems with this script. First of all it will center on the object, instead of placing it at the top.
I tried to bypass this simply by adding 175f to the offset.y, before starting the spring tween.
This does the job when the spring strength is low, since the expand tween will end before the spring tween, but is simply too slow.. When setting the strength to a higher value, the spring tween will end slightly before the other tween and it will not be placed all the way at the top.
Any idea of how to handle this?