2010-10-10, 05:04
I'm working with the cdArt mod right now. I've made it so it retreats into the album when the song is paused, and fades away when the song is over, both very simple to do. Now what I am trying to do is make it so that 1 second before the song is over the CD will go back into the album, then emerge again 1 second into the next song, thus making it look like CDs were being exchanged This seemed fairly straight forward to me, but apparently not. Here's the code I'm using:
What's wrong here?
Extreme bonus points: could someone explain how, once this is working, I could make it so that the CD will only change if the next song is from a different album?
Thanks for any help!
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 effect="slide" start="-118" end="0" time="700" tween="cubic" easing="out">Visible</animation>
<animation effect="slide" start="0" end="-118" time="700" tween="cubic" easing="in">Hidden</animation>
<animation effect="fade" start="100" end="0" time="100" condition="!Player.HasAudio">Conditional</animation>
<animation effect="rotate" end="-360" center="auto" time="2000" loop="true" reversible="false" condition="Control.IsVisible(10)">Conditional</animation>
<width>240</width>
<height>198</height>
<posx>148</posx><!-- 112 -->
<posy>245r</posy><!-- -143 -->
<texture fallback="backdrops/artist_fanart/default/default.png">backdrops/artist_fanart/cd/$INFO[MusicPlayer.Artist]-$INFO[MusicPlayer.Album].png</texture>
<aspectratio align="bottom">keep</aspectratio>
<visible>!Player.Paused | IntegerGreaterThan(Player.Duration-Player.Time,2) | IntegerGreaterThan(2,Player.Time)</visible>
</control>
What's wrong here?
Extreme bonus points: could someone explain how, once this is working, I could make it so that the CD will only change if the next song is from a different album?
Thanks for any help!