<window type="buttonMenu" id="111">
	<defaultcontrol always="true">13</defaultcontrol>
	<include>dialogeffect</include>
	<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>black-back.png</texture>
		</control>
		<control type="image">
			<posx>0</posx>
			<posy>0</posy>
			<width>1280</width>
			<height>720</height>
			<texture>black-back.png</texture>
			<colordiffuse>99FFFFFF</colordiffuse>
		</control>
		<control type="group">
			<posx>305</posx>
			<posy>245</posy>
			<control type="image">
				<posx>0</posx>
				<posy>0</posy>
				<width>670</width>
				<height>210</height>
				<texture border="20">OverlayDialogBackground.png</texture>
				<visible>!System.HasAlarm(shutdowntimer)</visible>
			</control>
			<control type="image">
				<posx>0</posx>
				<posy>0</posy>
				<width>670</width>
				<height>235</height>
				<texture border="20">OverlayDialogBackground.png</texture>
				<visible>System.HasAlarm(shutdowntimer)</visible>
			</control>
			<control type="image">
				<posx>10</posx>
				<posy>5</posy>
				<width>650</width>
				<height>60</height>
				<aspectratio>stretch</aspectratio>
				<texture>GlassTitleBar.png</texture>
			</control>
			<control type="button">
				<description>Close Window button</description>
				<posx>570</posx>
				<posy>5</posy>
				<width>64</width>
				<height>32</height>
				<label>-</label>
				<font>-</font>
				<onclick>PreviousMenu</onclick>
				<texturefocus>DialogCloseButton-focus.png</texturefocus>
				<texturenofocus>DialogCloseButton.png</texturenofocus>
				<onleft>13</onleft>
				<onright>13</onright>
				<onup>13</onup>
				<ondown>13</ondown>
				<visible>system.getbool(input.enablemouse)</visible>
			</control>
			<control type="label" id="3100">
				<description>Label control</description>
				<posx>10</posx>
				<posy>15</posy>
				<width>650</width>
				<height>35</height>
				<label>-</label>
				<align>center</align>
				<aligny>center</aligny>
				<font>font24_title</font>
				<textcolor>white</textcolor>
				<shadowcolor>black</shadowcolor>
			</control>
			<control type="image">
				<posx>10</posx>
				<posy>60</posy>
				<width>650</width>
				<height>100</height>
				<aspectratio>stretch</aspectratio>
				<texture>GlassTitleBar.png</texture>
				<colordiffuse>99FFFFFF</colordiffuse>
			</control>
			<control type="grouplist">
				<posx>15</posx>
				<posy>85</posy>
				<width>640</width>
				<itemgap>20</itemgap>
				<align>center</align>
				<orientation>Horizontal</orientation>
				<control type="togglebutton" id="9">
					<description>Master mode button</description>
					<width>90</width>
					<height>90</height>
					<label>20046</label>
					<altlabel>20045</altlabel>
					<texturefocus>ButtonMenuMasterFO.png</texturefocus>
					<texturenofocus>ButtonMenuMasterNF.png</texturenofocus>
					<usealttexture>!System.IsMaster</usealttexture>
					<alttexturefocus>ButtonMenuNoMasterFO.png</alttexturefocus>
					<alttexturenofocus>ButtonMenuNoMasterNF.png</alttexturenofocus>
					<onclick>xbmc.mastermode</onclick>
					<pulseonselect>no</pulseonselect>
					<font>-</font>
					<visible>System.HasLocks</visible>
				</control>
				<control type="button" id="10">
					<description>LogOff Profile</description>
					<width>90</width>
					<height>90</height>
					<texturefocus>ButtonMenuLogOffFO.png</texturefocus>
					<texturenofocus>ButtonMenuLogOffNF.png</texturenofocus>
					<onclick>dialog.close(all,true)</onclick>
					<onclick>System.LogOff</onclick>
					<pulseonselect>no</pulseonselect>
					<font>-</font>
					<label>$LOCALIZE[20126] $INFO[system.profilename]</label>
					<visible>System.HasLoginScreen</visible>
					<visible>System.Loggedon</visible>
				</control>
				<control type="button" id="11">
					<description>Exit xbmc</description>
					<width>90</width>
					<height>90</height>
					<texturefocus>ButtonMenuExitFO.png</texturefocus>
					<texturenofocus>ButtonMenuExitNF.png</texturenofocus>
					<onclick>XBMC.Quit()</onclick>
					<pulseonselect>no</pulseonselect>
					<font>-</font>
					<label>$LOCALIZE[13012]</label>
				</control>
				<control type="group" id="13">
					<width>90</width>
					<defaultcontrol always="true">15</defaultcontrol>
					<control type="button" id="17">
						<description>Cancel Shutdown Timer button</description>
						<posx>0</posx>
						<posy>0</posy>
						<width>90</width>
						<height>90</height>
						<texturefocus>-</texturefocus>
						<texturenofocus>-</texturenofocus>
						<onclick>XBMC.CancelAlarm(shutdowntimer)</onclick>
						<pulseonselect>no</pulseonselect>
						<font>-</font>
						<label>20151</label>
						<onleft>11</onleft>
						<onright>14</onright>
						<onup>15</onup>
						<ondown>16</ondown>
						<visible>System.HasAlarm(shutdowntimer)</visible>
					</control>
					<control type="button" id="16">
						<description>Custom Shutdown Timer button</description>
						<posx>0</posx>
						<posy>0</posy>
						<width>90</width>
						<height>90</height>
						<texturefocus>-</texturefocus>
						<texturenofocus>-</texturenofocus>
						<onclick>XBMC.AlarmClock(shutdowntimer,XBMC.Shutdown())</onclick>
						<pulseonselect>no</pulseonselect>
						<font>-</font>
						<label>20150</label>
						<onleft>11</onleft>
						<onright>14</onright>
						<onup>17</onup>
						<ondown>15</ondown>
					</control>
					<control type="button" id="15">
						<description>Shutdown button</description>
						<posx>0</posx>
						<posy>0</posy>
						<width>90</width>
						<height>90</height>
						<texturefocus>-</texturefocus>
						<texturenofocus>ButtonMenuShutdownNF.png</texturenofocus>
						<onclick>XBMC.Shutdown()</onclick>
						<pulseonselect>no</pulseonselect>
						<font>-</font>
						<label>13005</label>
						<onleft>11</onleft>
						<onright>14</onright>
						<onup>16</onup>
						<ondown>17</ondown>
					</control>
					<control type="image">
						<description>Shutdown focus image</description>
						<posx>0</posx>
						<posy>0</posy>
						<width>90</width>
						<height>90</height>
						<texture>ButtonMenuShutdownFO.png</texture>
						<visible>Control.HasFocus(15) | Control.HasFocus(16) | Control.HasFocus(17)</visible>
					</control>
				</control>
				<!-- Reboot/Restart -->
				<control type="group" id="14">
					<width>90</width>
					<defaultcontrol always="true">18</defaultcontrol>
					<control type="button" id="19">
						<description>Restart button</description>
						<posx>0</posx>
						<posy>0</posy>
						<width>90</width>
						<height>90</height>
						<texturefocus>-</texturefocus>
						<texturenofocus>ButtonMenuRestartNF.png</texturenofocus>
						<onclick>XBMC.RestartApp()</onclick>
						<pulseonselect>no</pulseonselect>
						<font>-</font>
						<label>$LOCALIZE[13313] XBMC4Xbox</label>
						<onleft>13</onleft>
						<onright>20</onright>
						<onup>18</onup>
						<ondown>18</ondown>
					</control>
					<control type="button" id="18">
						<description>Reboot button</description>
						<posx>0</posx>
						<posy>0</posy>
						<width>90</width>
						<height>90</height>
						<texturefocus>-</texturefocus>
						<texturenofocus>ButtonMenuRestartNF.png</texturenofocus>
						<onclick>XBMC.Reset()</onclick>
						<pulseonselect>no</pulseonselect>
						<font>-</font>
						<label>13013</label>
						<onleft>13</onleft>
						<onright>20</onright>
						<onup>19</onup>
						<ondown>19</ondown>
					</control>
					<control type="image">
						<description>Reboot/Restart focus image</description>
						<posx>0</posx>
						<posy>0</posy>
						<width>90</width>
						<height>90</height>
						<texture>ButtonMenuRestartFO.png</texture>
						<visible>Control.HasFocus(18) | Control.HasFocus(19)</visible>
					</control>
				</control>
				<!-- Favourites -->
				<control type="button" id="20">
					<description>Favourites</description>
					<width>90</width>
					<height>90</height>
					<texturefocus>ButtonMenuFavouritesFO.png</texturefocus>
					<texturenofocus>ButtonMenuFavouritesNF.png</texturenofocus>
					<onclick>ActivateWindow(Favourites)</onclick>
					<pulseonselect>no</pulseonselect>
					<font>-</font>
					<label>$LOCALIZE[1036]</label>
				</control>			
			</control>
			
			<control type="group">
				<posx>270</posx>
				<posy>70</posy>
				<visible>ControlGroup(13).HasFocus</visible>
				<include>VisibleFadeEffect</include>
				<animation effect="slide" start="0,0" end="55,0" time="0" condition="System.HasLocks">Conditional</animation>
				<animation effect="slide" start="0,0" end="55,0" time="0" condition="System.HasLoginScreen + System.LoggedOn">Conditional</animation>
				<control type="image">
					<description>Shutdown Arrow Up image</description>
					<posx>0</posx>
					<posy>0</posy>
					<width>20</width>
					<height>15</height>
					<texture>ArrowUp.png</texture>
				</control>
				<control type="image">
					<description>Shutdown Arrow Down image</description>
					<posx>0</posx>
					<posy>107</posy>
					<width>20</width>
					<height>15</height>
					<texture>ArrowDown.png</texture>
				</control>
			</control>
			<!-- Arrow Up/Down Reboot/Restart -->
			<control type="group">
				<posx>380</posx>
				<posy>70</posy>
				<visible>ControlGroup(14).HasFocus</visible>
				<include>VisibleFadeEffect</include>
				<animation effect="slide" start="0,0" end="55,0" time="0" condition="System.HasLocks">Conditional</animation>
				<animation effect="slide" start="0,0" end="55,0" time="0" condition="System.HasLoginScreen + System.LoggedOn">Conditional</animation>
				<control type="image">
					<description>Shutdown Arrow Up image</description>
					<posx>0</posx>
					<posy>0</posy>
					<width>20</width>
					<height>15</height>
					<texture>ArrowUp.png</texture>
				</control>
				<control type="image">
					<description>Shutdown Arrow Down image</description>
					<posx>0</posx>
					<posy>107</posy>
					<width>20</width>
					<height>15</height>
					<texture>ArrowDown.png</texture>
				</control>
			</control>

			<control type="label">
				<posx>10</posx>
				<posy>190</posy>
				<width>650</width>
				<height>35</height>
				<font>font12</font>
				<textcolor>white</textcolor>
				<shadowcolor>black</shadowcolor>
				<align>center</align>
				<aligny>center</aligny>
				<label>$LOCALIZE[31329] [B]$INFO[System.Alarmpos][/B]</label>
				<visible>System.HasAlarm(shutdowntimer)</visible>
			</control>
		</control>
	</controls>
</window>
