Animations not starting over once condition is set
#1
Not sure if this is an error in the code or a bug within xbmc. We are coding a viewtype with icons that zoom when focused. With the current code it works only once when the condition is met then the icons stay at the zoomed state when focused and the zoom animation doesn't happen again.

Cant seem to figure it out. Can anyone shed a little light on it mayhaps? Eek

PHP Code:
                            <control type="image">
                                    <
description>Poster</description>
                                    <
posx>75</posx>
                                    <
posy>25</posy>
                                    <
width>145</width>
                                    <
height>213</height>
                                    <
info>ListItem.Thumb</info>
                                    <
texture background="true" diffuse="views/wall/diffuse/poster_diffuse.png" />
                                    <
aspectratio align="center" scalediffuse="false">scale</aspectratio>
                                    <!-- 
Row 1 Animations -->
                                    <
animation effect="zoom" end="53,23,190,280" time="150" delay="0" condition="Container(56).Row(0) + !Container(56).Position(0) + !Container(56).Position(12)" reversible="false" >Conditional</animation>
                                    <
animation effect="zoom" end="83,23,190,280" time="150" delay="0" condition="Container(56).Position(0)" reversible="false" >Conditional</animation>
                                    <
animation effect="zoom" end="33,23,190,280" time="150" delay="0" condition="Container(56).Position(12)" reversible="false" >Conditional</animation>
                                    <!-- 
Row 2 Animations -->
                                    <
animation effect="zoom" end="53,-38,190,280" time="150" delay="0" condition="Container(56).Row(1) + !Container(56).Position(1) + !Container(56).Position(13)" reversible="false" >Conditional</animation>
                                    <
animation effect="zoom" end="83,-38,190,280" time="150" delay="0" condition="Container(56).Position(1)" reversible="false" >Conditional</animation>
                                    <
animation effect="zoom" end="33,-38,190,280" time="150" delay="0" condition="Container(56).Position(13)" reversible="false" >Conditional</animation>
                            </
control
Image
Reply
#2
Well at a pure guess reversible="false" means the naimation wont reverse back to its original state and you not triggering it on Focus your triggering it on another condition that once true does the animation but doesn't reverse itback to its original state for Unfocus
But of course the only holds true if its in soem sort of panel conatiner and not a coverflow type thing where the actual icons are completely seperate from the control that controls them
Reply

Logout Mark Read Team Forum Stats Members Help
Animations not starting over once condition is set0