<?xml version="1.0" encoding="UTF-8"?>
<window id="111">
    <defaultcontrol always="true">3110</defaultcontrol>

    <controls>
        <control type="group">
            <posx>681</posx>
            <posy>180</posy>
            
            <control type="group">
                <control type="image">
                    <posx>-30</posx>
                    <posy>-30</posy>
                    <width>618</width>
                    <height>780</height>
                    <fadetime>100</fadetime>
                    <texture border="30">elements/poster-shadow.png</texture>
                    <aspectratio>stretch</aspectratio>
                </control>
    
                <control type="image">
                    <width>558</width>
                    <height>720</height>
                    <fadetime>100</fadetime>
                    <texture colordiffuse="$VAR[BackgroundColor]" border="30" fallback="white.png">elements/poster-mask.png</texture>
                    <aspectratio>stretch</aspectratio>
                </control>
            </control>

            <control type="grouplist" id="3110">
                <posx>22</posx>
                <posy>20</posy>
                <width>512</width>
                <height>660</height>
                <orientation>vertical</orientation>
                <itemgap>0</itemgap>

                <control type="button" id="1">
                    <visible>System.CanPowerDown</visible>
                    <width>512</width>
                    <height>60</height>
                    <scroll>Control.HasFocus(1)</scroll>
                    <label>$LOCALIZE[13005]</label>
                    <onclick>ShutDown</onclick>
                </control>

                <control type="button" id="2">
                    <description>Exit Button</description>
                    <visible>System.ShowExitButton</visible>
                    <width>512</width>
                    <height>60</height>
                    <scroll>Control.HasFocus(2)</scroll>
                    <label>$LOCALIZE[13012]</label>
                    <onclick>Quit</onclick>
                </control>

                <control type="button" id="3">
                    <description>Logoff Profile Button</description>
                    <visible>System.IsLoggedOn + [System.HasLoginScreen | IntegerGreaterThan(System.ProfileCount,1)]</visible>
                    <width>512</width>
                    <height>60</height>
                    <scroll>Control.HasFocus(3)</scroll>
                    <label>$LOCALIZE[20126] $INFO[System.ProfileName]</label>
                    <onclick>Dialog.Close(all,true)</onclick>
                    <onclick>System.LogOff()</onclick>
                </control>

                <control type="button" id="4">
                    <description>Restart Kodi Button</description>
                    <width>512</width>
                    <height>60</height>
                    <scroll>Control.HasFocus(4)</scroll>
                    <label>$LOCALIZE[13313]</label>
                    <onclick>RestartApp</onclick>
                </control>

                <control type="button" id="5">
                    <description>Suspend Button</description>
                    <visible>System.CanSuspend</visible>
                    <width>512</width>
                    <height>60</height>
                    <scroll>Control.HasFocus(5)</scroll>
                    <label>$LOCALIZE[13011]</label>
                    <onclick>Suspend</onclick>
                </control>

                <control type="button" id="6">
                    <description>Hibernate Button</description>
                    <visible>System.CanHibernate</visible>
                    <width>512</width>
                    <height>60</height>
                    <scroll>Control.HasFocus(6)</scroll>
                    <label>$LOCALIZE[13010]</label>
                    <onclick>Hibernate</onclick>
                </control>

                <control type="button" id="7">
                    <description>Reboot Button</description>
                    <visible>System.CanReboot</visible>
                    <width>512</width>
                    <height>60</height>
                    <scroll>Control.HasFocus(7)</scroll>
                    <label>$LOCALIZE[13013]</label>
                    <onclick>Reboot</onclick>
                </control>

                <control type="button" id="8">
                    <description>Power Down Button</description>
                    <visible>System.CanPowerDown</visible>
                    <width>512</width>
                    <height>60</height>
                    <scroll>Control.HasFocus(8)</scroll>
                    <label>$LOCALIZE[31082]</label>
                    <onclick>Powerdown</onclick>
                </control>

                <control type="button" id="9">
                    <description>Custom Shutdown Timer Button</description>
                    <visible>!System.HasAlarm(shutdowntimer)</visible>
                    <width>512</width>
                    <height>60</height>
                    <scroll>Control.HasFocus(9)</scroll>
                    <label>$LOCALIZE[20150]</label>
                    <onclick>AlarmClock(shutdowntimer,ShutDown)</onclick>
                </control>

                <control type="button" id="10">
                    <description>Custom Cancel Timer Button</description>
                    <visible>System.HasAlarm(shutdowntimer)</visible>
                    <width>512</width>
                    <height>60</height>
                    <scroll>Control.HasFocus(10)</scroll>
                    <label>$LOCALIZE[20151]</label>
                    <onclick>CancelAlarm(shutdowntimer)</onclick>
                </control>

                <control type="togglebutton" id="11">
                    <description>Master Mode Button</description>
                    <visible>System.HasLocks</visible>
                    <width>512</width>
                    <height>60</height>
                    <scroll>Control.HasFocus(11)</scroll>
                    <label>$LOCALIZE[20046]</label>
                    <altlabel>$LOCALIZE[20045]</altlabel>
                    <onclick>Mastermode()</onclick>
                </control>

                <control type="button" id="12">
                    <description>Settings Button</description>
                    <visible>!Skin.HasSetting(SettingsOption.Active)</visible>
                    <width>512</width>
                    <height>60</height>
                    <scroll>Control.HasFocus(12)</scroll>
                    <label>$LOCALIZE[5]</label>
                    <onclick>ActivateWindow(settings)</onclick>
                </control>

                <control type="button" id="13">
                    <description>Close Button</description>
                    <width>512</width>
                    <height>60</height>
                    <scroll>Control.HasFocus(13)</scroll>
                    <label>$LOCALIZE[31915]</label>
                    <onclick>Dialog.Close(shutdownmenu)</onclick>
                </control>
            </control>

            <control type="label">
                <description>Alarm Time Label</description>
                <visible>System.HasAlarm(shutdowntimer)</visible>
                <posx>22</posx>
                <posy>680</posy>
                <width>512</width>
                <height>20</height>
                <font>DialogRemarkFont</font>
                <textcolor>$VAR[MainColor]</textcolor>
                <align>center</align>
                <aligny>center</aligny>
                <label>$LOCALIZE[20145]: $INFO[System.Alarmpos]</label>
            </control>
        </control>
    </controls>
</window>
