2016-03-28, 17:51
I think the likely difficulty - if things are still the same as the last time I tried to do this (which they may well not be - I know its one area of Kodi that has been receiving some attention as of late) - is that if you override the onclick, even via a conditional onclick, you have to handle all the onclicks. So, you could easily do something like
But you'd then need to handle all the different possible onclick actions (and, with how customisable the widgets are these days, there's plenty to handle) for when the user hasn't selected the skin setting.
An alternative could be to build a template that only includes the onclick if the user has selected it (but, with the way templates work, the option would then have to become a per-widget option). Or you might be able to get around it with
and have the Info onclick be in that include...
Code:
<onclick condition="Skin.HasSetting(InfoOnClick)">Info</onclick>
But you'd then need to handle all the different possible onclick actions (and, with how customisable the widgets are these days, there's plenty to handle) for when the user hasn't selected the skin setting.
An alternative could be to build a template that only includes the onclick if the user has selected it (but, with the way templates work, the option would then have to become a per-widget option). Or you might be able to get around it with
Code:
<include condition="Skin.HasSetting(InfoOnClick)>InfoOnClick</include>
and have the Info onclick be in that include...