Replacement for id12
#1
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
Reply
#2
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.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
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
Reply
#4
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>
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#5
ö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
Reply
#6
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.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#7
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
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Replacement for id1200