Hiding Play DVD when there's no disk
#1
Hi all !

I'm such a noob with XBMC, and i'm trying to do a special custom (and moving) menu's item.
In Confluence, when you don't have a CD/DVD in the reader, there's no "Play DVD". And whn you put a CD/DVD in the reader, the computer detect it, and "Play DVD apear in XBMC Menu.

Can we do the same on Aeon Nox ?

Thx !
Reply
#2
Have a look in Home.xml in AeonNox 5 for an example on how to do this - search for DVD
Reply
#3
Hi,

First, thx for your answer.
On an other forum, a member have shared this link driving to your posts. It show how to make it work on Confluence, but not on Aeon Nox.

Anyway, i watched Home.xlm from Aeon Nox 5, 4 and Confluence... But there i don't know how to adapt differents lignes.

In Aion 5
Code:
    <control type="button" id="9021">
                        <label></label>
                        <textoffsetx>0</textoffsetx>
                        <width>50</width>
                        <height>41</height>
                        <align>center</align>
                        <font>IconTiny</font>
                        <textcolor>grey</textcolor>
                        <visible>System.HasMediaDVD</visible>
                        <onclick>EjectTray()</onclick>
                        <animation type="Visible">
                            <effect type="fade" start="0" end="100" tween="sine" easing="inout" time="300" />
                            <effect type="zoom" start="50" end="100" center="auto" tween="sine" easing="inout" time="300" />
                        </animation>
                        <animation type="Hidden">
                            <effect type="fade" start="100" end="0" tween="sine" easing="inout" time="300" />
                            <effect type="zoom" start="100" end="50" center="auto" tween="sine" easing="inout" time="300" />
                        </animation>
                    </control>
            
            <control type="button" id="9022">
                        <label></label>
                        <textoffsetx>0</textoffsetx>
                        <width>50</width>
                        <height>41</height>
                        <align>center</align>
                        <font>IconTiny</font>
                        <textcolor>grey</textcolor>
                        <visible>System.HasMediaDVD</visible>
                        <onclick>PlayDVD</onclick>
                        <animation type="Visible">
                            <effect type="fade" start="0" end="100" tween="sine" easing="inout" time="300" />
                            <effect type="zoom" start="50" end="100" center="auto" tween="sine" easing="inout" time="300" />
                        </animation>
                        <animation type="Hidden">
                            <effect type="fade" start="100" end="0" tween="sine" easing="inout" time="300" />
                            <effect type="zoom" start="100" end="50" center="auto" tween="sine" easing="inout" time="300" />
                        </animation>
                    </control>

In Aeon 4, there is nothing talking about DVD or disc in Home.xml

In Confluence it's :
Code:
                    <item id="6">
                        <label>341</label>
                        <onclick>XBMC.PlayDVD()</onclick>
                        <icon>-</icon>
                        <thumb>-</thumb>
                        <visible>System.HasMediaDVD</visible>
                    </item>

So, should i use an item ? A control ? An animation ?
Any themes build is really so different, i don't know what i can adapt.

Does anyone can help ?

Thank you
Reply
#4
Since you want a main menu option use the confluence method, an5 uses a icon above the main menu - I mentioned an5 because I had recently modified the playDVD part. An4 play disc option is in the bottom bar (thats probably the wrong name...), so I guess thats why there is no mention of playdvd in home.xml Ive not modified alot of skins, but does an4 have a home.xml with entires similar to the confluence one you pasted above? You probably need to change the item id and/or label.
Reply

Logout Mark Read Team Forum Stats Members Help
Hiding Play DVD when there's no disk0