add-on running conditional?
#1
I am working on skin support for an add-on (cu lyrics)

In the music visualization I want to hide a control when the script's window is visible. Except the window has no ID. Is there a way to set up a conditional that kicks in when an add-on is started?

Something like <visible>Script.IsRunning(xbmc.python.lyrics)</visible> ?
Reply
#2
instead of the ID, you can use the filename:
Window.IsVisible(script-XBMC_Lyrics-main.xml)
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
#3
Oh cool, didn't know that. Thanks man Smile
Reply
#4
That's kinda hacky though - it relies on you knowing what the scripts window is called.

I doubt we'll have time for much more than that in the short-term though.

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#5
heh you didn't say that when you added it for me for that specific purpose back in the day Tongue
Reply

Logout Mark Read Team Forum Stats Members Help
add-on running conditional?0