2018-09-09, 08:40
Hi,
I was trying to dynamically set the names of my settings using
I am, however, unable to read this back dynamically. What I am trying to do is replace
I tried just basic replacement and it didn't work.
I tried setting a variable and expressions and they didn't work either. Do you have any pointers for me?
I was trying to dynamically set the names of my settings using
Container.Content
. The following works perfectly and toggled tvshows.nohighlist
and others.xml:
<control type="togglebutton" id="6053">
<description>LowList Toggle</description>
<textwidth>255</textwidth>
<include>ButtonCommonValues</include>
<label>$LOCALIZE[31093]</label>
<onclick>Skin.ToggleSetting($INFO[Container.Content,,.nohighlist])</onclick>
<onclick>ReloadSkin()</onclick>
<visible>Control.IsVisible(501)</visible>
</control>
I am, however, unable to read this back dynamically. What I am trying to do is replace
nohighlist
in the code below, with my setting names that are Container.Content
+ .nohighlist
.xml:
<visible>!Skin.HasSetting(nohighlist)</visible>
I tried just basic replacement and it didn't work.
xml:
<visible>!Skin.HasSetting($INFO[Container.Content,,.nohighlist])</visible>
I tried setting a variable and expressions and they didn't work either. Do you have any pointers for me?