2023-06-18, 00:16
Currently modifying Aeon Nox Silvio and I have run into a coding issue I cannot solve.
For a particular view, in the view settings I have 3 radio buttons to control skin settings TVShowGenre, TVShowStatus and TVShowNext.
Is it possible to use radiobuttons such that selecting one of the buttons, not only sets the relevant skin setting to true but also sets (resets) the other 2 to false or is this something that can only be done in a custom window?
I tried:
<control type="radiobutton" id="1524">
<include>ButtonCommonValues</include>
<label> - $LOCALIZE[515]</label>
<selected>Skin.HasSetting(Enable.Wall.TVShowGenre)</selected>
<onclick>Skin.ToggleSetting(Enable.Wall.TVShowGenre)</onclick>
<onclick condition="Skin.HasSetting(Enable.Wall.TVShowGenre)">Skin.Reset(Enable.Wall.TVShowStatus</onclick>
<visible>Container.Content(tvshows) + !Skin.HasSetting(Enable.Wall.TVLogo) + !Skin.HasSetting(Disable.Wall.TVInfo)</visible>
</control>
I tried it using Skin.ToggleSetting instead of Skin.Reset
Neither worked and I ended up confused and frustrated.
All suggestions appreciated
For a particular view, in the view settings I have 3 radio buttons to control skin settings TVShowGenre, TVShowStatus and TVShowNext.
Is it possible to use radiobuttons such that selecting one of the buttons, not only sets the relevant skin setting to true but also sets (resets) the other 2 to false or is this something that can only be done in a custom window?
I tried:
<control type="radiobutton" id="1524">
<include>ButtonCommonValues</include>
<label> - $LOCALIZE[515]</label>
<selected>Skin.HasSetting(Enable.Wall.TVShowGenre)</selected>
<onclick>Skin.ToggleSetting(Enable.Wall.TVShowGenre)</onclick>
<onclick condition="Skin.HasSetting(Enable.Wall.TVShowGenre)">Skin.Reset(Enable.Wall.TVShowStatus</onclick>
<visible>Container.Content(tvshows) + !Skin.HasSetting(Enable.Wall.TVLogo) + !Skin.HasSetting(Disable.Wall.TVInfo)</visible>
</control>
I tried it using Skin.ToggleSetting instead of Skin.Reset
Neither worked and I ended up confused and frustrated.
All suggestions appreciated