Conditional <ondown>?
#1
Is it possible to do this within the same container?

<ondown condition="container.content(TVShows)>DOTHIS</ondown>
<ondown condition="container.content(Movies)>DOTHIS</ondown>
Image
To learn more, click here.
Reply
#2
Nope. The trick is usually to make the thing you're moving down to conditional (eg within a group, or with an item invisible etc.)
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
Well I was activating a window. I use the same View for TV and Movies but when in Movies I want to open window ID 1112 ondown and in TV Shows, I want to open window ID 1116 ondown. Oh well.
Image
To learn more, click here.
Reply
#4
I do this both in Night and "The Carmicael':

<ondown>2448</ondown>

Which reference's different a <group>

One group has a <visible>Movies</visible>* and the other has <visible>!Movies</visible>*

bear in mind my shorthand, you know what I mean...
Image

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
Reply
#5
igotdvds Wrote:Well I was activating a window. I use the same View for TV and Movies but when in Movies I want to open window ID 1112 ondown and in TV Shows, I want to open window ID 1116 ondown. Oh well.

You could do this (like mcborzu said):

Code:
<control type="button" id="someid">
   <onfocus>dosth</onfocus>
   <onfocus>setFocus(yourcontainer)</onfocus>
   <visible>Container.Content(movies)</visible>
</control>

<control type="button" id="someid">
   <onfocus>dosth</onfocus>
   <onfocus>setFocus(yourcontainer)</onfocus>
   <visible>Container.Content(tvshows)</visible>
</control>

And then in your container:

Code:
<ondown>someid</ondown>
Image
Reply
#6
Glad to see I'm not alone! Smile
http://trac.xbmc.org/ticket/10423
Reply
#7
filigran Wrote:Glad to see I'm not alone! Smile
http://trac.xbmc.org/ticket/10423

I hope it becomes more simple. Here's to hoping. Smile
Image
To learn more, click here.
Reply
#8
igotdvds Wrote:Is it possible to do this within the same container?

<ondown condition="container.content(TVShows)>DOTHIS</ondown>
<ondown condition="container.content(Movies)>DOTHIS</ondown>
from next nigthly build it's possible Smile
https://github.com/xbmc/xbmc/commit/5594...3626742137
Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

My previous forum/trac nickname: grajen3
Reply
#9
pieh Wrote:from next nigthly build it's possible Smile
https://github.com/xbmc/xbmc/commit/5594...3626742137

thank you!!!!!!!!!!!!!!!
Image
To learn more, click here.
Reply
#10
thanx pieh, major improvement!
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
#11
Thx, works flawless. Now I can really clean up my code.
Reply
#12
Thanks.
Reply
#13
Bit of a bump here but I can't seem to get this to work in grouplists is there some sort of issue here that prevents it from working proper with them ?
Reply
#14
Controls in a vertical grouplist inherit the <onleft>/<onright> stuff from the parent. In this case, likely they don't inherit everything?
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

Logout Mark Read Team Forum Stats Members Help
Conditional <ondown>?0