2009-06-23, 00:14
reaven Wrote:mine spin as long as the cd is playing and stop for a moment if you paused but continue when the pause is release.
sorry for the mess in the code am currently constantly testing
Code:<control type="image">
<description>Cd overlay</description>
<animation effect="slide" start="-118" end="0" time="700" tween="cubic" easing="out" delay="1000">WindowOpen</animation>
<animation type="WindowClose">
<effect type="slide" start="0" end="-114" time="700" tween="cubic" easing="in" delay="0"/>
<effect type="fade" start="100" end="0" time="1300"/>
<condition type="!Player.Playing"/>
</animation>
<animation effect="rotate" end="-360" center="auto" time="2000" loop="true" reversible="false" condition="!Player.Paused">Conditional</animation>
<width>270</width>
<height>228</height>
<posx>175</posx><!-- 112 -->
<posy>-143</posy><!-- -143 -->
<!--<texture diffuse="home/disc_mask.png">-->
<texture>backdrops/artist_fanart/$INFO[MusicPlayer.Artist]/cd/$INFO[MusicPlayer.Album].png</texture>
<aspectratio align="bottom">keep</aspectratio>
</control>
great, i couldn't find anywhere if 'loop' was supported in animations, so this is just what i was looking for. i'll play with it some more over the next couple of days.