Kodi Community Forum
Replacement for id12 - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Replacement for id12 (/showthread.php?tid=11615)



- housemarke - 2005-04-22

don't clap me if the question/wish still exist and i'm sitting on my eyes Smile

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

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

yes i know, jmarshall
and i'm talking about the dialogbuttonmenu.xml.

but i can't find a labelid/buttonid like:

Quote:<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


- kraqh3d - 2005-04-22

it's in there:

Quote:    <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

ö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. Smile


- jmarshall - 2005-04-22

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

damn.. now it works.

i've just added a new <string> for this, called:
Quote: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:
Quote: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