Can skin setting radiobuttons be set to enabled on first run?
#1
I created skin settings to enable/disable view modes using radiobuttons (see screenshot). Is there a way to set these radiobuttons to "enabled" by default? In other words, I would like them all to be selected when a user installs or updates their skin.

I could change all the radiobuttons so that the views are disabled when they are selected, but that wouldn't be very intuitive.

Thanks!

Image

And here's what one of the controls looks like...

Code:
<control type="radiobutton" id="500">
    <width>658</width>
    <height>90</height>
    <textoffsetx>30</textoffsetx>
    <font>font15</font>
    <label>31086</label>
    <onclick>Skin.ToggleSetting(IconView.Enabled)</onclick>
    <selected>Skin.HasSetting(IconView.Enabled)</selected>
</control>
Reply
#2
I think I might have answered my own question...change selected to:

Code:
<selected>!Skin.HasSetting(IconView.Disabled)</selected>

Going to test now.

Update: Seems to be working like I want, glad it was an easy fix. Smile
Reply

Logout Mark Read Team Forum Stats Members Help
Can skin setting radiobuttons be set to enabled on first run?0