Adding Eject Button to PMIII in XBMC 2.0
#1
I need the eject option back for my xbox as I dissconnected the buttons on the front and covered the area with my X3 switch bank. The previous version of XBMC I had had it there when you highlighted and selected the power button in the lower right.

I figured out that if I add this:

<control>
<description>eject button</description>
<animation effect="zoom" start="600" center="175,288" time="700">WindowOpen</animation>
<animation effect="slide" time="700" end="0,-600" acceleration="2">WindowClose</animation>
<type>button</type>
<id>3111</id>
<posx>0</posx>
<posy>5</posy>
<width>60</width>
<height>65</height>
<texturefocus>sub-eject-focus.gif</texturefocus>
<texturenofocus>sub-eject-nofocus.png</texturenofocus>
<onclick>XBMC.EjectTray()</onclick>
<pulseonselect>no</pulseonselect>
<onleft>3110</onleft>
<onright>3112</onright>
<onup>3111</onup>
<ondown>3111</ondown>
<font>-</font>
<label>13391</label>
</control>

to DialogButtonMenu.xml I can see the eject button but can't actually highlight it to select it. Does anyone have any advice on how to make this button selectable?
Reply
#2
Setup the navigation correctly. You need to have it correctly navigate from the controls on either side of it to your new one (one presumes that id 3111 is unused currently)
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
Thank you jmarshall. I figured out how to get it to direct to the button and get it to work. However for some reason it doesn't highlight the button like it does with all of the other buttons. It looks like a green light would be glowing underneath it kind of like how the power button has red when it is selected, but instead it just stays the same.

Any ideas as to the cause of this problem and a possible solution?
Reply
#4
Oddly enough I commented out the following lines and replaced them

<texturefocus>sub-eject-focus.gif</texturefocus>
<texturenofocus>sub-eject-nofocus.png</texturenofocus>

with
<texturefocus>-</texturefocus>
<texturenofocus>-</texturenofocus>

Now the highlighting works.
Reply
#5
since those images didn't exist you'd get blanks instead of the defaults.
Reply
#6
Thank you.
Reply

Logout Mark Read Team Forum Stats Members Help
Adding Eject Button to PMIII in XBMC 2.00