<?xml version="1.0" encoding="utf-8"?>
<window id="2006">
     <allowoverlay>no</allowoverlay>
	 <onload condition="System.HasAddon(script.artistslideshow) + Skin.HasSetting(EnableArtistSlideshowAddon)">RunScript(script.artistslideshow)</onload>
	<controls>
		<control type="group">
			<visible>Player.HasAudio</visible>
			<!-- Blue Background -->
			<control type="image">
				<include>Dimensions_Fullscreen</include>
				<texture>boxBackground.png</texture>
				<aspectratio scalediffuse="false">stretch</aspectratio>
				<visible>!Skin.HasSetting(ThemeBackgroundColor)</visible>
			</control>
			<!-- Theme Color Background -->
			<control type="group">
				<visible>Skin.HasSetting(ThemeBackgroundColor)</visible>
				<control type="image">
					<include>Dimensions_Fullscreen</include>
					<aspectratio scalediffuse="false">stretch</aspectratio>
					<texture>button.png</texture>
				</control>
				<control type="image">
					<include>Dimensions_Fullscreen</include>
					<aspectratio scalediffuse="false">stretch</aspectratio>
					<texture>tile.png</texture>
				</control>
			</control>
			<control type="image">
				<include>Dimensions_Fullscreen</include>
				<texture>music_fanart_diffuse.png</texture>
				<aspectratio scalediffuse="false">stretch</aspectratio>
			</control>					
			<control type="multiimage">
				<include>Dimensions_Fullscreen</include>
				<imagepath background="true">$INFO[Window(Visualisation).Property(ArtistSlideshow)]</imagepath>
				<aspectratio>keep</aspectratio>
				<timeperimage>10000</timeperimage>
				<fadetime>2000</fadetime>
				<randomize>true</randomize>
				<visible>System.HasAddon(script.artistslideshow) + Skin.HasSetting(EnableArtistSlideshowAddon)</visible>	
			</control>
			<control type="group">
				<visible>!Skin.HasSetting(EnableArtistSlideshowAddon)</visible>
				<!-- Color Walls in Case no Fanart Available at all -->
				<control type="multiimage">
					<include>Dimensions_Fullscreen</include>
					<randomize>true</randomize>
					<timeperimage>10000</timeperimage>
					<fadetime>5000</fadetime>
					<pauseatend>0</pauseatend>
					<loop>true</loop>
					<aspectratio aligny="top">stretch</aspectratio>
					<imagepath background="true">walls</imagepath>
					<animation effect="fade" start="0" end="100" time="550" delay="0" tween="sine" easing="inout">VisibleChange</animation>
					<visible>String.IsEmpty(Control.getLabel(9870)) + String.IsEmpty(Control.getLabel(9872)) + String.IsEmpty(Control.getLabel(9874))</visible>	
				</control>
				<control type="image">
					<include>Dimensions_Fullscreen</include>
					<aspectratio scalediffuse="false">stretch</aspectratio>
					<texture>music_fanart_diffuse.png</texture>
					<visible>String.IsEmpty(Control.getLabel(9870)) + String.IsEmpty(Control.getLabel(9872)) + String.IsEmpty(Control.getLabel(9874))</visible>						
				</control>				
				<!-- Artist Fanart from Music Player in Case no Fanart.jpg in Album Folder-->
				<control type="image" id="9874">
					<description>Fanart Image for Artist</description>
					<include>Dimensions_Fullscreen</include>
					<texture>$INFO[MusicPlayer.Property(Fanart_Image)]</texture>
					<animation effect="fade" start="0" end="100" time="550" delay="0" tween="sine" easing="inout">VisibleChange</animation>
					<visible>String.IsEmpty(Control.getLabel(9870)) + String.IsEmpty(Control.getLabel(9872))</visible>	
					<fadetime>600</fadetime>
				</control>
				 <!-- Artist Fanart from cd Folder if no extrafanart folder is available-->
				<control type="image" id="9872">
					<description>Fanart Image for Artist</description>
					<include>Dimensions_Fullscreen</include>
					<texture>$INFO[Player.FolderPath]fanart.jpg</texture>
					<animation effect="fade" start="0" end="100" time="550" delay="0" tween="sine" easing="inout">VisibleChange</animation>
					<visible>String.IsEmpty(Control.getLabel(9870)) | String.IsEmpty(Skin.String(ArtistsFanartPath))</visible>			
					<fadetime>600</fadetime>
				</control>
				<!-- Display Aritst Fanart from extrafanrt folder in Music Libray Path-->
				<control type="multiimage" id ="9870">
					<animation type="Conditional" condition="!String.IsEmpty(Control.getLabel(8870))">
						<effect type="fade" start="0" end="100" time="550" delay="0" tween="sine" easing="inout" />
					</animation>
					<include>Dimensions_Fullscreen</include>
					<randomize>false</randomize>
					<timeperimage>10000</timeperimage>
					<fadetime>2000</fadetime>
					<pauseatend>0</pauseatend>
					<loop>true</loop>
					<imagepath>$INFO[Skin.String(ArtistsFanartPath)]$INFO[MusicPlayer.Artist,,/extrafanart/]</imagepath>
					<visible>!String.IsEmpty(Skin.String(ArtistsFanartPath))</visible>
				 </control>
			</control>
			<control type="visualisation" id="2">
			<!-- Visualization needs to have an id of 2 in this window to be able to lock or change preset -->
				<description>visualisation</description>
				<left>0</left>
				<top>0</top>
				<width>1280</width>
				<height>720</height>
				<visible>Skin.HasSetting(Visualization)</visible>
			</control>
			<include>BackgroundTextScroll</include>
			
	
			
			<!-- Info Display -->
			<control type="group">
				<visible>[Player.ShowInfo | Window.IsActive(musicosd) | Window.IsVisible(script-cu-lrclyrics-main.xml)] + !Window.IsVisible(AddonSettings) + !Window.IsVisible(SelectDialog)</visible>
				<!-- Info Background / Album /Artist / Track -->
				<control type="Group">
					<animation effect="slide" start="1010" end="0" time="900" tween="cubic" easing="out" delay="0">WindowOpen</animation>
					<animation effect="slide" start="0" end="1300" time="900" tween="cubic" easing="in" delay="0">WindowClose</animation>
					<!--Info Background -->
					<control type="image">
						<description>Music bar</description>
						<animation effect="zoom" end="0,0,1280,680" time="300" condition="Skin.HasSetting(showLyricsDialog)">Conditional</animation>
						<left>0</left>
						<top>440</top>
						<width>1280</width>
						<height>240</height>
						<texture background="true">music_fanart_diffuse.png</texture>
					</control>
		
					<!-- Artist Album & Track-->
					<control type="group">
						<left>390</left>
						<top>450</top>
							<!-- Artist Name -->
							<control type="label">
								<description>Artist</description>
								<width>855</width>
								<label>$INFO[MusicPlayer.Artist]</label>
								<scroll>true</scroll>
								<font>Music_Vis_Title</font>
								<align>left</align>
								<shadowcolor>black</shadowcolor>
							</control>
							 <!-- Album & Year -->
							<control type="label">
								<description>Album</description>
								<top>52</top>
								<width>855</width>
								<label>$INFO[MusicPlayer.Album] [COLOR Accent]$INFO[MusicPlayer.Year][/COLOR]</label>
								<scroll>true</scroll>
								<font>Music_Vis_Title2</font>
								<align>left</align>
								<shadowcolor>black</shadowcolor>
							</control>
							<!-- Track Nr & Title -->
							<control type="label">
								<description>Track</description>
								<top>97</top>
								<width>750</width>
								<label>[COLOR Accent]$INFO[MusicPlayer.TrackNumber][/COLOR] $INFO[MusicPlayer.Title]</label>
								<scroll>true</scroll>
								<font>Music_Vis_Title3</font>
								<align>left</align>
								<shadowcolor>black</shadowcolor>
							</control>
							<!-- Track Rating -->
							<control type="image">
								<description>Rating image</description>
								<left>0</left>
								<top>130</top>
								<width>140</width>
								<height>60</height>
								<aspectratio align="left">keep</aspectratio>
								<texture>other_textures/colorrating/$INFO[MusicPlayer.UserRating,rating,.png]</texture>
							</control>
					</control>
				</control>
				<!-- Progress Display Progress -->
				<control type="group">
					<animation effect="slide" start="0,40" end="0,0" time="900" tween="cubic" easing="out" delay="0">WindowOpen</animation>
					<animation effect="slide" start="0,0" end="0,40" time="900" tween="cubic" easing="in" delay="0">WindowClose</animation>
					<!-- Progress Bar Background -->
					<control type="image">
						<description>black bar</description>
						<left>0</left>
						<top>690</top>
						<width>1280</width>
						<height>30</height>
						<fadetime>200</fadetime>
						<texture background="true">music_fanart_diffuse.png</texture>
					</control>
					<!-- Progress Bar -->
					<control type="progress">
						<description>Progressbar</description>
						<left>100</left>
						<top>702</top>
						<width>1080</width>
						<height>6</height>
						<info>Player.Progress</info>
						<texturebg>progressmidgreen.png</texturebg>
						<midtexture>progresslime.png</midtexture>
					</control>
					<!-- Player Time Elapsed-->
					<control type="label">
						<left>10</left>
						<top>690</top>
						<width>120</width>
						<height>30</height>
						<label>$INFO[MusicPlayer.Time]</label>
						<align>left</align>
						<font>Panel_Hint</font>
						<textcolor>Accent</textcolor>
					</control>
					<!-- Player Time Remaining-->
					<control type="label">
						<left>1150</left>
						<top>690</top>
						<width>120</width>
						<height>30</height>
						<label>$INFO[MusicPlayer.TimeRemaining,-]</label>
						<align>right</align>
						<font>Panel_Hint</font>
					</control>
				 </control>
				<!-- Album Cover and Album CD-->
				<control type="group">
					<description>Cd Disc and Cover</description>
					<left>30</left>
					<top>440</top>
					<animation effect="slide" start="-380" end="0" time="900" tween="cubic" easing="out" delay="0">WindowOpen</animation>
					<animation effect="slide" start="0" end="-380" time="900" tween="cubic" easing="in" delay="0">WindowClose</animation>
					<!-- Cdart Fallback		
					<control type="image">
						<left>115</left>
						<top>5</top>
						<description>Cd Disc</description>
						<animation effect="fade" start="100" end="0" time="700" tween="cubic" easing="out" condition="Window.IsActive(musicosd)">Conditional</animation>
						<animation effect="slide" start="0" end="-110" time="900" tween="cubic" easing="out" delay="800">WindowOpen</animation>
						<animation effect="slide" start="-110" end="0" time="900" tween="cubic" easing="out">WindowClose</animation>
						<animation effect="rotate" end="-360" center="auto" time="4000" loop="true" reversible="false" condition="!Player.Paused">Conditional</animation>
						<width>230</width>
						<height>230</height>
						<texture diffuse="CDMask.png">$INFO[MusicPlayer.cover]</texture>
						<aspectratio>keep</aspectratio>
						<visible>String.IsEmpty(Control.getLabel(55))</visible>
					</control>
					-->
				
					
					<!-- Cdart-->
					<control type="image" id="55">
						<left>115</left>
						<top>5</top>
						<description>Cd Disc</description>
						<animation effect="fade" start="100" end="0" time="700" tween="cubic" easing="out" condition="Window.IsActive(musicosd)">Conditional</animation>
						<animation effect="slide" start="0" end="-110" time="900" tween="cubic" easing="out" delay="800">WindowOpen</animation>
						<animation effect="slide" start="-110" end="0" time="900" tween="cubic" easing="out">WindowClose</animation>
						<animation effect="rotate" end="-360" center="auto" time="4000" loop="true" reversible="false" condition="!Player.Paused">Conditional</animation>
						<width>230</width>
						<height>230</height>
						<texture>$INFO[Player.FolderPath]cdart.png</texture>
						<aspectratio>keep</aspectratio>
					</control>

				
					<!-- Album Cover-->
					<control type="image">
						<description>Music cover image</description>
						<width>240</width>
						<height>240</height>
						<left>110</left>
						<bordertexture border="5">white_box.png</bordertexture>
						<bordersize>5</bordersize>
						<texture background="true">$INFO[MusicPlayer.cover]</texture>
					</control>
				</control>
			</control>
			
			
			
		</control>
		
	</controls>
</window>