How to use conditional visibility with a wraplist
#1
Hi,

I'm struggling with getting a picture to become visible based on when a certain item id is selected in a wraplist with another id

ie

Code:
<control type="wraplist" id="300">
...
...
<content>
            <item id="1">
                    ....
                    <item id="2">
                    ....
                    <item id="3">
</content>
...

Is my code and I want to know how to say "Only show this image when item 2 of wraplist 300 is selected". I can't find anything in the wiki to tell me how to do this.

Thanks in advance.

Alistair
Reply
#2
Something like this?

Quote:<visible>Container(300).HasFocus(2)</visible>
Image

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
Reply
#3
*smacks head*

Seems obvious once you see it.
Thank you mcborzu I owe you one Smile

Alistair
Reply
#4
Yay it worked!
Reply
#5
The wiki is good but the best is to look at another skin you know is doing what you want or close to and figure out how they do it...sort of reverse engineer it
Image

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
Reply
#6
I tried that as well but those damn includes files make that difficult lol

Sourcing decent images for use in skins is also time consuming Smile
Reply
#7
I'm probably going to be asking a ton of newbie questions over the next couple of weeks so I'll apologise in advance.

Sorry.

Alistair
Reply

Logout Mark Read Team Forum Stats Members Help
How to use conditional visibility with a wraplist0