<?xml version="1.0" encoding="UTF-8"?>
<window type="dialog" id="7777">
	  <defaultcontrol>3</defaultcontrol>
   
  	<onunload>Skin.Reset(CustomHomeTile.Path)</onunload>
	<onunload>Skin.Reset(CustomHomeTile.Type)</onunload>
	<onunload>Skin.Reset(CustomHomeTile.Image)</onunload>
	<onunload>Skin.Reset(CustomHomeTile.Icon)</onunload>
	<onunload>Skin.Reset(CustomHomeTile.Label)</onunload>
	<onunload>Skin.Reset(CustomHomeTile.ImageType)</onunload>
	<onunload>Skin.Reset(ShowIconSelector)</onunload>
	<controls>
		<control type="group">
		<animation type="WindowClose">
			<effect type="fade" time="300" />
			<effect type="slide" end="+1500,0" time="300" />
		</animation>
		<animation type="WindowOpen">
			<effect type="fade" time="300" />
			<effect type="slide" start="+1500,0" time="300" />
		</animation>
		
		<animation type="Conditional" condition="Skin.HasSetting(ShowIconSelector)" reversible="true">
			<effect type="slide" start="0" end="-1240" time="300" />
		</animation>
		

		<control type="label">
			<include>ViewMainTitle</include>
			<label>$VAR[CustomHomeTile.Label]</label>
		</control>
		<control type="label">
			<include>ViewMainTitle</include>
			<label>$LOCALIZE[504]</label>
			<textcolor>Accent</textcolor>
			<visible>String.IsEmpty(Control.getLabel(1)) + Control.HasFocus(1)</visible>
		</control>
		<control type="image">
			<include>PanelCoordinates</include>
			<width>315</width>
			<height>315</height>
			<texture fallback="defaultaddsource.png">$VAR[CustomHomeTile.Image]</texture> 
			<bordersize>15</bordersize>
			<bordertexture>tile.png</bordertexture>
		</control>		
		<control type="panel" id="3">
			<top>290</top>
			<left>370</left>
			<width>640</width>
			<height>320</height>
			<onright>9000</onright>
			<orientation>horizontal</orientation>
			<itemlayout width="160" height="160">
				<control type="image">
					<include>PanelButtonImageNF</include>
				</control>
				<control type="image">
					<include>PanelButtonIcon</include>
					<texture>$INFO[ListItem.Art(thumb)]</texture>
				</control>
				<control type="label">
					<label>$INFO[ListItem.Label]</label>
					<include>PanelButtonTitle</include>
				</control>
			</itemlayout>
			<focusedlayout width="160" height="160">
				<control type="image">
					<include>PanelButtonImageFO</include>
				</control>
				<control type="image">
					<include>PanelButtonIcon</include>
					<texture>$INFO[ListItem.Art(thumb)]</texture>
				</control>
				<control type="label">
					<label>$INFO[ListItem.Label]</label>
					<include>PanelButtonTitle</include>
				</control>
			</focusedlayout>
			<content>
				<include>CustomItemChooser</include>
			</content>
		</control>
		
		<control type="label">
			<include>ViewFooterTitle</include>
			<label>$INFO[Skin.String(CustomHomeTile.Path),PATH: ]</label>
		</control>
	
		<control type="fixedlist" id="4">
			<top>50</top>
			<left>1290</left>
			<width>50</width>
			<height>650</height>
			<onleft>6</onleft>
			<onright>5</onright>
			<movement>6</movement>
			<focusposition>6</focusposition>
			<pagecontrol>6</pagecontrol>
			<itemlayout height="50" width="50">
				<control type="image">
					<width>45</width>
					<height>45</height>
					<texture>tile.png</texture>
				</control>
				<control type="image">
					<width>45</width>
					<height>45</height>
					<texture>$INFO[ListItem.Label,../extras/HomeTileIcons/]</texture>
					<bordersize>5</bordersize>
				</control>
			</itemlayout>
			<focusedlayout height="50" width="50">
				<control type="image">
					<width>45</width>
					<height>45</height>
					<texture>button.png</texture>
				</control>
				<control type="image">
					<width>45</width>
					<height>45</height>
					<texture>$INFO[ListItem.Label,../extras/HomeTileIcons/]</texture>
					<bordersize>5</bordersize>
				</control>
	
			</focusedlayout>
			<content type="url">special://skin/extras/HomeTileIcons/</content>
		</control>
		
		<control type="button" id="5">
			<top>290</top>
			<left>1675</left>
			<width>155</width>
			<height>45</height>
			<onleft>4</onleft>
			<label>22080</label>
			<font>Panel_Hint</font>
			<focusedcolor>White</focusedcolor>
			<texturefocus>button.png</texturefocus>
			<texturenofocus>tile.png</texturenofocus>
			<onclick>Skin.SetString(CustomHomeTile.Image,../extras/HomeTileIcons/$INFO[Container(4).ListItem.Label])</onclick>
			<onclick>Skin.ToggleSetting(ShowIconSelector)</onclick>
			<onclick>setFocus(3,1)</onclick>
		</control>
		<control type="scrollbar" id="6">
			<left>1280</left>
			<top>50</top>
			<width>5</width>
			<height>650</height>
			<onright>4</onright>
			<texturesliderbackground></texturesliderbackground>
			<textureslidernib>bar.png</textureslidernib>
			<textureslidernibfocus>scroll_nib.png</textureslidernibfocus>
			<texturesliderbar></texturesliderbar>
			<texturesliderbarfocus></texturesliderbarfocus>
			<showonepage>true</showonepage>
			<orientation>vertical</orientation>
		</control>
		<control type="image">
			<left>1350</left>
			<top>290</top>
			<width>315</width>
			<height>315</height>
			<texture>$INFO[Container(4).ListItem.Label,../extras/HomeTileIcons/]</texture> 
			<bordersize>15</bordersize>
			<bordertexture>tile.png</bordertexture>
		</control>
		
		<control type="label">
			<left>1350</left>
			<top>215</top>
			<height>30</height>
			<width>1180</width>
			<font>Panel_Title</font>
			<scroll>true</scroll>
			<scrollout>false</scrollout>
			<pauseatend>600</pauseatend>
			<scrollspeed>50</scrollspeed>
			<aligny>top</aligny>
			<align>left</align>
			<label>$INFO[Container(4).ListItem.Label]</label>
		</control>
		
		<control type="grouplist" id="9000">
                <left>1020</left>
                <top>290</top>
                <itemgap>4</itemgap>
                <orientation>vertical</orientation>
				<control type="button" id="10">
                    <description>OK Button</description>
                    <width>145</width>
                    <label>186</label>
                    <onleft>3</onleft>
                    <onright>3</onright>
					<focusedcolor>White</focusedcolor>
					<font>Panel_Hint</font>
					<align>center</align>
					<texturefocus>button.png</texturefocus>
					<texturenofocus>tile.png</texturenofocus>
					<onclick condition="Skin.String(CustomHomeTile.Label,) + Skin.String(CustomHomeTile.Type,addon)">Skin.SetString(CustomHomeTile.Label,$INFO[system.addontitle(Skin.String(CustomHomeTile.Path))])</onclick>
					<onclick condition="Skin.String(CustomHomeTile.Image,) + Skin.String(CustomHomeTile.Type,addon)">Skin.SetString(CustomHomeTile.Image,$INFO[system.addonicon(Skin.String(CustomHomeTile.Path))])</onclick>
					<onclick condition="Skin.String(CustomHomeTile.Image,) + Skin.String(CustomHomeTile.Type,Favourite)">Skin.SetString(CustomHomeTile.Image,$INFO[Skin.String(CustomHomeTile.Icon)])</onclick>
					<onclick condition="!Skin.String(CustomHomeTile.Path,)">Skin.SetString($INFO[Skin.String(SelectedHomeTitle)].Path,$INFO[Skin.String(CustomHomeTile.Path)])</onclick>
					<onclick condition="!Skin.String(CustomHomeTile.Path,)">Skin.SetString($INFO[Skin.String(SelectedHomeTitle)].Label,$INFO[Skin.String(CustomHomeTile.Label)])</onclick>
					<onclick condition="!Skin.String(CustomHomeTile.Path,)">Skin.SetString($INFO[Skin.String(SelectedHomeTitle)].Image,$INFO[Skin.String(CustomHomeTile.Image)])</onclick>
					<onclick condition="!Skin.String(CustomHomeTile.Path,)">Skin.SetString($INFO[Skin.String(SelectedHomeTitle)].Type,$INFO[Skin.String(CustomHomeTile.Type)])</onclick>
					<onclick condition="!Skin.String(CustomHomeTile.Path,)">Skin.SetString($INFO[Skin.String(SelectedHomeTitle)].ImageType,$INFO[Skin.String(CustomHomeTile.ImageType)])</onclick>
					<onclick>Dialog.Close(7777)</onclick>
				</control>
				<control type="radiobutton" id="20">
					<description>Full Icon</description>
					<width>145</width>
					<align>left</align>
					 <onleft>3</onleft>
                    <onright>3</onright>
					<label>538</label>
					<focusedcolor>White</focusedcolor>
					<texturenofocus>tile.png</texturenofocus>
					<texturefocus colordiffuse="AccentDiffuse">button.png</texturefocus>
					<font>List_Hint</font>
					<onclick>Skin.SetString(CustomHomeTile.ImageType,FullIcon)</onclick>
					<selected>Skin.String(CustomHomeTile.ImageType,FullIcon)</selected>
				</control>
				<control type="button" id="60">
					<description>description>Reset Image</description>
					<width>145</width>
					<label>13334</label>
					<onleft>3</onleft>
					<onright>3</onright>
					<focusedcolor>White</focusedcolor>
					<font>Panel_Hint</font>
					<align>center</align>
					<texturefocus>button.png</texturefocus>
					<texturenofocus>tile.png</texturenofocus>
					<onclick>Skin.SetString(CustomHomeTile.Label)</onclick>
					<visible>!Skin.String(CustomHomeTile.Path,)</visible>
				</control>				
				<control type="button" id="30">
                    <description>Reset Image</description>
                    <width>145</width>
                    <label>13007</label>
                    <onleft>3</onleft>
                    <onright>3</onright>
					<focusedcolor>White</focusedcolor>
					<font>Panel_Hint</font>
					<align>center</align>
					<texturefocus>button.png</texturefocus>
					<texturenofocus>tile.png</texturenofocus>
					<onclick condition="Skin.String(CustomHomeTile.Type,addon)">Skin.SetString(CustomHomeTile.Label,$INFO[system.addontitle($INFO[Skin.String(SelectedHomeTitle)].Path)])</onclick>
					<onclick condition="Skin.String(CustomHomeTile.Type,addon)">Skin.SetString(CustomHomeTile.Image,$INFO[system.addonicon($INFO[Skin.String(SelectedHomeTitle)].Path)])</onclick>
					<onclick condition="Skin.String(CustomHomeTile.Type,Favourite)">Skin.SetString(CustomHomeTile.Image,$INFO[Skin.String(CustomHomeTile.Icon)])</onclick>
					<visible>!Skin.String(CustomHomeTile.Path,) + [Skin.String(CustomHomeTile.Type,addon) | Skin.String(CustomHomeTile.Type,Favourite)]</visible>
				</control>
				<control type="button" id="40">
					<width>145</width>
                    <label>31311</label>
                    <onleft>3</onleft>
                    <onright>3</onright>
					<focusedcolor>White</focusedcolor>
					<font>Panel_Hint</font>
					<align>center</align>
					<texturefocus>button.png</texturefocus>
					<texturenofocus>tile.png</texturenofocus>
					<onclick>Skin.ToggleSetting(ShowIconSelector)</onclick>
					<onclick>setFocus(4,1)</onclick>
					<visible>!Skin.String(CustomHomeTile.Path,)</visible>
				</control>
				<control type="button" id="50">
					<width>145</width>
                    <label>31312</label>
                    <onleft>3</onleft>
                    <onright>3</onright>
					<focusedcolor>White</focusedcolor>
					<font>Panel_Hint</font>
					<align>center</align>
					<texturefocus>button.png</texturefocus>
					<texturenofocus>tile.png</texturenofocus>
					<onclick>Skin.SetImage(CustomHomeTile.Image)</onclick>
					<visible>!Skin.String(CustomHomeTile.Path,)</visible>
				</control>					
            </control>
				
		</control>
		
		</controls>
</window>
