117 lines
5.0 KiB
XML
117 lines
5.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--power menu-->
|
|
<window type="buttonMenu">
|
|
<defaultcontrol always="true">8000</defaultcontrol>
|
|
<allowoverlay>yes</allowoverlay>
|
|
<include>fadeInOut</include>
|
|
<controls>
|
|
<include>modalDialog</include>
|
|
<control type="group">
|
|
<posx>col-10-begin</posx>
|
|
<posy>7-row</posy>
|
|
<!--animations-->
|
|
<include>modalDialogInOutVertical</include>
|
|
<control type="list" id="8000">
|
|
<posx>0</posx>
|
|
<posy>0</posy>
|
|
<width>6-col</width>
|
|
<height>8-row</height>
|
|
<itemgap>0</itemgap>
|
|
<itemlayout width="6-col" height="2-row">
|
|
<control type="label">
|
|
<posx>12</posx>
|
|
<posy>0</posy>
|
|
<width>6-col-gutter</width>
|
|
<height>2-row</height>
|
|
<aligny>center</aligny>
|
|
<font>itemTitle</font>
|
|
<textcolor>textActive</textcolor>
|
|
<label>$INFO[ListItem.label]</label>
|
|
</control>
|
|
</itemlayout>
|
|
<focusedlayout width="6-col" height="2-row">
|
|
<control type="image">
|
|
<posx>0</posx>
|
|
<posy>0</posy>
|
|
<width>6-col</width>
|
|
<height>2-row</height>
|
|
<aspectratio scalediffuse="false">scale</aspectratio>
|
|
<texture border="0">colors/white.png</texture>
|
|
<bordersize>0</bordersize>
|
|
<colordiffuse>500</colordiffuse>
|
|
</control>
|
|
<control type="label">
|
|
<posx>12</posx>
|
|
<posy>0</posy>
|
|
<width>6-col-gutter</width>
|
|
<height>2-row</height>
|
|
<aligny>center</aligny>
|
|
<font>itemTitle</font>
|
|
<textcolor>textActive</textcolor>
|
|
<label>$INFO[ListItem.label]</label>
|
|
</control>
|
|
</focusedlayout>
|
|
<content>
|
|
<item id="1">
|
|
<label>13016</label>
|
|
<visible>System.CanPowerDown + !Skin.HasSetting(exitFirst)</visible>
|
|
<thumb>-</thumb>
|
|
<onclick>xbmc.powerdown()</onclick>
|
|
</item>
|
|
<item id="2">
|
|
<description>Exit to desktop</description>
|
|
<visible>Skin.HasSetting(exitFirst)</visible>
|
|
<label>13012</label>
|
|
<thumb>-</thumb>
|
|
<onclick>XBMC.Quit()</onclick>
|
|
</item>
|
|
<item id="3">
|
|
<label>13011</label>
|
|
<visible>System.CanSuspend</visible>
|
|
<thumb>-</thumb>
|
|
<onclick>XBMC.Suspend()</onclick>
|
|
</item>
|
|
<item id="4">
|
|
<label>13010</label>
|
|
<visible>System.CanHibernate</visible>
|
|
<thumb>-</thumb>
|
|
<onclick>XBMC.Hibernate()</onclick>
|
|
</item>
|
|
<item id="5">
|
|
<label>13013</label>
|
|
<thumb>-</thumb>
|
|
<onclick>XBMC.Reboot()</onclick>
|
|
</item>
|
|
<item id="6">
|
|
<label>$LOCALIZE[20126] $INFO[system.profilename]</label>
|
|
<visible>System.HasLoginScreen | IntegerGreaterThan(System.ProfileCount,1)</visible>
|
|
<visible>System.Loggedon</visible>
|
|
<thumb>-</thumb>
|
|
<onclick>System.LogOff</onclick>
|
|
<onclick>Dialog.Close(all,true)</onclick>
|
|
</item>
|
|
<item id="7">
|
|
<description>Exit to desktop</description>
|
|
<visible>!Skin.HasSetting(exitFirst)</visible>
|
|
<label>13012</label>
|
|
<thumb>-</thumb>
|
|
<onclick>XBMC.Quit()</onclick>
|
|
</item>
|
|
<item id="8">
|
|
<label>13016</label>
|
|
<visible>System.CanPowerDown + Skin.HasSetting(exitFirst)</visible>
|
|
<thumb>-</thumb>
|
|
<onclick>xbmc.powerdown()</onclick>
|
|
</item>
|
|
</content>
|
|
</control>
|
|
</control>
|
|
<!--debugging-->
|
|
<include>DebugGrid</include>
|
|
<control type="label">
|
|
<include>DialogID</include>
|
|
<label>DialogButtonMenu.xml</label>
|
|
</control>
|
|
</controls>
|
|
</window>
|