<?xml version="1.0" encoding="UTF-8"?>
<window id="2000">
    <defaultcontrol always="true">3</defaultcontrol>
    <menucontrol>9000</menucontrol>

    <controls>
        <control type="group">
            <posy>PosYForThirteenLinesDialog</posy>
            <include content="WindowForDialog">
                <param name="headerid" value="1" />
                <param name="height" value="HeightForThirteenLinesDialog" />
                <param name="headerlabel" value="$LOCALIZE[13406]" />
                <param name="iconlabel" value="" />
                <param name="iconthumbnail" value="" />
            </include>

            <include content="DefaultIconForWindowForDialog">
                <param name="visible" value="!Window.Is(gamepadinput)" />
                <param name="iconlabel" value="$LOCALIZE[31904]" />
                <param name="iconlabelvisible" value="String.IsEmpty(Container(6).ListItem.Icon)" />
                <param name="iconthumbnail" value="$INFO[Container(6).ListItem.Icon]" />
            </include>

            <include content="DefaultIconForWindowForDialog">
                <param name="visible" value="Window.Is(gamepadinput)" />
                <param name="icontexture" value="icons/icon-gamepad.png" />
            </include>

            <control type="list" id="3">
                <description>Normal Selection List</description>
                <include content="MarkupForListForDialog">
                    <param name="posy" value="80" />
                    <param name="height" value="520" />
                    <param name="pagecontrol" value="21" />
                </include>
                <onup>3</onup>
                <ondown>3</ondown>
                <onleft>9000</onleft>
                <onright>21</onright>

                <itemlayout height="40">
                    <include>NormalItemsForNormalListInDialog</include>
                </itemlayout>
                    
                <focusedlayout height="40">
                    <control type="group">
                        <visible>Control.HasFocus(3)</visible>
                        <include>FocusedItemsForNormalListInDialog</include>
                    </control>
                    <control type="group">
                        <visible>!Control.HasFocus(3)</visible>
                        <include>SelectedItemsForNormalListInDialog</include>
                    </control>
                </focusedlayout>
            </control>

            <control type="list" id="6">
                <description>Selection List With Thumbnails For Addons</description>
                <include content="MarkupForListForDialog">
                    <param name="posy" value="80" />
                    <param name="height" value="520" />
                    <param name="pagecontrol" value="22" />
                </include>
                <onup>6</onup>
                <ondown>6</ondown>
                <onleft>9000</onleft>
                <onright>22</onright>
                
                <itemlayout height="100">
                    <include>NormalItemsForLargeThumbnailList</include>
                </itemlayout>
                    
                <focusedlayout height="100">
                    <control type="group">
                        <visible>Control.HasFocus(6)</visible>
                        <include>FocusedItemsForLargeThumbnailList</include>
                    </control>
                    <control type="group">
                        <visible>!Control.HasFocus(6)</visible>
                        <include>SelectedItemsForLargeThumbnailList</include>
                    </control>
                </focusedlayout>
            </control>
            
            <control type="scrollbar" id="21">
                <description>Normal List Scrollbar</description>
                <visible>Control.IsVisible(3)</visible>
                <include content="MarkupForScrollbarForDialog">
                    <param name="posy" value="80" />
                    <param name="height" value="520" />
                </include>
                <onleft>3</onleft>
            </control>

            <control type="scrollbar" id="22">
                <description>Thumbnail List Scrollbar</description>
                <visible>Control.IsVisible(6)</visible>
                <include content="MarkupForScrollbarForDialog">
                    <param name="posy" value="80" />
                    <param name="height" value="520" />
                </include>
                <onleft>6</onleft>
            </control>

            <control type="label" id="2">
                <description>Number Of Files Label</description>
                <posx>40</posx>
                <posy>520</posy>
                <width>480</width>
                <font>DialogTextFont</font>
                <textcolor>$VAR[TextColor]</textcolor>
                <align>center</align>
            </control>

            <control type="grouplist" id="9000">
                <include content="MarkupForButtonListForDialog">
                    <param name="posy" value="520" />
                    <param name="height" value="80" />
                </include>
                <onright>3</onright>

                <include content="SpacerForButtonListForDialog">
                    <param name="id" value="8" />
                    <param name="visible" value="!Control.IsVisible(5)" />
                </include>
                <control type="button" id="5">
                    <description>Ok/Manual Search/Get More Button</description>
                </control>
                <control type="button" id="7">
                    <description>Cancel Button</description>
                </control>
            </control>
        </control>
    </controls>
</window>
