Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to fix artwork and shutdown options #64

Merged
merged 2 commits into from
Jun 10, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 720p/DialogButtonMenu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
<visible>System.CanReboot</visible>
</control>
<control type="button" id="3117">
<description>Restart XBMC</description>
<description>System Info</description>
<width>370</width>
<height>35</height>
<textcolor>grey</textcolor>
Expand Down
32 changes: 32 additions & 0 deletions 720p/Includes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,38 @@
<!-- <include file="Viewtype_Newest_Episodes.xml" /> -->
<constant name="FanartCrossfadeTime">30</constant>

<variable name="BannerThumb">
<value condition="!IsEmpty(ListItem.Art(banner))">$INFO[ListItem.Art(banner)]</value>
<value condition="IsEmpty(ListItem.Art(banner))">$INFO[ListItem.Icon]</value>
</variable>
<variable name="PosterThumb">
<value condition="!IsEmpty(ListItem.Art(poster))">$INFO[ListItem.Art(poster)]</value>
<value condition="IsEmpty(ListItem.Art(poster))">$INFO[ListItem.Icon]</value>
</variable>
<variable name="ShutdownOption">
<value condition="Stringcompare(Skin.String(ShutdownOption),2)">$LOCALIZE[13012]</value>
<value condition="Stringcompare(Skin.String(ShutdownOption),3)">$LOCALIZE[13016]</value>
<value condition="Stringcompare(Skin.String(ShutdownOption),4)">$LOCALIZE[13011]</value>
<value condition="Stringcompare(Skin.String(ShutdownOption),5)">$LOCALIZE[13010]</value>
<value condition="Stringcompare(Skin.String(ShutdownOption),6)">$LOCALIZE[13013]</value>
<value>$LOCALIZE[13005] $LOCALIZE[33061] [$LOCALIZE[13278]]</value>
</variable>
<variable name="ShutdownOptionHome">
<value condition="Stringcompare(Skin.String(ShutdownOption),2)">$LOCALIZE[13012]</value>
<value condition="Stringcompare(Skin.String(ShutdownOption),3)">$LOCALIZE[13005]</value>
<value condition="Stringcompare(Skin.String(ShutdownOption),4)">$LOCALIZE[13011]</value>
<value condition="Stringcompare(Skin.String(ShutdownOption),5)">$LOCALIZE[13010]</value>
<value condition="Stringcompare(Skin.String(ShutdownOption),6)">$LOCALIZE[13013]</value>
<value>$LOCALIZE[13005]*</value>
</variable>
<variable name="ShutdownCommand">
<value condition="Stringcompare(Skin.String(ShutdownOption),2)">XBMC.Quit()</value>
<value condition="Stringcompare(Skin.String(ShutdownOption),3)">XBMC.Powerdown()</value>
<value condition="Stringcompare(Skin.String(ShutdownOption),4)">XBMC.Suspend()</value>
<value condition="Stringcompare(Skin.String(ShutdownOption),5)">XBMC.Hibernate()</value>
<value condition="Stringcompare(Skin.String(ShutdownOption),6)">XBMC.Reset()</value>
<value>ActivateWindow(ShutdownMenu)</value>
</variable>
<variable name="PlayList">
<value condition="Window.IsActive(videolibrary) + !StringCompare(Playlist.Length(video),0)">ActivateWindow(videoplaylist)</value>
<value condition="[Window.IsActive(musiclibrary) | Window.IsActive(musicfiles)] + !StringCompare(Playlist.Length(music),0)">ActivateWindow(musicplaylist)</value>
Expand Down
89 changes: 87 additions & 2 deletions 720p/Includes_Home_Horizontal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,10 @@
<visible>Skin.HasSetting(signout)</visible>
</item>
<item id="13">
<label>13005</label>
<label>$VAR[ShutdownOptionHome]</label>
<icon>special://skin/backgrounds/shutdown.jpg</icon>
<thumb>$INFO[Skin.String(Home_Custom_Back_Shutdown_Folder)]</thumb>
<onclick>ActivateWindow(ShutdownMenu)</onclick>
<onclick>$VAR[ShutdownCommand]</onclick>
<visible>!Skin.HasSetting(HomeMenuNoShutdownButton)</visible>
</item>
<item id="11">
Expand Down Expand Up @@ -908,6 +908,91 @@
</item>
</content>
</control>
<!--Shutdown -->
<control type="wraplist" id="9019">
<left>0</left>
<top>25</top>
<width>1280</width>
<height>56</height>
<orientation>horizontal</orientation>
<onleft>9019</onleft>
<onright>9019</onright>
<onup>301</onup>
<ondown>301</ondown>
<focusposition>2</focusposition>
<scrolltime>200</scrolltime>
<preloaditems>2</preloaditems>
<visible>Container(301).HasFocus(13) + ![Stringcompare(Skin.String(ShutdownOption),1) | IsEmpty(Skin.String(ShutdownOption))]</visible>
<itemlayout width="320" height="56">
<control type="group">
<left>0</left>
<top>0</top>
<control type="label">
<!--Movie title-->
<width>320</width>
<height>56</height>
<label>$INFO[ListItem.label]</label>
<align>center</align>
<font>Font_Bartowski_Main_SubMenu</font>
<textcolor>grey3</textcolor>
</control>
</control>
</itemlayout>
<focusedlayout width="320" height="56">
<control type="group">
<left>0</left>
<top>0</top>
<control type="label">
<!--Movie title-->
<width>320</width>
<height>56</height>
<label>$INFO[ListItem.label]</label>
<align>center</align>
<font>Font_Bartowski_Main_SubMenu</font>
<textcolor>mainblue</textcolor>
</control>
</control>
</focusedlayout>
<content>
<item id="1">
<label>$LOCALIZE[31242]</label>
<onclick>AlarmClock(shutdowntimer,Shutdown)</onclick>
<visible>!System.HasAlarm(shutdowntimer)</visible>
<visible>System.CanPowerDown | System.CanSuspend | System.CanHibernate</visible>
</item>
<item id="2">
<label>$LOCALIZE[31243]</label>
<onclick>CancelAlarm(ShutdownTimer)</onclick>
<visible>System.HasAlarm(ShutdownTimer)</visible>
</item>
<item id="3">
<label>13011</label>
<onclick>Dialog.Close(ShutdownMenu,yes)</onclick>
<onclick>XBMC.Suspend()</onclick>
<visible>!Stringcompare(Skin.String(ShutdownOption),4) + System.CanSuspend</visible>
</item>
<item id="4">
<label>13010</label>
<onclick>XBMC.Hibernate()</onclick>
<visible>!Stringcompare(Skin.String(ShutdownOption),5) + System.CanHibernate</visible>
</item>
<item id="5">
<label>13013</label>
<onclick>XBMC.Reset()</onclick>
<visible>!Stringcompare(Skin.String(ShutdownOption),6) + System.CanReboot</visible>
</item>
<item id="6">
<label>13012</label>
<onclick>XBMC.Quit()</onclick>
<visible>!Stringcompare(Skin.String(ShutdownOption),2) + System.ShowExitButton</visible>
</item>
<item id="7">
<label>13016</label>
<onclick>XBMC.Powerdown()</onclick>
<visible>!Stringcompare(Skin.String(ShutdownOption),3) + System.CanPowerDown</visible>
</item>
</content>
</control>
<!--DVD -->
<control type="fixedlist" id="9014">
<left>0</left>
Expand Down
Loading