Kodi Community Forum

Full Version: [REQUEST] Tweens for lists
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
I assume the current tween is linear for list scrolling but it would be nice to define more for list controls.

Thanks.
+1

Would be nice to have that. Smile
Do I understand it right - this would alter list or fixedlist way of scrolling?
Yes.
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.
A friendly ping for Hitcher's nice suggestion.
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?
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.
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.
pieh Wrote: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?

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.
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
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)
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.
pecinko Wrote:Very excellent! :-) Diky.
Unfortunately I cannot build, so I'll have to wait for the nightly.
.....
you will probably be waiting a while then this is just test code in pieh personal branch not in the main xbmc
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.
Pages: 1 2 3 4 5