Multiple actions from one radiobutton
#1
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
Reply
#2
Use a normal button control and Skin.SelectBool to open the select dialog with your choices.

https://kodi.wiki/view/List_of_built-in_...built-in's
Reply

Logout Mark Read Team Forum Stats Members Help
Multiple actions from one radiobutton0