Kodi Community Forum
Conditional OnLeft/OnRight etc - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Conditional OnLeft/OnRight etc (/showthread.php?tid=33708)



Conditional OnLeft/OnRight etc - skunkm0nkee - 2008-06-01

Would it be possible to have conditions on onleft, onright etc? The reason I ask is because sometie we need to have different actions triggered depending on what is visible at the time but at the moment to do that means having 2 versions of the control with different directional actions.

Being able to do something like the following would be fantastic:

Code:
<onleft condition="Control.IsVisible(61)">61<onleft>
<onleft condition="!Control.IsVisible(61)">9009</onleft>



- jmarshall - 2008-06-01

Why not pop the destination controls in a group? That should then take care of it in most cases.

Alternatively, if control 61's onleft goes to 9009 then it'll just skip over the missing ones.

Perhaps you could detail why something like this won't do what you require?

Cheers,
Jonathan