[MOD] Shutdown Submenu
#1
July 17th 2009 UPDATE :

BUG FIX : Floor was gone from multiplex because of using and older Includes_Furniture.xml
Used all 3 files from Hitcher's 2009-07-16 Git. Hopefully it gets integrated soon so i don't have
to keep track of changes Smile

Updated files on Mediafire
---------------------------------------------------------------------------------------------
July 15th 2009 UPDATE :

BUG FIX : For people with the RSS Feed stuck to the Home Menu, the RSS was not disappearing.
Edited Includes_Furniture.xml to add condition. MediaFire files updated and how-to post updated.

---------------------------------------------------------------------------------------------

I have seen people complaining about the lack of a Shutdown submenu so i
figured, why not enable it? It's a good idea.

Image

You can get the files from here :
http://www.mediafire.com/?jowyezmut2t

The zip file contains 2 folders.
- One called "All Enabled" where those XML files have all shutdown options always visible
- One called "Tray and Profile Conditions" where the Eject will only show if there is a disc in the drive and where Sign Out will only show if you are using profiles.

I prefer seeing everything as it looks nicer with the size of the bar (using the
one from the music submenu)

The strings that were already defined were used and others are just in English.
I did not use the SHUTDOWN TIMER string as it didn't fit. I used a hardcoded
OFF TIMER instead. You can obviously localize everything if you want to but i
wanted to keep it simple for everyone (not having to replace strings.xml)

For those that like to know what was done without having to do a diff, here it is :

In Includes_MainMenu.xml, find :

Code:
<control type="button" id="351">
    <onfocus>SetFocus(943)</onfocus>
    <visible>Container(300).HasFocus(9)</visible>
</control>

And add after it :

Code:
<control type="button" id="351">
    <onfocus>SetFocus(944)</onfocus>
    <visible>Container(300).HasFocus(22)</visible>
</control>

In Includes_Submenu.xml, scroll all the way to the end and find :

Code:
</include>

</includes>

and insert the following code BEFORE the </include> :

Code:
<control type="group">
            <posx>79</posx>
            <posy>406</posy>
            <visible>ControlGroup(944).HasFocus()</visible>
            <animation effect="slide" start="0,0" end="0,225" time="400" tween="cubic" easing="inout" condition="Skin.HasSetting(lowermainmenu)">Conditional</animation>            
            <include>Animation_CommonFade</include>            
            <control type="image">
                <width>1123</width>
                <height>33</height>
                <texture>home/submenubar_music.png</texture>
            </control>
            <control type="grouplist" id="944">
                <posx>39</posx>
                <width>1048</width>
                <height>33</height>
                <itemgap>0</itemgap>
                <align>center</align>
                <onup>300</onup>
                <ondown>352</ondown>
                <scroll>false</scroll>
                <orientation>horizontal</orientation>
                <control type="button" id="40">
                    <include>Submenu_Button</include>
                    <description>Shutdown</description>
                    <label>31208</label>
                    <onclick>Shutdown</onclick>
                </control>
                <control type="button" id="41">
                    <include>Submenu_Button</include>
                    <description>Eject Tray</description>
                    <label>31210</label>                
                    <onclick>EjectTray()</onclick>

                </control>                                
                <control type="button" id="42">
                    <include>Submenu_Button</include>
                    <description>Restart XBMC</description>
                    <label>31207</label>
                    <onclick>RestartApp</onclick>
                </control>
                <control type="button" id="43">
                    <include>Submenu_Button</include>
                    <label>REBOOT</label>
                    <onclick>Reboot</onclick>
                </control>
                <control type="button" id="44">
                    <include>Submenu_Button</include>
                    <label>SUSPEND</label>
                    <onclick>Suspend</onclick>
                </control>
                <control type="button" id="45">
                    <include>Submenu_Button</include>
                    <label>HIBERNATE</label>
                    <onclick>Hibernate</onclick>
                </control>
                <control type="button" id="46">
                    <include>Submenu_Button</include>
                    <description>Log Out</description>
                    <label>31209</label>
                    <onclick>System.LogOff</onclick>
                </control>                
                <control type="button" id="47">
                    <include>Submenu_Button</include>
                    <description>Shutdown Timer</description>
                    <label>OFF TIMER</label>
                    <onclick>AlarmClock(,Shutdown,)</onclick>
                </control>

            </control>            
        </control>

In Includes_Furniture.xml, find :

Code:
    <include name="Furniture_HomeRSS">
        <control type="group">
            <posx>0</posx>
            <posy>406</posy>
            <width>1280</width>
            <height>57</height>
            <visible>!Skin.HasSetting(lowerrss) + system.getbool(lookandfeel.enablerssfeeds) + ![ControlGroup(940).HasFocus() | ControlGroup(941).HasFocus() | ControlGroup(942).HasFocus() | ControlGroup(943).HasFocus()]</visible>
            <animation effect="slide" start="0,0" end="0,225" time="400" tween="cubic" easing="inout" condition="Skin.HasSetting(lowermainmenu)">Conditional</animation>
            <include>Animation_OpenCloseZoom</include>
            <include>Animation_VisibleChange200</include>

replace the <visible> tag, with the following :

Code:
<visible>!Skin.HasSetting(lowerrss) + system.getbool(lookandfeel.enablerssfeeds) + ![ControlGroup(940).HasFocus() | ControlGroup(941).HasFocus() | ControlGroup(942).HasFocus() | ControlGroup(943).HasFocus() | ControlGroup(944).HasFocus()]</visible>

If you do not want to see the Eject if there is no disc, find :
Code:
<onclick>EjectTray()</onclick>

And insert AFTER it :

Code:
<visible>System.HasMediaDVD</visible>

If you do not want to see the Sign Out if you are not logged in to a Profile, find :

Code:
<onclick>System.LogOff</onclick>

And insert AFTER it :

Code:
<visible>system.hasloginscreen</visible>

Obviously, backup your files before editing or overwriting them. I cannot be held responsible if your computer/xbox melts down after applying this mod :p

-Pr.
[4 Kodi Clients + 4 Norco RPC-4224 Media Servers w/376 TB HDD Space]
Reply
#2
nice one will give it a goSmile good work
XBMC Frodo 12 - Windows 7 - Asrock Ion 330HT - Aeon Nox
Reply
#3
Nice one, that's one more item I can cross off my To-Do list (as long as you don't mind of course).
Reply
#4
Hitcher Wrote:Nice one, that's one more item I can cross off my To-Do list (as long as you don't mind of course).

Of course not! I am such a fan of yours man i am glad i can just download
your mod and everything is included... Such a time saver. All your tweaks, fixes
and enhancements are really appreciated so keep up the great work!

-Pr.
[4 Kodi Clients + 4 Norco RPC-4224 Media Servers w/376 TB HDD Space]
Reply
#5
Pr.Sinister Wrote:Of course not! I am such a fan of yours man i am glad i can just download
your mod and everything is included... Such a time saver. All your tweaks, fixes
and enhancements are really appreciated so keep up the great work!

-Pr.

That's great you guys work together. There are so many cool things on this forum, but when you stick to a specific mod you end up either modding the mod even further or giving up on extra eyecandy. It's good to see this will be included by Hitcher. Just my two cents. Nod
Reply
#6
Quick aesthetic fix for people with the RSS bar stuck to the Home Menu...

The RSS didn't disappear when the submenu was activated. I had my RSS completely
at the bottom so i never noticed and i just decided to move it and saw the bug.

In Includes_Furniture.xml, find :

Code:
    <include name="Furniture_HomeRSS">
        <control type="group">
            <posx>0</posx>
            <posy>406</posy>
            <width>1280</width>
            <height>57</height>
            <visible>!Skin.HasSetting(lowerrss) + system.getbool(lookandfeel.enablerssfeeds) + ![ControlGroup(940).HasFocus() | ControlGroup(941).HasFocus() | ControlGroup(942).HasFocus() | ControlGroup(943).HasFocus()]</visible>
            <animation effect="slide" start="0,0" end="0,225" time="400" tween="cubic" easing="inout" condition="Skin.HasSetting(lowermainmenu)">Conditional</animation>
            <include>Animation_OpenCloseZoom</include>
            <include>Animation_VisibleChange200</include>

replace the <visible> tag, with the following :

Code:
<visible>!Skin.HasSetting(lowerrss) + system.getbool(lookandfeel.enablerssfeeds) + ![ControlGroup(940).HasFocus() | ControlGroup(941).HasFocus() | ControlGroup(942).HasFocus() | ControlGroup(943).HasFocus() | ControlGroup(944).HasFocus()]</visible>

I have updated the 1st post and added Includes_Furniture.xml to the download.

-Pr.
[4 Kodi Clients + 4 Norco RPC-4224 Media Servers w/376 TB HDD Space]
Reply
#7
Exelent mod Mr Sinister ! thanks.

This mean that i now can remove the SIGN OUT from the home scroller
since its available from the shutdown submenu. NICE !

A request to both MR.sinister and Hitcher. I really miss Party Mode. I use it constantly when im home. It lotta fun to just make my large music collection surprise me all day long Wink

Is it possible to fit in party mode on the music submenu ? or at least make it available in the music library since its been a default feutre of xbmc since way back Wink
Reply

Logout Mark Read Team Forum Stats Members Help
[MOD] Shutdown Submenu0