<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<window>
    <onload></onload>
    <defaultcontrol>200</defaultcontrol>
    <coordinates>
        <system>1</system>
        <posx>0</posx>
        <posy>0</posy>
    </coordinates>
    <controls>
        <control type="image">
            <posx>0</posx>
            <posy>0</posy>
            <width>1280</width>
            <height>720</height>
            <texture>script-smoothstreams-background_full.jpg</texture>
        </control>
        <control type="label">
            <posx>30</posx>
            <posy>10</posy>
            <width>1220</width>
            <height>50</height>
            <font>font13</font>
            <align>center</align>
            <aligny>center</aligny>
            <textcolor>FFFFFFFF</textcolor>
            <label>[B]$INFO[Window.Property(category)][/B]</label>
        </control>

        <control type="label">
            <posx>30</posx>
            <posy>680</posy>
            <width>300</width>
            <height>50</height>
            <font>font12</font>
            <align>left</align>
            <aligny>center</aligny>
            <textcolor>40FFFFFF</textcolor>
            <info>Window.Property(version)</info>
        </control>
        <control type="label">
            <posx>40</posx>
            <posy>10</posy>
            <width>300</width>
            <height>50</height>
            <font>font12</font>
            <align>left</align>
            <aligny>center</aligny>
            <textcolor>FFFFFFFF</textcolor>
            <label>MM-DD : HH:MM</label>
        </control>
        <control type="label">
            <posx>1250</posx>
            <posy>10</posy>
            <width>300</width>
            <height>50</height>
            <font>font12</font>
            <align>right</align>
            <aligny>center</aligny>
            <textcolor>FFFFFFFF</textcolor>
            <label>Current time:   [B]$INFO[System.Time][/B]</label>
        </control>

        <control type="image">
            <posx>20</posx>
            <posy>50</posy>
            <width>1240</width>
            <height>650</height>
            <texture border="10">script-smoothstreams-etched_outline.png</texture>
        </control>
        <control type="image">
            <posx>30</posx>
            <posy>60</posy>
            <width>1220</width>
            <height>630</height>
            <texture>script-smoothstreams-white_square.png</texture>
            <colordiffuse>80000000</colordiffuse>
        </control>

        <control type="group" id="200">
            <defaultcontrol>201</defaultcontrol>
            <control type="list" id="201">
                <posx>30</posx>
                <posy>60</posy>
                <width>1220</width>
                <height>630</height>
                <onleft>101</onleft>
                <onright>101</onright>
                <scrolltime>100</scrolltime>
                <orientation>vertical</orientation>
<!-- ITEM LAYOUT ########################################################## -->
                <itemlayout height="52">
                    <control type="image">
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>1220</width>
                        <height>52</height>
                        <texture>script-smoothstreams-white_square.png</texture>
                        <colordiffuse>FF000000</colordiffuse>
                        <aspectratio>stretch</aspectratio>
                    </control>
                    <control type="image">
                        <posx>184</posx>
                        <posy>2</posy>
                        <width>852</width>
                        <height>50</height>
                        <texture>$INFO[ListItem.Property(color)]</texture>
                        <colordiffuse>FF606060</colordiffuse>
                        <aspectratio>stretch</aspectratio>
                    </control>

                    <control type="group">
                        <description>Channel Title/Logo</description>
                        <posx>2</posx>
                        <posy>2</posy>
                        <control type="image">
                            <posx>0</posx>
                            <posy>0</posy>
                            <width>180</width>
                            <height>50</height>
                            <texture>script-smoothstreams-channel_back.png</texture>
                        </control>
                        <control type="image">
                            <visible>!IsEmpty(ListItem.Property(playing))</visible>
                            <posx>2</posx>
                            <posy>44</posy>
                            <width>176</width>
                            <height>4</height>
                            <texture border="1">$INFO[ListItem.Property(playing)]</texture>
                            <colordiffuse>A0FF0000</colordiffuse>
                        </control>

                        <control type="image">
                            <posx>1036</posx>
                            <posy>0</posy>
                            <width>180</width>
                            <height>50</height>
                            <texture>script-smoothstreams-channel_back.png</texture>
                        </control>
                        <control type="image">
                            <posx>1068</posx>
                            <posy>2</posy>
                            <width>146</width>
                            <height>46</height>
                            <texture>$INFO[ListItem.Icon]</texture>
                            <aspectratio>keep</aspectratio>
                        </control>
                        <control type="label">
                            <posx>1043</posx>
                            <posy>5</posy>
                            <width>35</width>
                            <height>50</height>
                            <font>font13</font>
                            <align>left</align>
                            <textcolor>FF000000</textcolor>
                            <label>[B]$INFO[ListItem.Property(channel)][/B]</label>
                        </control>
                        <!--<control type="image">
                            <posx>1043</posx>
                            <posy>30</posy>
                            <width>21</width>
                            <height>14</height>
                            <texture>$INFO[ListItem.Property(flag)]</texture>
                        </control>-->
                        <control type="label">
                            <posx>10</posx>
                            <posy>0</posy>
                            <width>165</width>
                            <height>50</height>
                            <font>font13</font>
                            <align>left</align>
                            <aligny>center</aligny>
                            <textcolor>FF000000</textcolor>
                            <label>[B]$INFO[ListItem.Label2][/B]</label>
                        </control>
                    </control>

                    <control type="label">
                        <posx>300</posx>
                        <posy>0</posy>
                        <width>682</width>
                        <height>50</height>
                        <font>font13</font>
                        <align>left</align>
                        <aligny>center</aligny>
                        <textcolor>FFFFFFFF</textcolor>
                        <label>[B]$INFO[ListItem.Label][/B]</label>
                    </control>
                    <control type="label">
                        <posx>200</posx>
                        <posy>0</posy>
                        <width>100</width>
                        <height>50</height>
                        <font>font13</font>
                        <align>left</align>
                        <aligny>center</aligny>
                        <textcolor>FFFFFFFF</textcolor>
                        <label>[B]$INFO[ListItem.Property(duration)][/B]</label>
                    </control>
                    <control type="image">
                        <posx>939</posx>
                        <posy>12</posy>
                        <width>42</width>
                        <height>25</height>
                        <texture>$INFO[ListItem.Property(flag)]</texture>
                    </control>
                    <control type="image">
                        <posx>984</posx>
                        <posy>12</posy>
                        <width>42</width>
                        <height>25</height>
                        <texture>$INFO[ListItem.Property(quality)]</texture>
                    </control>
                    <control type="image">
                        <visible>!IsEmpty(ListItem.Property(old))</visible>
                        <posx>0</posx>
                        <posy>1</posy>
                        <width>1218</width>
                        <height>52</height>
                        <texture>script-smoothstreams-white_square.png</texture>
                        <colordiffuse>A0000000</colordiffuse>
                        <aspectratio>stretch</aspectratio>
                    </control>
                </itemlayout>

<!-- FOCUSED LAYOUT ####################################################### -->
                <focusedlayout height="52">
                    <control type="image">
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>1220</width>
                        <height>52</height>
                        <texture>script-smoothstreams-white_square.png</texture>
                        <colordiffuse>FF000000</colordiffuse>
                        <aspectratio>stretch</aspectratio>
                    </control>
                    <control type="image">
                        <posx>184</posx>
                        <posy>2</posy>
                        <width>852</width>
                        <height>50</height>
                        <texture>$INFO[ListItem.Property(color)]</texture>
                        <colordiffuse>FF909090</colordiffuse>
                        <aspectratio>stretch</aspectratio>
                    </control>

                    <control type="group">
                        <description>Channel Title/Logo</description>
                        <posx>2</posx>
                        <posy>2</posy>
                        <control type="image">
                            <posx>0</posx>
                            <posy>0</posy>
                            <width>180</width>
                            <height>50</height>
                            <texture>script-smoothstreams-white_square.png</texture>
                        </control>
                        <control type="image">
                            <visible>!IsEmpty(ListItem.Property(playing))</visible>
                            <posx>2</posx>
                            <posy>44</posy>
                            <width>176</width>
                            <height>4</height>
                            <texture border="1">$INFO[ListItem.Property(playing)]</texture>
                            <colordiffuse>A0FF0000</colordiffuse>
                        </control>

                        <control type="image">
                            <posx>1036</posx>
                            <posy>0</posy>
                            <width>180</width>
                            <height>50</height>
                            <texture>script-smoothstreams-white_square.png</texture>
                        </control>
                        <control type="image">
                            <posx>1068</posx>
                            <posy>2</posy>
                            <width>146</width>
                            <height>46</height>
                            <texture>$INFO[ListItem.Icon]</texture>
                            <aspectratio>keep</aspectratio>
                        </control>
                        <control type="label">
                            <posx>1043</posx>
                            <posy>5</posy>
                            <width>35</width>
                            <height>50</height>
                            <font>font13</font>
                            <align>left</align>
                            <textcolor>FF000000</textcolor>
                            <label>[B]$INFO[ListItem.Property(channel)][/B]</label>
                        </control>
                        <!--<control type="image">
                            <posx>1043</posx>
                            <posy>30</posy>
                            <width>21</width>
                            <height>14</height>
                            <texture>$INFO[ListItem.Property(flag)]</texture>
                        </control>-->
                        <control type="label">
                            <posx>10</posx>
                            <posy>0</posy>
                            <width>165</width>
                            <height>50</height>
                            <font>font13</font>
                            <align>left</align>
                            <aligny>center</aligny>
                            <textcolor>FF000000</textcolor>
                            <label>[B]$INFO[ListItem.Label2][/B]</label>
                        </control>
                    </control>

                    <control type="label">
                        <posx>300</posx>
                        <posy>0</posy>
                        <width>682</width>
                        <height>50</height>
                        <font>font13</font>
                        <align>left</align>
                        <aligny>center</aligny>
                        <textcolor>FFFFFFFF</textcolor>
                        <label>[B]$INFO[ListItem.Label][/B]</label>
                    </control>
                    <control type="label">
                        <posx>200</posx>
                        <posy>0</posy>
                        <width>100</width>
                        <height>50</height>
                        <font>font13</font>
                        <align>left</align>
                        <aligny>center</aligny>
                        <textcolor>FFFFFFFF</textcolor>
                        <label>[B]$INFO[ListItem.Property(duration)][/B]</label>
                    </control>
                    <control type="image">
                        <posx>939</posx>
                        <posy>12</posy>
                        <width>42</width>
                        <height>25</height>
                        <texture>$INFO[ListItem.Property(flag)]</texture>
                    </control>
                    <control type="image">
                        <posx>984</posx>
                        <posy>12</posy>
                        <width>42</width>
                        <height>25</height>
                        <texture>$INFO[ListItem.Property(quality)]</texture>
                    </control>

                    <control type="image">
                        <visible>!IsEmpty(ListItem.Property(old))</visible>
                        <posx>0</posx>
                        <posy>1</posy>
                        <width>1218</width>
                        <height>52</height>
                        <texture>script-smoothstreams-white_square.png</texture>
                        <colordiffuse>80000000</colordiffuse>
                        <aspectratio>stretch</aspectratio>
                    </control>

                    <control type="image">
                        <posx>2</posx>
                        <posy>2</posy>
                        <width>1216</width>
                        <height>50</height>
                        <texture border="2">script-smoothstreams-white_outline.png</texture>
                        <colordiffuse>FF1B6DB9</colordiffuse>
                        <aspectratio>stretch</aspectratio>
                    </control>
                </focusedlayout>
            </control>
        </control>
        <control type="image">
            <posx>30</posx>
            <posy>60</posy>
            <width>1220</width>
            <height>630</height>
            <texture border="11">script-smoothstreams-inner_edge_shadow.png</texture>
        </control>
        <control type="image">
            <visible>ControlGroup(100).HasFocus(0)</visible>
            <animation effect="fade" start="0" end="100" time="200" reversible="true">VisibleChange</animation>
            <posx>0</posx>
            <posy>0</posy>
            <width>1280</width>
            <height>720</height>
            <texture>script-smoothstreams-white_square.png</texture>
            <colordiffuse>A0000000</colordiffuse>
        </control>
        <control type="group" id="100">
            <defaultcontrol>101</defaultcontrol>
            <animation effect="slide" start="0,0" end="400,0" time="200" reversible="true" condition="ControlGroup(100).HasFocus(0)">Conditional</animation>
            <animation effect="slide" end="0,0" time="200" reversible="true" condition="!ControlGroup(100).HasFocus(0)">Conditional</animation>
            <posx>-400</posx>
            <posy>0</posy>
            <control type="image">
                <posx>370</posx>
                <posy>330</posy>
                <width>60</width>
                <height>60</height>
                <texture>script-smoothstreams-nib_circle.png</texture>
                <colordiffuse>FF1B6DB9</colordiffuse>
            </control>
            <control type="image">
                <visible>!ControlGroup(100).HasFocus(0)</visible>
                <posx>406</posx>
                <posy>352</posy>
                <width>10</width>
                <height>16</height>
                <texture>script-smoothstreams-nib_arrow.png</texture>
                <colordiffuse>FF1B6DB9</colordiffuse>
            </control>
            <control type="image">
                <visible>ControlGroup(100).HasFocus(0)</visible>
                <posx>406</posx>
                <posy>352</posy>
                <width>10</width>
                <height>16</height>
                <texture flipx="true">script-smoothstreams-nib_arrow.png</texture>
                <colordiffuse>FF1B6DB9</colordiffuse>
            </control>
            <control type="image">
                <posx>-50</posx>
                <posy>0</posy>
                <width>450</width>
                <height>720</height>
                <texture>script-smoothstreams-category_back.jpg</texture>
            </control>
            <control type="image">
                <posx>-20</posx>
                <posy>20</posy>
                <width>400</width>
                <height>680</height>
                <texture border="10">script-smoothstreams-etched_outline.png</texture>
            </control>
            <control type="image">
                <posx>0</posx>
                <posy>30</posy>
                <width>370</width>
                <height>660</height>
                <texture>script-smoothstreams-white_square.png</texture>
                <colordiffuse>88000000</colordiffuse>
            </control>
            <control type="list" id="101">
                <hitrect x="0" y="30" w="430" h="660" />
                <posx>0</posx>
                <posy>30</posy>
                <width>370</width>
                <height>660</height>
                <onleft>201</onleft>
                <onright>201</onright>
                <scrolltime>100</scrolltime>
                <orientation>vertical</orientation>
<!-- ITEM LAYOUT ########################################################## -->
                <itemlayout height="52">
                    <control type="image">
                        <posx>0</posx>
                        <posy>2</posy>
                        <width>102</width>
                        <height>50</height>
                        <texture>$INFO[ListItem.Property(color)]</texture>
                        <colordiffuse>FF606060</colordiffuse>
                        <aspectratio>stretch</aspectratio>
                    </control>
                    
                    <control type="image">
                        <posx>330</posx>
                        <posy>15</posy>
                        <width>20</width>
                        <height>20</height>
                        <visible>true</visible>
                        <texture>colors/FFFFFFFF.png</texture>
                        <aspectratio>stretch</aspectratio>
                    </control>
                    <control type="image">
                        <posx>326</posx>
                        <posy>10</posy>
                        <width>30</width>
                        <height>30</height>
                        <visible>StringCompare(ListItem.Property(selected),true)</visible>
                        <texture>colors/tick.png</texture>
                        <aspectratio>stretch</aspectratio>
                    </control>
                    
                    <control type="label">
                        <posx>115</posx>
                        <posy>0</posy>
                        <width>245</width>
                        <height>50</height>
                        <font>font13</font>
                        <align>left</align>
                        <aligny>center</aligny>
                        <textcolor>FFBBBBBB</textcolor>
                        <label>[B]$INFO[ListItem.Label][/B]</label>
                    </control>
                    <control type="image">
                        <posx>-1</posx>
                        <posy>1</posy>
                        <width>369</width>
                        <height>52</height>
                        <texture border="2">script-smoothstreams-white_outline.png</texture>
                        <colordiffuse>FF000000</colordiffuse>
                        <aspectratio>stretch</aspectratio>
                    </control>
                </itemlayout>

<!-- FOCUSED LAYOUT ####################################################### -->
                <focusedlayout height="52">
                    <control type="image">
                        <posx>0</posx>
                        <posy>2</posy>
                        <width>102</width>
                        <height>50</height>
                        <texture>$INFO[ListItem.Property(color)]</texture>
                        <colordiffuse>FF909090</colordiffuse>
                        <aspectratio>stretch</aspectratio>
                    </control>
                    
                    <control type="image">
                        <posx>330</posx>
                        <posy>15</posy>
                        <width>20</width>
                        <height>20</height>
                        <visible>true</visible>
                        <texture>colors/FFFFFFFF.png</texture>
                        <aspectratio>stretch</aspectratio>
                    </control>
                    <control type="image">
                        <posx>326</posx>
                        <posy>10</posy>
                        <width>30</width>
                        <height>30</height>
                        <visible>StringCompare(ListItem.Property(selected),true)</visible>
                        <texture>colors/tick.png</texture>
                        <aspectratio>stretch</aspectratio>
                    </control>
                    
                    <control type="label">
                        <posx>114</posx>
                        <posy>0</posy>
                        <width>245</width>
                        <height>50</height>
                        <font>font13</font>
                        <align>left</align>
                        <aligny>center</aligny>
                        <textcolor>FF1B6DB9</textcolor>
                        <label>[B]$INFO[ListItem.Label][/B]</label>
                    </control>
                    <control type="label">
                        <posx>115</posx>
                        <posy>-1</posy>
                        <width>245</width>
                        <height>50</height>
                        <font>font13</font>
                        <align>left</align>
                        <aligny>center</aligny>
                        <textcolor>FF1B6DB9</textcolor>
                        <label>[B]$INFO[ListItem.Label][/B]</label>
                    </control>
                    <control type="label">
                        <posx>116</posx>
                        <posy>0</posy>
                        <width>245</width>
                        <height>50</height>
                        <font>font13</font>
                        <align>left</align>
                        <aligny>center</aligny>
                        <textcolor>FF1B6DB9</textcolor>
                        <label>[B]$INFO[ListItem.Label][/B]</label>
                    </control>
                    <control type="label">
                        <posx>115</posx>
                        <posy>1</posy>
                        <width>245</width>
                        <height>50</height>
                        <font>font13</font>
                        <align>left</align>
                        <aligny>center</aligny>
                        <textcolor>FF1B6DB9</textcolor>
                        <label>[B]$INFO[ListItem.Label][/B]</label>
                    </control>

                    <control type="label">
                        <posx>115</posx>
                        <posy>0</posy>
                        <width>245</width>
                        <height>50</height>
                        <font>font13</font>
                        <align>left</align>
                        <aligny>center</aligny>
                        <textcolor>FFFFFFFF</textcolor>
                        <label>[B]$INFO[ListItem.Label][/B]</label>
                    </control>

                    <control type="image">
                        <posx>-1</posx>
                        <posy>1</posy>
                        <width>369</width>
                        <height>52</height>
                        <texture border="2">script-smoothstreams-white_outline.png</texture>
                        <colordiffuse>FF000000</colordiffuse>
                        <aspectratio>stretch</aspectratio>
                    </control>
                    <control type="image">
                        <posx>-1</posx>
                        <posy>2</posy>
                        <width>367</width>
                        <height>50</height>
                        <texture border="2">script-smoothstreams-white_outline.png</texture>
                        <colordiffuse>FF1B6DB9</colordiffuse>
                        <aspectratio>stretch</aspectratio>
                    </control>
                </focusedlayout>
            </control>
            <control type="image">
                <posx>-20</posx>
                <posy>30</posy>
                <width>390</width>
                <height>660</height>
                <texture border="11">script-smoothstreams-inner_edge_shadow.png</texture>
            </control>
        </control>

        <control type="group">
            <visible>Player.HasVideo + IsEmpty(Window.Property(hide_video_preview))</visible>
            <posx>720</posx>
            <posy>486</posy>
            <control type="image">
                <posx>0</posx>
                <posy>0</posy>
                <width>324</width>
                <height>184</height>
                <texture>script-smoothstreams-white_square.png</texture>
                <colordiffuse>FF000000</colordiffuse>
            </control>
            <control type="videowindow">
              <description>Video</description>
              <posx>2</posx>
              <posy>2</posy>
              <width>320</width>
              <height>180</height>
              <visible>true</visible>
            </control>
        </control>
    </controls>
</window>
