Question about script/plugin settings.xml...
#1
I am wondering how to properly use the 'enable=' option inside the settings.xml.

In my script I would like to disable some toggle options using a bool option.

For a better example:

Code:
<setting label="32094" type="bool" id="enablecustom" default="false" />
        <setting label="32087" type="labelenum" id="recognized"  lvalues="32078|32079|32080|32081|32082|32083|32084|32085|32086" default="32078" />
        <setting label="32088" type="labelenum" id="unrecognized" lvalues="32078|32079|32080|32081|32082|32083|32084|32085|32086" default="32083" />
        <setting label="32089" type="labelenum" id="remote"  lvalues="32078|32079|32080|32081|32082|32083|32084|32085|32086" default="32080" />
        <setting label="32090" type="labelenum" id="local"  lvalues="32078|32079|32080|32081|32082|32083|32084|32085|32086" default="32082" />
        <setting label="32091" type="labelenum" id="remotelocal"  lvalues="32078|32079|32080|32081|32082|32083|32084|32085|32086" default="32080" />
        <setting label="32092" type="labelenum" id="unmatched"  lvalues="32078|32079|32080|32081|32082|32083|32084|32085|32086" default="32084" />
        <setting label="32093" type="labelenum" id="localcdart"  lvalues="32078|32079|32080|32081|32082|32083|32084|32085|32086" default="32083" />

This is from my settings.xml file. I would like all the settings after the bool to be enabled on a true and disabled on a false.

I looked though a few script/plugins and found this statement: enable="eq(-1,2)" and also ="qt(-1,1)" but I don't understand how use them.

Thanks for any help...
Reply
#2
giftie Wrote:enable="eq(-1,2)" and also ="qt(-1,1)" but I don't understand how use them.

Thanks for any help...

enable="eq(-1,2)"

this means that the previous option have to be set on the 2 choice to activate this option !
Reply
#3
Thanks for the quick reply...


I ended up using enable="eq(-1,true)" -> enable="(-7,true)"

Your function description helped.. a lot... Big Grin
Reply

Logout Mark Read Team Forum Stats Members Help
Question about script/plugin settings.xml...0