<?xml version="1.0" encoding="utf-8"?>
<window>
    <defaultcontrol always="true">10</defaultcontrol>
    <allowoverlay>no</allowoverlay>
    <controls>
        <control type="button" id="10">
            <include>HiddenButton</include>
            <onfocus>SetFocus(11)</onfocus>
        </control>
        <!-- Show home if skin widgets loading is finished -->
        <control type="button" id="11">
            <include>HiddenButton</include>
            <onfocus condition="!System.HasAddon(service.skin.widgets) | Skin.HasSetting(Hide.RecentlyAdded) | Skin.HasSetting(plexbmc) | Skin.HasSetting(Use.FastStart)">SetFocus(12)</onfocus>
            <onfocus condition="![!System.HasAddon(service.skin.widgets) | Skin.HasSetting(Hide.RecentlyAdded) | Skin.HasSetting(plexbmc) | Skin.HasSetting(Use.FastStart)]">SetFocus(11)</onfocus>
            <visible>IsEmpty(Window(Home).Property(SkinWidgets_Running))</visible>
        </control>
        <control type="button" id="11">
            <include>HiddenButton</include>
            <onfocus>SetFocus(12)</onfocus>
            <visible>!IsEmpty(Window(Home).Property(SkinWidgets_Running))</visible>
        </control>
        <control type="button" id="12">
            <include>HiddenButton</include>
            <!-- Play PlayList or Custom Video -->
            <onfocus condition="StringCompare(Skin.String(startup-screentype),video)+!IsEmpty(Skin.String(startup-videopath))">PlayMedia($ESCINFO[Skin.String(startup-videopath)])</onfocus>
            <onfocus condition="Skin.HasSetting(startup-playlist)+!IsEmpty(Skin.String(startup-musicplaylistpath))">PlayMedia($ESCINFO[Skin.String(startup-musicplaylistpath)],isdir)</onfocus>
            <onfocus condition="Skin.HasSetting(startup-playlist)+!IsEmpty(Skin.String(startup-videoplaylistpath))">PlayMedia($ESCINFO[Skin.String(startup-videoplaylistpath)],isdir)</onfocus>
            <!--Change Window-->
            <onfocus condition="IsEmpty(Skin.String(StartupWindow))">ReplaceWindow($INFO[System.StartupWindow])</onfocus>
            <onfocus condition="!IsEmpty(Skin.String(StartupWindow))+IsEmpty(Skin.String(StartupWindowOption))">ReplaceWindow($INFO[Skin.String(StartupWindow)])</onfocus>
            <onfocus condition="!IsEmpty(Skin.String(StartupWindow))+!IsEmpty(Skin.String(StartupWindowOption))">ReplaceWindow($INFO[Skin.String(StartupWindow)],$INFO[Skin.String(StartupWindowOption)])</onfocus>
        </control>
        <include condition="!Skin.HasSetting(DisableFanart)">Fanart_Art</include>
        <!--CUSTOM STARTUP IMAGE-->
        <control type="image">
            <visible>StringCompare(Skin.String(startup-screentype),image)+!IsEmpty(Skin.String(startup-imagepath))</visible>
            <include>KenBurns</include>
            <include>OpenClose</include>
            <posx>0</posx>
            <posy>0</posy>
            <width>1920</width>
            <height>1080</height>
            <aspectratio>scale</aspectratio>
            <texture>$INFO[Skin.String(startup-imagepath)]</texture>
        </control>
        <control type="multiimage">
            <visible>StringCompare(Skin.String(startup-screentype),multiimage)+!IsEmpty(Skin.String(startup-multiimagepath))</visible>
            <include>KenBurns</include>
            <posx>0</posx>
            <posy>0</posy>
            <width>1920</width>
            <height>1080</height>
            <timeperimage>9000</timeperimage>
            <randomize>true</randomize>
            <fadetime>400</fadetime>
            <aspectratio aligny="top">scale</aspectratio>
            <imagepath background="true">$INFO[Skin.String(startup-multiimagepath)]</imagepath>
        </control>
        <control type="image">
            <posx>0</posx>
            <posy>0</posy>
            <width>1920</width>
            <height>1080</height>
            <colordiffuse>$VAR[OverlayTransparency]</colordiffuse>
            <texture>special://skin/backgrounds/default/$VAR[Theme.Color].png</texture>
        </control>
        <control type="group">
            <visible>![StringCompare(Skin.String(startup-screentype),image)+!IsEmpty(Skin.String(startup-imagepath))] +
                ![StringCompare(Skin.String(startup-screentype),multiimage)+!IsEmpty(Skin.String(startup-multiimagepath))]</visible>
            <include>OpenClose</include>
            <control type="image">
                <posx>729</posx>
                <posy>294</posy>
                <width>461</width>
                <height>411</height>
                <texture>$VAR[Theme.Color]/startup.png</texture>
            </control>
            <control type="label">
                <posx>55r</posx>
                <posy>1010</posy>
                <height>36</height>
                <width>1173</width>
                <align>right</align>
                <font>WindowTitleSubFont</font>
                <include>TextColor_AlternateColor</include>
                <label>by Tgx</label>
            </control>
        </control>
    </controls>
</window>
