2013-03-15, 01:53
Hi all,
I'm writing a custom addon which doesn't fit into any of the standard xbmc categories (video/music etc). It's a torrent interface and there is a bunch of properties that i would like to add to a listitem and have them rendered by my interface, things like download speed, percentage and other stuff.
I've got it somewhat working by using list_item.setProperty('percentage', percentage) etc however this property is not updated. Wwhen i do a item.setLabel it will automatically and immediately be updated in the UI, my custom properties only get refreshed when the container gets focus, and when item gets focus.
My question is what makes Label different from properties, and how can i put my own attributes onto a listitem that are reflected in the UI in the same way that labels work?
Thanks
I'm writing a custom addon which doesn't fit into any of the standard xbmc categories (video/music etc). It's a torrent interface and there is a bunch of properties that i would like to add to a listitem and have them rendered by my interface, things like download speed, percentage and other stuff.
I've got it somewhat working by using list_item.setProperty('percentage', percentage) etc however this property is not updated. Wwhen i do a item.setLabel it will automatically and immediately be updated in the UI, my custom properties only get refreshed when the container gets focus, and when item gets focus.
My question is what makes Label different from properties, and how can i put my own attributes onto a listitem that are reflected in the UI in the same way that labels work?
Thanks