Kodi Community Forum
Editing DialogButtonMenu.xml for Various Options - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+--- Thread: Editing DialogButtonMenu.xml for Various Options (/showthread.php?tid=66835)



Editing DialogButtonMenu.xml for Various Options - kubax - 2010-01-11

Hi,

i want to add some functions to DialogButtonMenu.xml of Confluence..

First off, i'll try to add function for predefined shutdown timers.

when i do this, after fushing the button for the Shutdown Menu, my XBMC only just shutdown, without showing the menu...

here is a copy of my DialogButtonMenu.xml...

http://pastebin.com/m606c4cb0

Here the code i added (tooked it from PM3.HD)

Code:
<control type="button" id="30">
                                        <description>30min ShutdownTimer button</description>
                                        <posx>0</posx>
                                        <posy>0</posy>
                                        <width>80</width>
                                        <height>81</height>
                                        <texturefocus>-</texturefocus>
                                        <texturenofocus>-</texturenofocus>
                                        <onclick>XBMC.AlarmClock(shutdowntimer,XBMC.Shutdown(),30)</onclick>
                                        <pulseonselect>no</pulseonselect>
                                        <onleft>13</onleft>
                                        <onright>15</onright>
                                        <onup>31</onup>
                                        <ondown>35</ondown>
                                        <font>-</font>
                                        <label>20147</label>
                                </control>
                                <control type="button" id="31">
                                        <description>60min ShutdownTimer button</description>
                                        <posx>0</posx>
                                        <posy>0</posy>
                                        <width>80</width>
                                        <height>81</height>
                                        <texturefocus>-</texturefocus>
                                        <texturenofocus>-</texturenofocus>
                                        <onclick>XBMC.AlarmClock(shutdowntimer,XBMC.Shutdown(),60)</onclick>
                                        <pulseonselect>no</pulseonselect>
                                        <onleft>13</onleft>
                                        <onright>15</onright>
                                        <onup>32</onup>
                                        <ondown>30</ondown>
                                        <font>-</font>
                                        <label>20148</label>
                                </control>
                                <control type="button" id="32">
                                        <description>120min ShutdownTimer button</description>
                                        <posx>0</posx>
                                        <posy>0</posy>
                                        <width>80</width>
                                        <height>81</height>
                                        <texturefocus>-</texturefocus>
                                        <texturenofocus>-</texturenofocus>
                                        <onclick>XBMC.AlarmClock(shutdowntimer,XBMC.Shutdown(),120)</onclick>
                                        <pulseonselect>no</pulseonselect>
                                        <onleft>13</onleft>
                                        <onright>15</onright>
                                        <onup>33</onup>
                                        <ondown>31</ondown>
                                        <font>-</font>
                                        <label>20149</label>
                                </control>

Also i want to add a complete new button, for Calling a script (to shut down my windows mashine, wich acts as file server for my video database) best, thing would be if this could be done with a timer, too...

hope someone could give me a hint why my system just reboots instead of showing the shutdown menu...

Kubax


- kagem - 2011-01-12

I didn't get to see your DialogButtonMenu.xml but here's mine

http://pastebin.com/Ur7v8pwZ

I only added a 120 min Shutdown timer but it seems to work correctly. The only thing I can think you did wrong was just straight copy pasted it from PM3, you need to change some things like the id #'s and onup, ondown, ect. The id # number has to be unique for each item and the on*'s tell which one to show when you press a direction. onup=up ondown=down... The width and height ones might make a difference also. I'm not sure what the label tag does so I just copied the one from PM3.

Hope that helps. Sorry can't help with your other question, took me awhile just to figure out the timer one.