Kodi Community Forum

Full Version: boolean for Settingslevel?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
is there currently a way to check which settingslevel is active, which i may miss? (boolean?)
To check if mouse is enabled (for example):

System.GetBool(input.enablemouse)
jer, i did thouth about something related to this, but no idae how this at the End will Look, or where i can search for the right "bool", nor if there is a bool to use with this condition...
Code:
    <control type="button" id="20"><!-- Setting level -->
    <include>SettingsButton</include>
    <label>10037</label>
    <onclick>SettingsLevelChange</onclick>
    </control>
This is button with label, status info for settings Level....visible in interfacesettings......

This not in boolean condition, you can us String.IsEqual(info,string), but why to use this only conected with settings category an there is visible !?!?!?
Code:
    String.IsEqual( $LOCALIZE[10037],expert)
@Angelinas:

Not shure if i get u right.

I did already think about using "String.IsEqual(Control.Getlabel(20),expert)" which imho. wouldnt work, as i would need it in Settings.xml.


EDIT:
If i would knew how this boolen is called i guess the aproach from "sulfred" could work. (Or did i get u wrong with ur idea.)

(2016-11-03, 21:26)Angelinas Wrote: [ -> ]
Code:
    String.IsEqual( $LOCALIZE[10037],expert)
what u do here is comparing one label to another (a localized String to a "writen" String, which both holds the same value) which isnt related to the settingslevel the user choosed..)
what i can tell is that

Code:
<visible>System.GetBool(settingslevel,expert)</visible>

doesnt work.

--

Im shure one of the experts here shuld knew what to use and if it works.

(Not funny to guessing around and try different things without to knew if it shuld work Angry )
the are no infolabels/bools for the settings level