[REQUEST] Tweens for lists - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +--- Thread: [REQUEST] Tweens for lists (/showthread.php?tid=101905) |
[REQUEST] Tweens for lists - Hitcher - 2011-05-20 I assume the current tween is linear for list scrolling but it would be nice to define more for list controls. Thanks. - `Black - 2011-05-20 +1 Would be nice to have that. - pecinko - 2011-05-21 Do I understand it right - this would alter list or fixedlist way of scrolling? - Hitcher - 2011-05-22 Yes. - pecinko - 2011-05-22 Hitcher Wrote:Yes. What would happen if you press and hold up/down on a list? I guess it we would need separate tween? EDIT: I don't know if you meant item to item scroll (you keep pressing up/down) or fast list scroll (you press and hold up/down). Don't know if tweeners could help, but it would be nice to have smooth scrolling in general (Containers and ControlGroups), instead of jumping positions. - pecinko - 2011-06-22 A friendly ping for Hitcher's nice suggestion. - pieh - 2011-06-22 Check this related topic http://forum.xbmc.org/showthread.php?tid=54704. This is different than control animation tweeners: here animation can be changed in middle. Calculating new params isn't as trivial as it may sound. Check tween charts (http://wiki.xbmc.org/?title=Tweeners) and imagine we are in middle of animation let's say in t=0.5 now we press up again and our target changes from [1,1] to [0.5+1,2] - what should new chart look like? Simply stretched? - Hitcher - 2011-06-22 As asked for in that thread, it's a tween animation for when the list stops scrolling that I think we're all after. Thanks. - pecinko - 2011-06-22 pieh Wrote:Calculating new params isn't as trivial as it may sound. Check tween charts (http://wiki.xbmc.org/?title=Tweeners) and From my point of view, and I may not understand all things under the hood, we have now linear scrolling between items of the list and it applies to a list as a whole, too - when you press and hold UP/DOWN. What would improve user experience and make it much smoother would be if you could specify alternate for above 2 scrollings, where item 2 item and list scrolling would behave _similar to_ tween=cubic easing=inout animation. Maybe I misunderstood you, but I'm not saying animation should be used for this, we may just call it smooth scrolling. - Jeroen - 2011-06-22 pieh Wrote:Check this related topic http://forum.xbmc.org/showthread.php?tid=54704. I won't pretend to understand XBMC's inner workings either, but could it not be made so that it works similar to reversible="false" like skinners can use in animations? In other words, the animation has to be finished before new input is executed? Just wondering, I realize it's probably more complicated. - Hitcher - 2011-06-22 Here's a quick video of the effect I'm after. The first half is standard scrolling and the second I've added a conditional slide to the list to get the same effect. Test - pieh - 2011-06-22 If you have env for xbmc building - You can try my initial work on it: https://github.com/pieh/xbmc/tree/container_tween - this adds support for <scrolltime tween="foo" easing="bar">time</scrolltime> (same tweens and eases as in animations) - pecinko - 2011-06-23 Very excellent! :-) Diky. Unfortunately I cannot build, so I'll have to wait for the nightly. Now, if I'm allowed, one more really small, hairsplitting, request: Can we have a name tag in sounds.xml that can map a sound for Container.Scrolling is TRUE situation? Or, it can be anything else that would allow for turning the nav sound off while container is scrolling. Item 2 item sounds are OK, but repetitive beeps while _container_ is scrolling are rather nasty (some of you may remember Manic Miner). Video that Hitcher made in a post above illustrates this. - Jezz_X - 2011-06-23 pecinko Wrote:Very excellent! :-) Diky.you will probably be waiting a while then this is just test code in pieh personal branch not in the main xbmc - pieh - 2011-06-23 this is just work in progress and in current state there is no way it will get in - I'm just going "offline" for 3 days and wanted to leave you something to play with. |