boolean for Settingslevel?
#1
is there currently a way to check which settingslevel is active, which i may miss? (boolean?)
Reply
#2
To check if mouse is enabled (for example):

System.GetBool(input.enablemouse)
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#3
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...
Reply
#4
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)
XBoxMediaCenter (Kodi Matrix ) 19.3 , AndroidBox -Matrix Skin AeonMQ6
Reply
#5
@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..)
Reply
#6
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 )
Reply
#7
the are no infolabels/bools for the settings level
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply

Logout Mark Read Team Forum Stats Members Help
boolean for Settingslevel?0