2010-12-16, 04:17
I have a wraplist that is have set to be available for movies, tv shows, and seasons. I have a typical focus/unfocus animation for the wraplist, and it works just fine for movies and tvshows. However when I enter the seasons node, I can not get the focus animation to work. I ran in debug mode and it shows that my wraplist has focus, but the animation will not take place. I have other animations on labels that react once the wraplist is focused that seem to be working just fine in seasons node. Below is my code and if anyone has any idea why this is happening I would love to get it corrected. Thanks to anyone who can assist!
Code for the animation
<include name="focus_SlidePoster">
<animation type="focus">
<effect type="zoom" start="100,100" end="130,130" easing="Out" reversible="false" center="105,150" time="250"/>
</animation>
<animation type="unfocus">
<effect type="zoom" tween="Cubic" start="130,130" end="100,100" easing="Out" reversible="false" center="105,150" time="250" />
</animation>
</include>
Code:
<control type="wraplist" id="58">
<viewtype label="Poster Slide">wrap</viewtype>
<posx>-5</posx>
<posy>175</posy>
<width>1450</width>
<height>425</height>
<onup>SetFocus(9500)</onup>
<ondown>SetFocus(9500)</ondown>
<onleft>58</onleft>
<onright>58</onright>
<orientation>horizontal</orientation>
<focusposition>1</focusposition>
<scrolltime>200</scrolltime>
<preloaditems>4</preloaditems>
<include>Lower_SlidePoster</include>
<visible>Container.Content(movies) | Container.Content(tvshows) | Container.Content(seasons)</visible>
<itemlayout height="400" width="208">
<control type="image">
<posx>16</posx>
<posy>16</posy>
<width>185</width>
<height>273</height>
<aspectratio scalediffuse="false" align="center">stretch</aspectratio>
<texture background="true" diffuse="views/wall/diffuse/poster_diffuse.png">$INFO[ListItem.Thumb]</texture>
</control>
<control type="image">
<posx>-7</posx>
<posy>2</posy>
<width>232</width>
<height>310</height>
<texture background="true">views/showcase/border.png</texture>
</control>
</itemlayout>
<focusedlayout height="400" width="208">
<control type="image">
<posx>16</posx>
<posy>16</posy>
<width>185</width>
<height>273</height>
<aspectratio scalediffuse="false" align="center">stretch</aspectratio>
<texture background="true" diffuse="views/wall/diffuse/poster_diffuse.png">$INFO[ListItem.Thumb]</texture>
<include>focus_SlidePoster</include>
</control>
<control type="image">
<posx>-7</posx>
<posy>2</posy>
<width>232</width>
<height>310</height>
<texture background="true">views/showcase/border.png</texture>
<include>focus_SlidePoster</include>
</control>
</focusedlayout>
</control>
Code for the animation
<include name="focus_SlidePoster">
<animation type="focus">
<effect type="zoom" start="100,100" end="130,130" easing="Out" reversible="false" center="105,150" time="250"/>
</animation>
<animation type="unfocus">
<effect type="zoom" tween="Cubic" start="130,130" end="100,100" easing="Out" reversible="false" center="105,150" time="250" />
</animation>
</include>