View Full Version : Replacement for id12
housemarke
2005-04-22, 13:26
don't clap me if the question/wish still exist and i'm sitting on my eyes :)
cause the hardcoded id's no longer existing, i where happy about new label id's for restart/reboot.
in my shutdownmenu i want to split into 2 options with
xbmc.restartapp()
xbmc.reset()
could you make it possible?
housemarke
jmarshall
2005-04-22, 14:33
dialogbuttonmenu.xml is the file you want i think.
you just have to add suitable buttons, and then set their <execute> tags to what you have above.
housemarke
2005-04-22, 15:09
yes i know, jmarshall
and i'm talking about the dialogbuttonmenu.xml.
but i can't find a labelid/buttonid like:
<id>3111</id>
<execute>xbmc.reset()</execute>
<label>13313</label>
suitable for xbmc.restartapp()
i think i'm blind or really stupid :rolleyes:
could you :help: me please
it's in there:
* *<control>
* * *<description>reboot button</description>
* * *<type>button</type>
* * *<id>3111</id>
* * *<posx>90</posx>
* * *<posy>10</posy>
* * *<width>61</width>
* * *<height>61</height>
* * *<texturefocus>sub-reboot-focus.png</texturefocus>
* * *<texturenofocus>sub-reboot-nofocus.png</texturenofocus>
* * *<execute>xbmc.reset()</execute>
* * *<onleft>3110</onleft>
* * *<onright>3112</onright>
* * *<onup>3111</onup>
* * *<ondown>3111</ondown>
* * *<font>-</font>
* * *<label>13313</label>
* *</control>
housemarke
2005-04-22, 15:44
öhm, right
<id>13313</id> print reset/reboot
and i will additionally a second button for only restart xbmc.
and for this button i need another label than "reset/reboot".
i hope you'll understand me now. :)
jmarshall
2005-04-22, 16:17
if all you need is the string, look in strings.xml in the language folder and see if there is one that suits.
if not, you can use <label>restart xbmc</label> for instance.
note that the <id> of the buttons only matter for navigation purposes.
the <execute> tag is what counts as far as what happens when the button is pushed.
housemarke
2005-04-22, 17:45
damn.. now it works.
i've just added a new <string> for this, called:
english:
<string><id>13386</id><value>xbmc reload</value></string>
german:
<string><id>13386</id><value>xbmc neustarten</value></string>
and edit <id>13313</id> into:
english:
<string><id>13313</id><value>system reset/reboot</value></string>
german:
<string><id>13313</id><value>system reset/neustart</value></string>
could you set it default? :d