2010-09-30, 08:13
MusicVisualisation.xml
Files to skin/media/cdart/ folder
I got this vynil artwork from this post.
PHP Code:
<control type="group">
<animation effect="slide" start="0,450" end="0" time="1500" tween="cubic" easing="out" delay="400">WindowOpen</animation>
<animation effect="slide" start="0" end="0,450" time="1500" tween="cubic" easing="in">WindowClose</animation>
<control type="image">
<description>Player Base</description>
<posx>30</posx>
<posy>-150</posy>
<width>330</width>
<height>270</height>
<texture>cdart/lpplayer.png</texture>
<aspectratio align="bottom">keep</aspectratio>
<visible>Skin.HasSetting(cdartinvis)</visible>
</control>
<control type="image">
<description>Turntable</description>
<animation effect="rotate" end="-360" center="auto" time="1800" loop="true" reversible="false" condition="!Player.Paused">Conditional</animation>
<posx>40</posx>
<posy>-146</posy>
<width>262</width>
<height>262</height>
<texture>cdart/turntable.png</texture>
<aspectratio align="bottom">keep</aspectratio>
<visible>Skin.HasSetting(cdartinvis)</visible>
</control>
<control type="group">
<control type="image">
<description>Vynil record</description>
<animation effect="rotate" end="-360" center="auto" time="1800" loop="true" reversible="false" condition="!Player.Paused">Conditional</animation>
<posx>44</posx>
<posy>-141</posy>
<width>253</width>
<height>253</height>
<texture>cdart/vynil.png</texture>
<aspectratio align="bottom">keep</aspectratio>
<visible>Skin.HasSetting(cdartinvis)</visible>
</control>
<control type="image">
<description>CDart as vynil label</description>
<animation effect="rotate" end="-360" center="auto" time="1800" loop="true" reversible="false" condition="!Player.Paused">Conditional</animation>
<posx>117</posx>
<posy>-69</posy>
<width>110</width>
<height>110</height>
<texture>$INFO[Player.FolderPath]/cdart.png</texture>
<aspectratio align="bottom">keep</aspectratio>
<visible>Skin.HasSetting(cdartinvis)</visible>
</control>
</control>
<control type="image">
<description>Tonearm</description>
<animation effect="rotate" start="-13" end="-38" center="318,-110" time="3000000" loop="true" reversible="false" condition="!Player.Paused">Conditional</animation>
<posx>287</posx>
<posy>-148</posy>
<width>53</width>
<height>207</height>
<texture>cdart/tonearm.png</texture>
<aspectratio align="bottom">keep</aspectratio>
<visible>Skin.HasSetting(cdartinvis)</visible>
</control>
<control type="group">
<description>Cover</description>
<visible>!substring(MusicPlayer.Cover,default) + Skin.HasSetting(cdartinvis)</visible>
<control type="image">
<posx>380</posx>
<posy>-80</posy>
<width>200</width>
<height>200</height>
<texture>$INFO[MusicPlayer.Cover]</texture>
<aspectratio align="bottom">stretch</aspectratio>
</control>
<control type="image">
<description>Cover overlay</description>
<posx>380</posx>
<posy>-80</posy>
<width>200</width>
<height>200</height>
<texture>cdart/cover_matte.png</texture>
<aspectratio align="bottom">stretch</aspectratio>
</control>
</control>
<control type="group">
<control type="image">
<description>Diveder line</description>
<posx>535</posx>
<posy>-25</posy>
<width>650</width>
<height>3</height>
<texture>windows/list_divider.png</texture>
<visible>Skin.HasSetting(cdartinvis)</visible>
</control>
<control type="group">
<visible>Skin.HasSetting(cdartinvis)</visible>
<!-- Display Album instead of Artist if Artist is empty -->
<control type="label">
<description>Song title</description>
<posx>600</posx>
<posy>-83</posy>
<width>665</width>
<height>25</height>
<align>left</align>
<aligny>-</aligny>
<scroll>true</scroll>
<font>Font_WidgetLarge</font>
<label>[COLOR B5FFFFFF]$INFO[MusicPlayer.Title][/COLOR]</label>
</control>
<control type="label">
<description>Album</description>
<posx>600</posx>
<posy>-83</posy>
<width>665</width>
<height>25</height>
<align>left</align>
<aligny>-</aligny>
<scroll>true</scroll>
<font>Font_WidgetLarge</font>
<label>[COLOR B5FFFFFF]$INFO[MusicPlayer.Album][/COLOR]</label>
<visible>IsEmpty(MusicPlayer.Artist)</visible>
</control>
<!-- end -->
<control type="label">
<description>Album and year</description>
<posx>600</posx>
<posy>-20</posy>
<width>665</width>
<height>24</height>
<align>left</align>
<aligny>-</aligny>
<scroll>true</scroll>
<font>Font_OSDMusicArtist</font>
<label>[COLOR 80c2c4c3]$INFO[MusicPlayer.Album] $INFO[MusicPlayer.Year,[,]][/COLOR]</label>
<visible>!IsEmpty(MusicPlayer.Artist)</visible><!-- MusicPlayer.Album is already displayed if Artist is empty -->
</control>
<control type="label">
<description>Artist</description>
<posx>600</posx>
<posy>10</posy>
<width>665</width>
<height>30</height>
<align>left</align>
<aligny>-</aligny>
<font>Font_OSDMusicArtist</font>
<label>[COLOR A0FFFFFF]$INFO[MusicPlayer.Artist][/COLOR]</label>
</control>
</control>
<control type="fadelabel">
<description>Previous / Next Fadelabel</description>
<posx>600</posx>
<posy>40</posy>
<width>600</width>
<visible>true</visible>
<scroll>false</scroll>
<scrollout>false</scrollout>
<scrollspeed>100</scrollspeed>
<pauseatend>5000</pauseatend>
<label>$LOCALIZE[31715]: $INFO[MusicPlayer.offset(-1).Artist]$INFO[MusicPlayer.offset(-1).Title, - ]</label>
<label>$LOCALIZE[31704]: $INFO[MusicPlayer.offset(1).Artist]$INFO[MusicPlayer.offset(1).Title, - ]</label>
<font>font14</font>
<textcolor>50FFFFFF</textcolor>
<textoffsetx>0</textoffsetx>
<visible>![IsEmpty(MusicPlayer.offset(1).Title) + IsEmpty(MusicPlayer.offset(-1).Title) + IsEmpty(MusicPlayer.offset(1).Artist) + IsEmpty(MusicPlayer.offset(-1).Artist)] + Skin.HasSetting(cdartinvis)</visible>
</control>
<control type="label">
<description>Current time and Duration</description>
<posx>600</posx>
<posy>45</posy>
<width>500</width>
<height>500</height>
<font>Font_bigtime</font>
<label>[COLOR 60FFFFFF]$INFO[MusicPlayer.Time]$INFO[MusicPlayer.Duration, / ][/COLOR]</label>
<align>left</align>
<visible>Skin.HasSetting(cdartinvis)</visible>
</control>
</control>
</control>