SetProperty when you change list element
#1
Hi. I have a skin that in some case it uses an addon to set variables for infoline label in the fixedlist menu.
The problem is that it takes time to get information from the addon so when the skin changes selected item it shows the old informations and replace them only when the addon has finished.
I'd like that everytime the skin changes selected item to set those variables to 0 with setproperty so it doesn't show wrong information but i don't know how.
I tried to set "SetProperty(variable,0,10000)" to onleft and onright of the fixedlist but it doesn't work while on "ondown" it works.
Can someone suggests me a way to do it?
Reply
#2
you cannot do that without python because there is no event for navigating inside a list. the best solution you can get is to clear the Property when the script starts. (before the JSON request)
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#3
I already tried this approach and sadly isn't great. It's not quick enough in the addon so you see the new infoline with old data well before the addon can set it again.
onleft doesn't work because it's called only when you leave the control but in a fixed list pressing left it doesn't change control, it only scroll right?
Reply
#4
correct. they are only used when "leaving" the container control.
you could try to "cache" the JSON answer as a window property or as a script setting. that way you wouldn´t have to use JSON everytime the menu item focusses.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#5
Ok thanks for your help
Reply

Logout Mark Read Team Forum Stats Members Help
SetProperty when you change list element0