Kodi Community Forum
Conditional visibility within SettingsCategory.xml - 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 visibility within SettingsCategory.xml (/showthread.php?tid=37071)



Conditional visibility within SettingsCategory.xml - djh_ - 2008-09-13

I want to have a label in SettingsCategory.xml that only shows when a certain category (i.e. Subtitles, Player, Library) menu option is selected. I was hoping you could do this with a Container(3).Position(x) on the grouplist - but it doesn't seem to work.

Any advice?


- jmarshall - 2008-09-13

Try ControlGroup(foo).HasFocus(blah) perhaps?


- djh_ - 2008-09-13

Doesn't seem to work. Do those hardcoded buttons even have ids?


- jmarshall - 2008-09-14

The buttons on the left start at 30. The controls on the right start at 50. You know the id's of the groups already. Pretty sure it should work the above.

Cheers,
Jonathan


- djh_ - 2008-09-14

That's the trick. Cheers, jm.


- jmarshall - 2008-09-14

Awesome - glad to know it works Smile