v16 Annimation fade problem
#1
I have a problem that when I opened a window toggle buttons weren't being rendered until they were clicked. This only started happening after PR:8310. After experimenting I find the problem is caused by an animation. This animation works on other controls and also on toggle buttons prior to 8310. The code looks like this:

Code:
<animation effect="fade" time="500">WindowOpen</animation>
<animation effect="fade" time="200">Visible</animation>
<animation effect="fade" time="200">WindowClose</animation>
<animation effect="fade" time="200">Hidden</animation>

What I found is the problem is with the "WindowOpen" type on the togglebutton control. In this case the control is nested in a grouplist which in turn is nested in a group. Both the group and grouplist have slide animations that fire when the group has focus and then then a button control in the group has focus. That results in a drop-down of the inner grouplist containing the togglebutton. When I comment-out the "WindowOpen" fade for the togglebutton, the togglebutton then shows as expected. So I edited that fade to:

Code:
<animation effect="fade" start="0" end="100" time="500">WindowOpen</animation>

and that works, but I don't understand why I need to do this just for toggle buttons, or more generally how that "fade" animation is supposed to work if you don't specify the start/end values.

scott s.
.
Reply
#2
if you omit "start" and "end" values, kodi will use the default values defined in the source code.

for unfocus / hidden / windowclose:
start="100"
end="0"

for focus / visible / windowopen / conditional:
start="0"
end="100"
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Thanks. It seems like may be there is a bug.

scott s.
.
Reply

Logout Mark Read Team Forum Stats Members Help
Annimation fade problem0