<?xml version="1.0" encoding="utf-8"?>
<window>
	<defaultcontrol></defaultcontrol>
	<onload condition="System.HasAddon(script.artistslideshow)">RunScript(script.artistslideshow)</onload>
	<onload>SetProperty(ShowOSD,true,home)</onload>
	<onload>AlarmClock(ShowOSD,ClearProperty(ShowOSD,home),00:02,silent)</onload>
	<backgroundcolor>background</backgroundcolor>
	<include>PropertyIncludes</include>
	<controls>
		<!-- Visualisation -->
		<include>MusicBackground</include>
		<!-- Busy spinner -->
		<control type="group">
			<visible>Player.Caching</visible>
			<include content="BusySpinner">
				<param name="id" value="99"/>
				<param name="colordiffuse" value="white"/>
			</include>
		</control>
		<!-- OSD -->
		<control type="group">
			<visible>Window.IsVisible(musicosd) | Player.ShowInfo | Player.Paused | !String.IsEmpty(Window(home).Property(ShowOSD))</visible>
			<animation effect="fade" start="0" end="100" time="0">Visible</animation>
			<animation effect="fade" start="100" end="0" time="200" delay="1500">Hidden</animation>
			<!--Top-->
			<include>PlayerTopBar</include>
			<!-- bottom -->
			<control type="image">
				<bottom>0</bottom>
				<width>100%</width>
				<height>300</height>
				<texture colordiffuse="black" flipy="true">views/player/mask_top.png</texture>
			</control>
			<!-- icon -->
			<control type="group">
				<bottom>20</bottom>
				<control type="image">
					<visible>!Skin.HasSetting(HideDiscArt)</visible>
					<animation effect="rotate" center="auto" time="6000" end="-360" condition="true" loop="true">Conditional</animation>
					<bottom>120</bottom>
					<left>29</left>
					<width>258</width>
					<height>258</height>
					<texture diffuse="views/player/cd.png" background="true">$VAR[PlayerDiscArt]</texture>
					<fadetime>200</fadetime>
					<aspectratio>scale</aspectratio>
				</control>
				<control type="image">
					<bottom>0</bottom>
					<left>19</left>
					<height>278</height>
					<width>278</width>
					<texture background="true">$VAR[PlayerIcon]</texture>
					<aspectratio scalediffuse="false" aligny="center">scale</aspectratio>
					<bordersize>11</bordersize>
					<bordertexture border="11,11,11,11">items/resp_shadow.png</bordertexture>
					<visible>!String.StartsWith(Player.Filenameandpath,pvr://)</visible>
				</control>
				<control type="group">
					<visible>String.StartsWith(Player.Filenameandpath,pvr://)</visible>
					<control type="image">
						<bottom>0</bottom>
						<left>19</left>
						<height>278</height>
						<width>278</width>
						<texture background="true" colordiffuse="ff121212">common/white.jpg</texture>
						<aspectratio scalediffuse="false" aligny="center">scale</aspectratio>
						<bordersize>11</bordersize>
						<bordertexture border="11,11,11,11">items/resp_shadow.png</bordertexture>
					</control>
					<control type="image">
						<bottom>0</bottom>
						<left>19</left>
						<height>278</height>
						<width>278</width>
						<texture background="true">$VAR[PlayerIcon]</texture>
						<bordersize>11</bordersize>
						<aspectratio scalediffuse="false" aligny="center">keep</aspectratio>
					</control>
				</control>
			</control>
			<!-- osd -->
			<control type="group">
				<animation effect="slide" time="0" start="0,0" end="0,60" condition="!Window.IsVisible(musicosd)">Conditional</animation>
				<!-- label section -->
				<control type="group">
					<left>310</left>
					<right>30</right>
					<control type="group">
						<height>31</height>
						<bottom>189</bottom>
						<control type="grouplist">
							<orientation>horizontal</orientation>
							<height>31</height>
							<itemgap>0</itemgap>
							<control type="label">
								<include>NoTextures</include>
								<width>auto</width>
								<height>30</height>
								<aligny>center</aligny>
								<align>left</align>
								<font>Reg24</font>
								<textcolor>white</textcolor>
								<label>$INFO[MusicPlayer.Artist,,   ]</label>
								<visible>!String.IsEmpty(MusicPlayer.Artist)</visible>
								<visible>!String.IsEqual(MusicPlayer.Artist,MusicPlayer.Title)</visible>
							</control>
							<control type="label">
								<include>NoTextures</include>
								<width>auto</width>
								<height>30</height>
								<aligny>center</aligny>
								<align>left</align>
								<font>Reg24</font>
								<textcolor>white</textcolor>
								<label>$INFO[MusicPlayer.Album,,   ]</label>
								<visible>!String.IsEmpty(MusicPlayer.Album)</visible>
							</control>
						</control>
					</control>
					<control type="label">
						<height>50</height>
						<bottom>130</bottom>
						<left>0</left>
						<right>0</right>
						<aligny>center</aligny>
						<font>Med40</font>
						<textcolor>white</textcolor>
						<label>$INFO[MusicPlayer.Title]</label>
					</control>
					<control type="group">
						<height>31</height>
						<bottom>84</bottom>
						<control type="grouplist">
							<orientation>horizontal</orientation>
							<itemgap>0</itemgap>
							<control type="label">
								<include>NoTextures</include>
								<width>auto</width>
								<height>30</height>
								<left>0</left>
								<right>130</right>
								<aligny>center</aligny>
								<align>left</align>
								<font>Reg24</font>
								<textcolor>white</textcolor>
								<label>$VAR[PlayerTime]$VAR[PlayerDuration, / ]   </label>
							</control>
							<control type="label">
								<include>NoTextures</include>
								<width>auto</width>
								<height>30</height>
								<aligny>center</aligny>
								<align>left</align>
								<font>Reg24</font>
								<textcolor>white</textcolor>
								<label>$INFO[MusicPlayer.PlaylistPosition,$LOCALIZE[554] , / ]$INFO[MusicPlayer.PlaylistLength]</label>
								<visible>Integer.IsGreater(MusicPlayer.PlaylistLength,0)</visible>
								<visible>!String.StartsWith(Player.Filenameandpath,pvr://)</visible>
							</control>
						</control>
					</control>
				</control>
			</control>
		</control>
	</controls>
</window>
