Different 'Context Menu' layouts possible?
#1
I'd like to have different layouts for the DialogContextMenu.xml depending on what window is active at the time. I've tried adding various Window.IsActive and Window.Previous visibility conditions to the different layouts for the button (1000) but nothings worked yet.

Should it be possible or not?

Thanks.
Reply
#2
Apparently so
http://trac.xbmc.org/changeset/8751

And on a side note I just realized I've been contributing to XBMC for 4+ years now :\
Reply
#3
Ronies post (#4) worked in this thread
Image

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
Reply
#4
Jezz_X Wrote:And on a side note I just realized I've been contributing to XBMC for 4+ years now :\

yeah, it's about time they gave you a raise. ;-)
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#5
Can't get it to work, here's the code -

PHP Code:
<window id="106">
    <
defaultcontrol>1000</defaultcontrol>
    <
allowoverlay>yes</allowoverlay>
    <include>
Animation_ZoomOutZoomIn</include>    
    <
coordinates>
        <
system>1</system>
        <
posx>0</posx>
        <
posy>0</posy>
        <
origin x="0" y="120" />
    </
coordinates>
    <
controls>
        <
control type="button" id="1000">
            <
posx>440</posx>
            <
width>840</width>
            <
height>38</height>
            <
textoffsetx>10</textoffsetx>
            <
aligny>center</aligny>
            <
font>Font_ContextValue</font>
            <
textcolor>SettingsDetail</textcolor>
            <
focusedcolor>MenuButtonFO</focusedcolor>
            <
texturefocus>ButtonFo.png</texturefocus>
            <
disabledcolor>TextDisabled</disabledcolor>
            <
pulseonselect>false</pulseonselect>
            <
visible>!Window.Previous(DialogFavourites)</visible>
        </
control>

        <
control type="button" id="1000">
            <
posx>0</posx>
            <
width>380</width>
            <
height>38</height>
            <
textoffsetx>10</textoffsetx>
            <
aligny>center</aligny>
            <
align>right</align>
            <
font>Font_ContextValue</font>
            <
textcolor>SettingsDetail</textcolor>
            <
focusedcolor>MenuButtonFO</focusedcolor>
            <
texturefocus>ButtonFo.png</texturefocus>
            <
disabledcolor>TextDisabled</disabledcolor>
            <
pulseonselect>false</pulseonselect>
            <
visible>Window.Previous(DialogFavourites)</visible>
        </
control>

        <include 
condition="Skin.HasSetting(debugmode)">Debug</include>

    </
controls>
</
window

I've tried Window.IsActive and Window.IsVisible as well but with no luck.

Anyone help?

EDIT: Got it working but I had to change the window from it's name to it's id (134).
Reply
#6
thats because the window is called Favourites not DialogFavourites http://wiki.xbmc.org/?title=Window_IDs
Reply
#7
Image
Reply

Logout Mark Read Team Forum Stats Members Help
Different 'Context Menu' layouts possible?0