<?xml version="1.0" encoding="UTF-8"?>
<window type="dialog" id="1125">

    <!-- Huge thanks to MikeSilVO, this is an adaptation of his code -->

    <onunload>ClearProperty(CustomSelectFavouriteAddons,skinsettings)</onunload>

    <defaultcontrol always="true">90101</defaultcontrol>
	<include>DialogOpenClose</include>
	<controls>
		<control type="group" description="All dialog content">
			<animation type="WindowOpen">
				<effect type="zoom" start="95" end="100" center="960,540" time="200" />
				<effect type="fade" start="80" end="100" time="200" />
			</animation>
			<animation type="WindowClose">
				<effect type="zoom" start="100" end="95" center="960,540" time="100" />
				<effect type="fade" start="100" end="0" time="100" />
			</animation>
            <control type="group">
			    <control type="image" description="Menu BG">
    				<posx>681</posx>
				    <posy>240</posy>
				    <height>750</height>
				    <width>677</width>
				    <texture border="0,40,0,40">dialogs/ContextMenu.png</texture>
					<colordiffuse>$VAR[DialogBGColor]</colordiffuse>
			    </control>
			    <control type="label" description="Dialog heading">
				    <posx>675</posx>
				    <posy>261</posy>
				    <width>690</width>
				    <height>52</height>
				    <label>$LOCALIZE[32063]</label>
				    <align>center</align>
				    <aligny>center</aligny>
				    <textcolor>$VAR[HighlightColor]</textcolor>
			    </control>
            </control>
			<control type="list" id="90101">
		        <posx>707</posx>
				<posy>366</posy>
				<width>775</width>
				<height>600</height>
				<onup>90101</onup>
				<ondown>90101</ondown>
				<onright>9010163</onright>
				<pagecontrol>9010163</pagecontrol>
				<scrolltime>280</scrolltime>
				<itemlayout width="625" height="60">
				    <control type="image">
					    <width>625</width>
					    <height>60</height>
					    <texture border="3">buttons/ButtonNF.png</texture>
				    </control>
				    <control type="label" description="Main Label">
					    <width>225</width>
					    <height>60</height>
                        <textoffsetx>15</textoffsetx>
				        <label>$INFO[ListItem.Label]</label>
					</control>
					<control type="label">
						<width>400</width>
						<height>60</height>
                        <right>15</right>
						<font>ListDetails</font>
						<align>right</align>
						<label>$INFO[ListItem.Label2]</label>
					</control>
				</itemlayout>
				<focusedlayout width="625" height="60">
				    <control type="image" description="fa overlay">
					    <animation effect="fade" start="100" end="40" time="100" condition="!Control.HasFocus(90101)">Conditional</animation>
					    <width>625</width>
					    <height>60</height>
					    <texture border="4" colordiffuse="$VAR[HighlightColor]">img/WhiteRoundedST2.png</texture>
				    </control>
				    <control type="label" description="Main Label">
					    <width>225</width>
					    <height>60</height>
                        <textoffsetx>15</textoffsetx>
					    <textcolor>$VAR[FocusedTextColor]</textcolor>
					    <shadowcolor></shadowcolor>
					    <label>$INFO[ListItem.Label]</label>
				    </control>
				    <control type="label">
					    <width>400</width>
					    <height>60</height>
                        <right>15</right>
                        <font>ListDetails</font>
					    <textcolor>$VAR[FocusedTextColor]</textcolor>
					    <shadowcolor></shadowcolor>
                        <align>right</align>
					    <label>$INFO[ListItem.Label2]</label>
				    </control>
				</focusedlayout>
				<content>
                    <include>SelectFavouriteAddons</include>
				</content>
			</control>
            <control type="scrollbar" id="9010163">
				<visible>Control.IsVisible(90101)</visible>
				<posx>1321</posx>
				<posy>366</posy>
				<width>36</width>
				<height>610</height>
				<texturesliderbackground></texturesliderbackground>
				<texturesliderbar></texturesliderbar>
				<texturesliderbarfocus></texturesliderbarfocus>
				<textureslidernib border="18">OSD/ScrollbarNibNF.png</textureslidernib>
				<textureslidernibfocus border="18" colordiffuse="$VAR[HighlightColor]">OSD/ScrollbarNibFO.png</textureslidernibfocus>
				<showonepage>false</showonepage>
				<orientation>vertical</orientation>
				<onleft>90101</onleft>
				<onright>90101</onright>
			</control>
		</control>
	</controls>
</window>