2010-10-24, 17:28
For Skinners:
Best to have the button be an include condition:
Since it'll stop music playback in Video Library and people might like to uncheck TV themes and listen to music...This allows for both options. Also no need for XBMC to try and run the script if it's not there.
Best to have the button be an include condition:
PHP Code:
<control type="button" id="9999">
<description>trigger</description>
<include condition="!Skin.HasSetting(tv_theme)">no_tv_theme</include>
<include condition="Skin.HasSetting(tv_theme)">yes_tv_theme</include>
<texturenofocus>-</texturenofocus>
<texturefocus>-</texturefocus>
</control>
PHP Code:
<include name="no_tv_theme">
<onfocus>SetFocus(50)</onfocus>
</include>
<include name="yes_tv_theme">
<onfocus>XBMC.RunScript(script.TvTunes,backend=True&loop=True)</onfocus>
<onfocus>SetFocus(50)</onfocus>
</include>
Since it'll stop music playback in Video Library and people might like to uncheck TV themes and listen to music...This allows for both options. Also no need for XBMC to try and run the script if it's not there.