Skip to content

Commit

Permalink
Remove button without onclick action + added inhibit/allow on idle bu…
Browse files Browse the repository at this point in the history
…ttons
  • Loading branch information
BigNoid committed Apr 10, 2013
1 parent 8a0ae1f commit b5c551a
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions 1080i/DialogButtonMenu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,17 @@
<include>Objects_ShutdownMenuButton</include>
<onclick>ActivateWindow(Favourites)</onclick>
</control>
<control type="button" id="21">
<label>$LOCALIZE[13016]</label>
<control type="button" id="13">
<label>$LOCALIZE[13017]</label>
<include>Objects_ShutdownMenuButton</include>
<onclick>XBMC.InhibitIdleShutdown(true)</onclick>
<visible>System.HasShutdown +!System.IsInhibit</visible>
</control>
<control type="button" id="16">
<label>$LOCALIZE[13018]</label>
<include>Objects_ShutdownMenuButton</include>
<visible>!System.CanPowerDown</visible>
<onclick>XBMC.InhibitIdleShutdown(false)</onclick>
<visible>System.HasShutdown + System.IsInhibit</visible>
</control>
<control type="image" id="19">
<posy>699</posy>
Expand Down Expand Up @@ -208,10 +215,16 @@
<include>Objects_ShutdownMenuIcon</include>
</control>
<control type="image">
<texture>special://skin/extras/BigIcons/Power.png</texture>
<animation effect="fade" start="100" end="55" time="0" condition="!Control.HasFocus(21)">Conditional</animation>
<texture>special://skin/extras/BigIcons/Gears.png</texture>
<animation effect="fade" start="100" end="55" time="0" condition="!Control.HasFocus(13)">Conditional</animation>
<include>Objects_ShutdownMenuIcon</include>
<visible>System.HasShutdown +!System.IsInhibit</visible>
</control>
<control type="image">
<texture>special://skin/extras/BigIcons/Clock.png</texture>
<animation effect="fade" start="100" end="55" time="0" condition="!Control.HasFocus(16)">Conditional</animation>
<include>Objects_ShutdownMenuIcon</include>
<visible>!System.CanPowerDown</visible>
<visible>System.HasShutdown + System.IsInhibit</visible>
</control>
</control>
</control>
Expand Down

0 comments on commit b5c551a

Please sign in to comment.