Kodi Community Forum

Full Version: setArt on focused item
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I'm learning python and kodi. I'm trying to do a video plugin and I want to know if it is possible create a list of items set an icon for each one, and when a focus on one of them get another image.

Something similar:
item = xbmcgui.ListItem.setArt({ 'icon': 'icon.png', '¿focusIcon?' : 'focusIcon.gif' })

The idea is set an static image like icon and when focus get an animated image.

Thank you.
Hi,

As far as I know there is no way of displaying animated images in the menus. Only a static one is possible and currently I doubt there is a way to even replace the icon image without regenerating the listing each time... So sadly no, i don't think that's possible.