[REQUEST] Tweens for lists
#1
I assume the current tween is linear for list scrolling but it would be nice to define more for list controls.

Thanks.
Reply
#2
+1

Would be nice to have that. Smile
Image
Reply
#3
Do I understand it right - this would alter list or fixedlist way of scrolling?
My skins:

Amber
Quartz

Reply
#4
Yes.
Reply
#5
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.
My skins:

Amber
Quartz

Reply
#6
A friendly ping for Hitcher's nice suggestion.
My skins:

Amber
Quartz

Reply
#7
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?
Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

My previous forum/trac nickname: grajen3
Reply
#8
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.
Reply
#9
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.
My skins:

Amber
Quartz

Reply
#10
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.
Reply
#11
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
Reply
#12
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)
Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

My previous forum/trac nickname: grajen3
Reply
#13
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.
My skins:

Amber
Quartz

Reply
#14
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
Reply
#15
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.
Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

My previous forum/trac nickname: grajen3
Reply

Logout Mark Read Team Forum Stats Members Help
[REQUEST] Tweens for lists0