PDA

View Full Version : [HELP] On click conditional


ekim232
2009-04-19, 00:17
Is is possible to add a conditional to <onclick>?

I would like to have a setting that lets the user decide what a button does. One option is to launch a script & the other is to open a window.

Something like..

<onclick>Skin.HasSetting(run_script)>XBMC.RunScript($INFO[Skin.String(myscript)])</onclick>

I am not sure if that would be the correct coding, but thought I would ask. Thanks to anyone who can assist.

Jezz_X
2009-04-19, 02:48
Can't do it and wont happen for a long time probably easier just to have 2 identical buttons with conditional visability currently

ekim232
2009-04-19, 11:44
Thats what I figured. I was just seeing if there was a another way to do. Felt like I was doing a work around. Thanks Jezz.