2009-12-23, 01:56
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?
Cant seem to figure it out. Can anyone shed a little light on it mayhaps?
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>