<?xml version="1.0" encoding="UTF-8"?>
<window>
    <defaultcontrol>10</defaultcontrol>
    <allowoverlay>no</allowoverlay>
    <controls>
        <control type="image">
            <left>0</left>
            <top>0</top>
            <width>1280</width>
            <height>720</height>
            <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/Background.png</texture>
        </control>
        <control type="image">
            <left>0</left>
            <top>0</top>
            <width>1280</width>
            <height>720</height>
            <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/white.png</texture>
            <colordiffuse>40000000</colordiffuse>
        </control>
        
        <!-- Team Color Accent Bar (top) -->
        <control type="image">
            <left>0</left>
            <top>0</top>
            <width>1280</width>
            <height>8</height>
            <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/white.png</texture>
            <colordiffuse>$INFO[Window.Property(TeamColor)]</colordiffuse>
        </control>
        
        <!-- Close button -->
        <control type="button" id="11">
            <left>1140</left>
            <top>20</top>
            <width>80</width>
            <height>40</height>
            <label>CLOSE</label>
            <font>font13</font>
            <onclick>Dialog.Close(all,true)</onclick>
            <texturefocus>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/ButtonFocus.png</texturefocus>
            <texturenofocus>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/ButtonSelect.png</texturenofocus>
        </control>
        
        <!-- Team Name Header (clickable) -->
        <control type="button" id="10">
            <left>80</left>
            <top>40</top>
            <width>200</width>
            <height>40</height>
            <!-- <align>left</align> -->
            <font>font36</font>
            <label>$INFO[Window.Property(TeamName)]</label>
            <onclick>Dialog.Close(all,true)</onclick>
            <texturefocus>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/ButtonFocus.png</texturefocus>
            <texturenofocus>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/ButtonSelect.png</texturenofocus>
            <colordiffuse>$INFO[Window.Property(TeamColor)]</colordiffuse>
            <onleft>10</onleft>
            <onright>11</onright>
            <onup>10</onup>
            <ondown>20</ondown>
        </control>
        
        <!-- Next Game Info -->


        <control type="image">
            <left>740</left>
            <top>90</top>
            <width>480</width>
            <height>150</height>
            <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/white.png</texture>
            <colordiffuse>60FFFFFF</colordiffuse>
        </control>
        <control type="label">
            <left>760</left>
            <top>100</top>
            <width>800</width>
            <height>30</height>
            <align>left</align>
            <font>font20</font>
            <textcolor>FFFFD700</textcolor>
            <label>[B]NEXT GAME:[/B]</label>
            <visible>!String.IsEmpty(Window.Property(NextGame))</visible>
        </control>
        <control type="label">
            <left>760</left>
            <top>130</top>
            <width>800</width>
            <height>30</height>
            <align>left</align>
            <font>font20</font>
            <textcolor>FFFFD700</textcolor>
            <label>$INFO[Window.Property(NextGame)]</label>
            <visible>!String.IsEmpty(Window.Property(NextGame))</visible>
        </control>
        
        <!-- Team Logo -->
        <control type="image" id="20">
            <left>60</left>
            <top>110</top>
            <width>150</width>
            <height>150</height>
            <texture>$INFO[Window.Property(TeamLogo)]</texture>
        </control>
        
        <!-- Season Stats Column 1 -->
        <control type="label">
            <left>250</left>
            <top>110</top>
            <width>400</width>
            <height>35</height>
            <align>left</align>
            <font>font24</font>
            <textcolor>FF00FF00</textcolor>
            <label>Wins: $INFO[Window.Property(Wins)]</label>
        </control>
        <control type="label">
            <left>250</left>
            <top>145</top>
            <width>400</width>
            <height>35</height>
            <align>left</align>
            <font>font24</font>
            <textcolor>FFFF0000</textcolor>
            <label>Losses: $INFO[Window.Property(Losses)]</label>
        </control>
        <control type="label">
            <left>250</left>
            <top>180</top>
            <width>400</width>
            <height>35</height>
            <align>left</align>
            <font>font24</font>
            <textcolor>FFFFFF00</textcolor>
            <label>Win %: $INFO[Window.Property(Pct)]</label>
        </control>
        <control type="label">
            <left>250</left>
            <top>215</top>
            <width>400</width>
            <height>35</height>
            <align>left</align>
            <font>font24</font>
            <textcolor>FFFFFFFF</textcolor>
            <label>Games Behind: $INFO[Window.Property(GB)]</label>
        </control>
        
        <!-- Season Stats Column 2 -->
        <control type="label">
            <left>550</left>
            <top>110</top>
            <width>300</width>
            <height>35</height>
            <align>left</align>
            <font>font24</font>
            <textcolor>FFFFFFFF</textcolor>
            <label>Home: $INFO[Window.Property(Home)]</label>
        </control>
        <control type="label">
            <left>550</left>
            <top>145</top>
            <width>300</width>
            <height>35</height>
            <align>left</align>
            <font>font24</font>
            <textcolor>FFFFFFFF</textcolor>
            <label>Away: $INFO[Window.Property(Away)]</label>
        </control>
        <control type="label">
            <left>550</left>
            <top>180</top>
            <width>300</width>
            <height>35</height>
            <align>left</align>
            <font>font24</font>
            <textcolor>FFFFFFFF</textcolor>
            <label>Last 10: $INFO[Window.Property(Last10)]</label>
        </control>
        <control type="label">
            <left>550</left>
            <top>215</top>
            <width>300</width>
            <height>35</height>
            <align>left</align>
            <font>font24</font>
            <textcolor>FF00FFFF</textcolor>
            <label>Streak: $INFO[Window.Property(Streak)]</label>
        </control>
        <control type="label">
            <left>250</left>
            <top>215</top>
            <width>300</width>
            <height>35</height>
            <align>left</align>
            <font>font24</font>
            <textcolor>FFFF00FF</textcolor>
            <label>Diff: $INFO[Window.Property(Differential)]</label>
            <visible>!String.IsEmpty(Window.Property(Differential))</visible>
        </control>
        <control type="label">
            <left>250</left>
            <top>250</top>
            <width>400</width>
            <height>30</height>
            <align>left</align>
            <font>font18</font>
            <textcolor>FFAAAAAA</textcolor>
            <label>Vs Division: $INFO[Window.Property(DivisionRecord)]</label>
            <visible>!String.IsEmpty(Window.Property(DivisionRecord))</visible>
        </control>
        <control type="label">
            <left>550</left>
            <top>250</top>
            <width>300</width>
            <height>30</height>
            <align>left</align>
            <font>font18</font>
            <textcolor>FFAAAAAA</textcolor>
            <label>Vs Conference: $INFO[Window.Property(ConferenceRecord)]</label>
            <visible>!String.IsEmpty(Window.Property(ConferenceRecord))</visible>
        </control>
        
        <!-- Combined Box: Top Players + Season Rankings -->
        <control type="image">
            <left>60</left>
            <top>250</top>
            <width>1160</width>
            <height>180</height>
            <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/white.png</texture>
            <colordiffuse>60FFFFFF</colordiffuse>
        </control>
        <control type="image">
            <left>60</left>
            <top>250</top>
            <width>1160</width>
            <height>180</height>
            <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/white.png</texture>
            <colordiffuse>$INFO[Window.Property(TeamColor)]</colordiffuse>
            <visible>!String.IsEmpty(Window.Property(TeamColor))</visible>
        </control>
        
        <!-- Left side: Top Players -->
        <control type="label">
            <left>80</left>
            <top>260</top>
            <width>550</width>
            <height>40</height>
            <align>left</align>
            <font>font30</font>
            <textcolor>$INFO[Window.Property(TeamColor)]</textcolor>
            <label>[B]Top Players[/B]</label>
            <visible>!String.IsEmpty(Window.Property(TeamColor))</visible>
        </control>
        <control type="label">
            <left>80</left>
            <top>260</top>
            <width>200</width>
            <height>40</height>
            <align>left</align>
            <font>font30</font>
            <!-- <textcolor>FF00FFFF</textcolor> -->
            <label>[B]Top Players[/B]</label>
            <!-- <visible>String.IsEmpty(Window.Property(TeamColor))</visible> -->
        </control>
        
        <control type="textbox" id="501">
            <left>80</left>
            <top>300</top>
            <width>550</width>
            <height>120</height>
            <font>font20</font>
            <align>left</align>
            <textcolor>FFFFFFFF</textcolor>
            <label>$INFO[Window.Property(PlayerLeaders)]</label>
        </control>
        
        <!-- Right side: Season Rankings -->
        <control type="label">
            <left>660</left>
            <top>260</top>
            <width>540</width>
            <height>40</height>
            <align>left</align>
            <font>font30</font>
            <!-- <textcolor>$INFO[Window.Property(TeamColor)]</textcolor> -->
            <label>[B]Season Rankings[/B]</label>
            <visible>!String.IsEmpty(Window.Property(TeamColor))</visible>
        </control>
        <control type="label">
            <left>660</left>
            <top>260</top>
            <width>540</width>
            <height>40</height>
            <align>left</align>
            <font>font30</font>
            <textcolor>FFFF00FF</textcolor>
            <label>[B]Season Rankings[/B]</label>
            <visible>String.IsEmpty(Window.Property(TeamColor))</visible>
        </control>
        
        <control type="textbox" id="502">
            <left>660</left>
            <top>300</top>
            <width>540</width>
            <height>140</height>
            <font>font20</font>
            <align>left</align>
            <textcolor>FFFFFFFF</textcolor>
            <label>$INFO[Window.Property(SeasonLeaders)]</label>
            <scrollbar>auto</scrollbar>
        </control>
        
        <!-- LEFT BOX: Recent Games (Last 5) -->
        <control type="image">
            <left>60</left>
            <top>445</top>
            <width>560</width>
            <height>245</height>
            <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/white.png</texture>
            <colordiffuse>$INFO[Window.Property(TeamColor)]</colordiffuse>
            <visible>!String.IsEmpty(Window.Property(TeamColor)) + !Control.HasFocus(901)</visible>
        </control>
        <control type="image">
            <left>60</left>
            <top>445</top>
            <width>560</width>
            <height>245</height>
            <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/white.png</texture>
            <!-- <colordiffuse>FF000000</colordiffuse> -->
            <colordiffuse>$INFO[Window.Property(TeamColor)]</colordiffuse>
            <visible>Control.HasFocus(901)</visible>
        </control>
        <control type="button" id="901">
            <left>60</left>
            <top>445</top>
            <width>560</width>
            <height>245</height>
            <texturenofocus></texturenofocus>
            <texturefocus></texturefocus>
            <onclick>SetProperty(TestProperty,clicked)</onclick>
        </control>
        
        
        <control type="label">
            <left>80</left>
            <top>455</top>
            <width>520</width>
            <height>40</height>
            <align>left</align>
            <font>font30</font>
            <textcolor>FFFFD700</textcolor>
            <label>[B]Last 5 Games[/B]</label>
            <!-- <visible>!Control.HasFocus(901)</visible> -->
        </control>
        <!-- <control type="label">
            <left>80</left>
            <top>455</top>
            <width>520</width>
            <height>40</height>
            <align>left</align>
            <font>font30</font>
            <textcolor>FFFFD700</textcolor>
            <label>[B]TEST[/B]</label>
            <visible>Control.HasFocus(901)</visible>
        </control> -->
        
        <control type="textbox">
            <left>80</left>
            <top>500</top>
            <width>520</width>
            <height>180</height>
            <font>font20</font>
            <align>left</align>
            <textcolor>FFFFFFFF</textcolor>
            <label>$INFO[Window.Property(RecentGames)]</label>
        </control>
        
        <!-- RIGHT BOX: Latest Game Stats -->
        <control type="image">
            <left>660</left>
            <top>445</top>
            <width>560</width>
            <height>245</height>
            <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/white.png</texture>
            <colordiffuse>60FFFFFF</colordiffuse>
        </control>
        <control type="image">
            <left>660</left>
            <top>445</top>
            <width>560</width>
            <height>245</height>
            <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/white.png</texture>
            <colordiffuse>$INFO[Window.Property(TeamColor)]</colordiffuse>
            <visible>!String.IsEmpty(Window.Property(TeamColor))</visible>
        </control>
        
        <control type="label">
            <left>660</left>
            <top>445</top>
            <width>560</width>
            <height>245</height>
            <align>left</align>
            <font>font30</font>
            <textcolor>FFFFD700</textcolor>
            <label>[B]Latest Game Stats[/B]</label>
            <visible>!String.IsEmpty(Window.Property(TeamColor))</visible>
            
        </control>
        
        <control type="button" id="902">
            <left>660</left>
            <top>445</top>
            <width>560</width>
            <height>245</height>
            <texturenofocus></texturenofocus>
            <texturefocus></texturefocus>
            <onclick>SetProperty(TestProperty,clicked)</onclick>
        </control>
        
        <!-- Game Result -->
        <control type="label">
            <left>900</left>
            <top>455</top>
            <width>520</width>
            <height>30</height>
            <align>left</align>
            <font>font24</font>
            <textcolor>FFFFFFFF</textcolor>
            <label>$INFO[Window.Property(GameResult)]</label>
            <!-- <visible>Control.HasFocus(902)</visible> -->
        </control>
        
        <!-- Game Stats - Dynamic Labels -->
        <control type="label">
            <left>700</left>
            <top>475</top>
            <width>240</width>
            <height>25</height>
            <align>left</align>
            <font>font18</font>
            <textcolor>FF00FF00</textcolor>
            <label>$INFO[Window.Property(Stat1Label)]: $INFO[Window.Property(Stat1Value)]</label>
        </control>
        <control type="label">
            <left>700</left>
            <top>495</top>
            <width>240</width>
            <height>25</height>
            <align>left</align>
            <font>font18</font>
            <textcolor>FFFFFF00</textcolor>
            <label>$INFO[Window.Property(Stat2Label)]: $INFO[Window.Property(Stat2Value)]</label>
        </control>
        <control type="label">
            <left>700</left>
            <top>515</top>
            <width>240</width>
            <height>25</height>
            <align>left</align>
            <font>font18</font>
            <textcolor>FF00FFFF</textcolor>
            <label>$INFO[Window.Property(Stat3Label)]: $INFO[Window.Property(Stat3Value)]</label>
        </control>
        <control type="label">
            <left>950</left>
            <top>475</top>
            <width>240</width>
            <height>25</height>
            <align>left</align>
            <font>font18</font>
            <textcolor>FFFFFFFF</textcolor>
            <label>$INFO[Window.Property(Stat4Label)]: $INFO[Window.Property(Stat4Value)]</label>
        </control>
        <control type="label">
            <left>950</left>
            <top>495</top>
            <width>240</width>
            <height>25</height>
            <align>left</align>
            <font>font18</font>
            <textcolor>FFFFFFFF</textcolor>
            <label>$INFO[Window.Property(Stat5Label)]: $INFO[Window.Property(Stat5Value)]</label>
        </control>
        
        <!-- Game Leaders - Dynamic Labels with Headshots -->
        <!-- Leader 1 -->
        <control type="image">
            <left>658</left>
            <top>525</top>
            <width>80</width>
            <height>80</height>
            <texture>$INFO[Window.Property(Leader1Headshot)]</texture>
            <aspectratio>keep</aspectratio>
            <visible>!Control.HasFocus(902)</visible>
        </control>
        <control type="label">
            <left>720</left>
            <top>550</top>
            <width>470</width>
            <height>25</height>
            <align>left</align>
            <font>font16</font>
            <textcolor>white</textcolor>
            <label>$INFO[Window.Property(Leader1Label)]: $INFO[Window.Property(Leader1Value)]</label>
            <visible>!Control.HasFocus(902)</visible>
        </control>
        <!-- Leader 2 -->
        <control type="image">
            <left>658</left>
            <top>570</top>
            <width>80</width>
            <height>80</height>
            <texture>$INFO[Window.Property(Leader2Headshot)]</texture>
            <aspectratio>keep</aspectratio>
            <visible>!Control.HasFocus(902)</visible>
        </control>
        <control type="label">
            <left>720</left>
            <top>600</top>
            <width>470</width>
            <height>25</height>
            <align>left</align>
            <font>font16</font>
            <textcolor>white</textcolor>
            <label>$INFO[Window.Property(Leader2Label)]: $INFO[Window.Property(Leader2Value)]</label>
            <visible>!Control.HasFocus(902)</visible>
        </control>
        <!-- Leader 3 -->
        <control type="image">
            <left>658</left>
            <top>615</top>
            <width>80</width>
            <height>80</height>
            <texture>$INFO[Window.Property(Leader3Headshot)]</texture>
            <aspectratio>keep</aspectratio>
            <visible>!Control.HasFocus(902)</visible>
        </control>
        <control type="label">
            <left>720</left>
            <top>650</top>
            <width>470</width>
            <height>25</height>
            <align>left</align>
            <font>font16</font>
            <textcolor>white</textcolor>
            <label>$INFO[Window.Property(Leader3Label)]: $INFO[Window.Property(Leader3Value)]</label>
            <visible>!Control.HasFocus(902)</visible>
        </control>
        
        <!-- Leader 4 Image - Pitching (shows on focus) -->
        <control type="image">
            <left>658</left>
            <top>525</top>
            <width>80</width>
            <height>80</height>
            <texture>$INFO[Window.Property(LeaderEraAltHeadshot)]</texture>
            <aspectratio>keep</aspectratio>
            <visible>Control.HasFocus(902)</visible>
        </control>
        
        <!-- Leader 4 Label - Pitching (shows on focus) -->
        <control type="label">
            <left>720</left>
            <top>550</top>
            <width>470</width>
            <height>25</height>
            <align>left</align>
            <font>font16</font>
            <textcolor>yellow</textcolor>
            <label>ERA: $INFO[Window.Property(LeaderEraAltValue)]</label>
            <visible>Control.HasFocus(902)</visible>
        </control>
        
        <!-- Leader 5 - Pitching (shows on focus) -->
        <control type="image">
            <left>658</left>
            <top>570</top>
            <width>80</width>
            <height>80</height>
            <texture>$INFO[Window.Property(LeaderStrikeoutsAltHeadshot)]</texture>
            <aspectratio>keep</aspectratio>
            <visible>Control.HasFocus(902)</visible>
        </control>
        
        <!-- Leader 5 Label - Pitching (shows on focus) -->
        <control type="label">
            <left>720</left>
            <top>600</top>
            <width>470</width>
            <height>25</height>
            <align>left</align>
            <font>font16</font>
            <textcolor>yellow</textcolor>
            <label>Record: $INFO[Window.Property(LeaderStrikeoutsAltValue)]</label>
            <visible>Control.HasFocus(902)</visible>
        </control>
        
    </controls>
</window>
