<?xml version="1.0" encoding="UTF-8"?>
<window>
    <defaultcontrol always="true">9000</defaultcontrol>
    <onload condition="!IntegerGreaterThan(container(3).numitems,0) + !IntegerGreaterThan(container(6).numitems,0)">control.SetFocus(9999)</onload>
    <controls>
        <!--background-->
        <include>globalBackground</include>

        <control type="group">
            <control type="group">
                <posx>col-6-begin</posx>
                <posy>row-5-begin</posy>
                <!--animations-->
                <include>modalDialogInOut</include>
                <control type="image">
                    <posx>0</posx>
                    <posy>0</posy>
                    <width>16-col</width>
                    <height>2-row</height>
                    <texture>colors/white.png</texture>
                    <colordiffuse>highlight</colordiffuse>
                    <aspectratio>stretch</aspectratio>
                </control>
                <control type="label" id="1">
                    <posx>24</posx>
                    <posy>0</posy>
                    <width>16-col-gutter</width>
                    <height>2-row</height>
                    <aligny>center</aligny>
                    <font>dialogTitle</font>
                    <textcolor>textActive</textcolor>
                    <shadowcolor>-</shadowcolor>
                </control>
                <control type="image">
                    <posx>0</posx>
                    <posy>2-row</posy>
                    <width>16-col</width>
                    <height>18-row</height>
                    <texture>colors/black.png</texture>
                    <colordiffuse>overlay</colordiffuse>
                    <aspectratio>stretch</aspectratio>
                </control>
                <control type="image">
                    <posx>12-col</posx>
                    <posy>2-row</posy>
                    <width>4-col</width>
                    <height>18-row</height>
                    <texture>colors/black.png</texture>
                    <colordiffuse>overlay</colordiffuse>
                    <aspectratio>stretch</aspectratio>
                </control>

                <control type="group" id="9000">
                    <!--Used in search from cast listing etc-->
                    <control type="panel" id="3">
                        <posx>0</posx>
                        <posy>73</posy>
                        <width>12-col</width>
                        <height>18-row</height>
                        <onright>9999</onright>
                        <itemlayout height="72" width="12-col">
                            <control type="image">
                                <posx>0</posx>
                                <posy>0</posy>
                                <width>69</width>
                                <height>69</height>
                                <aspectratio scalediffuse="false">stretch</aspectratio>
                                <texture fallback="colors/offblack.png" border="0">$INFO[Listitem.icon]</texture>
                            </control>
                            <control type="label">
                                <visible>ListItem.IsSelected</visible>
                                <posx>0</posx>
                                <posy>3</posy>
                                <width>66</width>
                                <height>66</height>
                                <align>center</align>
                                <aligny>center</aligny>
                                <font>symbolLarge</font>
                                <textcolor>textActive</textcolor>
                                <selectedcolor>textActive</selectedcolor>
                                <label>✓</label>
                            </control>
                            <control type="label">
                                <posx>1-col-indent</posx>
                                <posy>0</posy>
                                <width>11-col-gutter</width>
                                <height>2-row</height>
                                <aligny>center</aligny>
                                <font>itemTitle</font>
                                <textcolor>textActive</textcolor>
                                <shadowcolor>-</shadowcolor>
                                <label>$INFO[ListItem.Label]</label>
                            </control>
                        </itemlayout>
                        <focusedlayout height="72" width="12-col">
                            <control type="image">
                                <posx>0</posx>
                                <posy>0</posy>
                                <width>69</width>
                                <height>69</height>
                                <aspectratio scalediffuse="false">stretch</aspectratio>
                                <texture fallback="colors/white.png" border="0">$INFO[Listitem.icon]</texture>
                                <animation type="focus" loop="false" reversible="false">
                                    <effect type="fade" time="500"/>
                                    <effect type="rotatey" end="360" center="33" tween="back" easing="out" time="1000"/>
                                </animation>
                            </control>
                            <control type="image">
                                <posx>1-col</posx>
                                <posy>0</posy>
                                <width>11-col</width>
                                <height>69</height>
                                <aspectratio>stretch</aspectratio>
                                <texture>colors/white.png</texture>
                                <bordersize>0</bordersize>
                                <colordiffuse>ffffffff</colordiffuse>
                            </control>
                            <control type="label">
                                <visible>ListItem.IsSelected</visible>
                                <posx>0</posx>
                                <posy>3</posy>
                                <width>66</width>
                                <height>66</height>
                                <align>center</align>
                                <aligny>center</aligny>
                                <font>symbolLarge</font>
                                <textcolor>black</textcolor>
                                <selectedcolor>black</selectedcolor>
                                <shadowcolor>-</shadowcolor>
                                <label>✓</label>
                            </control>
                            <control type="label">
                                <posx>1-col-indent</posx>
                                <posy>0</posy>
                                <width>11-col-gutter</width>
                                <height>2-row</height>
                                <aligny>center</aligny>
                                <font>itemTitle</font>
                                <textcolor>black</textcolor>
                                <selectedcolor>black</selectedcolor>
                                <label>$INFO[ListItem.Label]</label>
                            </control>
                        </focusedlayout>
                    </control>

                    <!--skin selection etc-->
                    <control type="panel" id="6">
                        <posx>0</posx>
                        <posy>73</posy>
                        <width>12-col</width>
                        <height>18-row</height>
                        <onright>9999</onright>
                        <itemlayout height="72" width="12-col">
                            <control type="image">
                                <posx>0</posx>
                                <posy>0</posy>
                                <width>69</width>
                                <height>69</height>
                                <aspectratio scalediffuse="false">stretch</aspectratio>
                                <texture fallback="colors/offblack.png" border="0">$INFO[Listitem.icon]</texture>
                            </control>
                            <control type="label">
                                <posx>1-col-indent</posx>
                                <posy>0</posy>
                                <width>11-col-gutter</width>
                                <height>2-row</height>
                                <aligny>center</aligny>
                                <font>itemTitle</font>
                                <textcolor>textActive</textcolor>
                                <shadowcolor>-</shadowcolor>
                                <label>$INFO[ListItem.Label]</label>
                            </control>
                        </itemlayout>
                        <focusedlayout height="72" width="12-col">
                            <control type="image">
                                <posx>0</posx>
                                <posy>0</posy>
                                <width>69</width>
                                <height>69</height>
                                <aspectratio scalediffuse="false">stretch</aspectratio>
                                <texture fallback="colors/white.png" border="0">$INFO[Listitem.icon]</texture>
                                <animation type="focus" loop="false" reversible="false">
                                    <effect type="fade" time="500"/>
                                    <effect type="rotatey" end="360" center="33" tween="back" easing="out" time="1000"/>
                                </animation>
                            </control>
                            <control type="image">
                                <posx>1-col</posx>
                                <posy>0</posy>
                                <width>11-col</width>
                                <height>69</height>
                                <aspectratio>stretch</aspectratio>
                                <texture>colors/white.png</texture>
                                <bordersize>0</bordersize>
                                <colordiffuse>ffffffff</colordiffuse>
                            </control>
                            <control type="label">
                                <posx>1-col-indent</posx>
                                <posy>0</posy>
                                <width>11-col-gutter</width>
                                <height>2-row</height>
                                <aligny>center</aligny>
                                <font>itemTitle</font>
                                <textcolor>black</textcolor>
                                <selectedcolor>black</selectedcolor>
                                <label>$INFO[ListItem.Label]</label>
                            </control>
                        </focusedlayout>
                    </control>
                </control>
                <!--OK / Cancel-->
                <control type="panel" id="9999">
                    <posx>12-col</posx>
                    <posy>73</posy>
                    <width>4-col</width>
                    <height>6-row</height>
                    <orientation>vertical</orientation>
                    <onleft>9000</onleft>
                    <itemlayout width="4-col" height="2-row">
                        <control type="label">
                            <posx>0</posx>
                            <posy>0</posy>
                            <width>1-col</width>
                            <height>2-row</height>
                            <align>center</align>
                            <aligny>center</aligny>
                            <font>symbolLarge</font>
                            <textcolor>textActive</textcolor>
                            <label>$INFO[ListItem.label2]</label>
                            <shadowcolor>-</shadowcolor>
                        </control>
                        <control type="label">
                            <posx>1-col-indent</posx>
                            <posy>0</posy>
                            <width>5-col-gutter</width>
                            <height>2-row</height>
                            <aligny>center</aligny>
                            <font>buttonTitle</font>
                            <textcolor>textActive</textcolor>
                            <label>$INFO[ListItem.label]</label>
                            <shadowcolor>-</shadowcolor>
                        </control>
                    </itemlayout>
                    <focusedlayout width="4-col" height="2-row">
                        <control type="image">
                            <posx>0</posx>
                            <posy>0</posy>
                            <width>1-col</width>
                            <height>2-row</height>
                            <aspectratio>stretch</aspectratio>
                            <texture>colors/white.png</texture>
                            <colordiffuse>highlight</colordiffuse>
                            <include>spinFocusIcon</include>
                        </control>
                        <control type="image">
                            <posx>1-col</posx>
                            <posy>0</posy>
                            <width>5-col</width>
                            <height>2-row</height>
                            <aspectratio>stretch</aspectratio>
                            <texture>colors/white.png</texture>
                        </control>
                        <control type="label">
                            <posx>0</posx>
                            <posy>0</posy>
                            <width>1-col</width>
                            <height>2-row</height>
                            <align>center</align>
                            <aligny>center</aligny>
                            <font>symbolLarge</font>
                            <textcolor>textActive</textcolor>
                            <label>$INFO[ListItem.label2]</label>
                            <shadowcolor>-</shadowcolor>
                        </control>
                        <control type="label">
                            <posx>1-col-indent</posx>
                            <posy>0</posy>
                            <width>5-col-gutter</width>
                            <height>2-row</height>
                            <aligny>center</aligny>
                            <font>buttonTitle</font>
                            <textcolor>black</textcolor>
                            <label>$INFO[ListItem.label]</label>
                            <shadowcolor>-</shadowcolor>
                        </control>
                    </focusedlayout>
                    <content>
                        <item id="1">
                            <description>Ok / manual / get more Button</description>
                            <label fallback="186">$INFO[control.getlabel(5)]</label>
                            <label2></label2>
                            <thumb>-</thumb>
                            <onclick>SendClick(2000,5)</onclick>
                        </item>
                        <item id="2">
                            <description>Cancel Button</description>
                            <label>222</label>
                            <label2></label2>
                            <thumb>-</thumb>
                            <onclick>PreviousMenu</onclick>
                        </item>
                    </content>
                </control>
                <control type="group">
                    <visible>false</visible>
                    <control type="button" id="5">
                        <description>OK / Manual button</description>
                        <label>186</label>
                    </control>
                </control>

            </control>
        </control>
        <!--debugging-->
        <include>DebugGrid</include>
        <control type="label">
            <include>DialogID</include>
            <label>DialogSelect.xml</label>
        </control>
    </controls>
</window>