Animation help
#1
I'm using a dialog that's always visible to display various 'global' items (time, date, RSS, etc) and want to use it to display headings as well but I can't get the visible animations working properly.

This is code I'm using -

PHP Code:
<!-- Headings -->

<
control type="group">
    <
posx>46</posx>
    <
visible>Window.IsActive(videolibrary)</visible>
    <
animation type="Visible" reversible="false">
        <
effect type="slide" start="0,-100" end="0,0" time="400" tween="cubic" easing="out" />
        <
effect type="fade" start="0" end="100" time="400" />
    </
animation>
    <
animation type="Conditional" reversible="false" condition="Window.Next(home)">
        <
effect type="fade" start="100" end="0" time="400" />
    </
animation>
    <
control type="label">
        <
label>342</label>
        <include>
Global_HeadingSectionVars</include>
        <
visible>Container.Content(movies)</visible>
    </
control>
    ...
</
control

but the slide animation will only work once unless the skin is refreshed at home.

Any ideas?

Thanks.
Reply
#2
So going from home -> video -> home -> video you only get the slide anim the first home->video transistion? Does the fade apply both times?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
Yes to both.

EDIT: Interestingly if I add a delay to the animation it works perfectly for the other times except the first which is delayed too much.
Reply
#4
Most strange. I can't see why the fade would work but the slide wouldn't. Could it be something weird like the tweening?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#5
Strange indeed.

Anyway I've got the result I wanted by dropping the visible condition and changing the animation type. And to reduce the visible checks I've switched to using variables (got to love 'em).

PHP Code:
<!-- Headings -->

<
control type="group">
    <
posx>46</posx>
    <
posy>-180</posy>
    <
animation type="Conditional" reversible="false" condition="!Window.IsVisible(home)">
        <
effect type="slide" start="0,0" end="0,180" time="400" delay="600" tween="cubic" easing="out" />
        <
effect type="fade" start="0" end="100" time="400" delay="600" />
    </
animation>
    <
animation type="Conditional" reversible="false" condition="Window.Next(home)">
        <
effect type="fade" start="100" end="0" time="400" />
    </
animation>
    <
control type="label">
        <
label>$VAR[Global_HeadingLabels]</label>
        <include>
Global_HeadingSectionVars</include>
    </
control>
</
control
Reply

Logout Mark Read Team Forum Stats Members Help
Animation help0