2009-06-27, 14:59
Looking at this join between script and skin: http://forum.xbmc.org/showpost.php?p=358...stcount=34
I've noticed that is possible to use a script to set a number of property to a specific window.
Could it be possible to have the same for the ListItem?
So I would have a script that could set something like:
And then from the skin I could retrieve the value like:
Of course the script should run every time the item change and should be possible to set it for all the container controls:
List Container,
Wrap List Container,
Panel Container,
Fixed List Container
So it could be something like:
What do you think of this guys?
Regards
Max
I've noticed that is possible to use a script to set a number of property to a specific window.
Could it be possible to have the same for the ListItem?
So I would have a script that could set something like:
Code:
self.LISTITEM.setProperty( "KEY1", "VALUE1")
Code:
ListItem.Property("KEY1")
Of course the script should run every time the item change and should be possible to set it for all the container controls:
List Container,
Wrap List Container,
Panel Container,
Fixed List Container
So it could be something like:
Code:
<control type="wraplist" id="50">
[b][i] <onfocus>XBMC.RunScript(MyScript.py)</onfocus>[/i][/b]
<focusedlayout height="29" width="250">
...
...
</focusedlayout>
<itemlayout>
...
...
</itemlayout>
</control>
What do you think of this guys?
Regards
Max