2009-05-21, 14:55
I'm currently thinking about how best to setup the default images in the MiniMeedia skin (such as DefaultFolder.png, DefaultNetwork.png etc) and was thinking that it would be great if we were able to map image files to hard-coded images that are picked up by XBMC.
For example if I wanted to use the same image file for DefaultFolder.png and DefaultMusicPlaylists.png then as it currently stands I would have to add 2 copies of the same image (named accordingly) to the xpr.
It would be more efficient if I could define something like the following:
or alternatively, like this:
At the moment there are more than 40 default images that need to be setup for each skin and in a lot of cases they will all be separate images but in some cases they might not be and in those scenarios it would be very handy to have the ability to map images like this.
It would also be handy for things like the rating images (rating0.png etc) as it would be great to be able to map each of the rating images to the songrating images (so 2 sets of rating images aren't needed).
(Could also be handy to map images needed to skin stuff like AMT as that almost always means duplicating images)
What do others think, (a) is this useful and (b) is it possible?
For example if I wanted to use the same image file for DefaultFolder.png and DefaultMusicPlaylists.png then as it currently stands I would have to add 2 copies of the same image (named accordingly) to the xpr.
It would be more efficient if I could define something like the following:
PHP Code:
<mappings>
<defaultfolder>DefaultFolder.png</defaultfolder>
<defaultmusicplaylists>DefaultFolder.png</defaultmusicplaylists>
</mapping>
or alternatively, like this:
PHP Code:
<mappings>
<mapping>
<original>DefaultMusicPlaylists.png</original>
<replacement>DefaultFolder.png</replacement>
</mapping>
</mapping>
At the moment there are more than 40 default images that need to be setup for each skin and in a lot of cases they will all be separate images but in some cases they might not be and in those scenarios it would be very handy to have the ability to map images like this.
It would also be handy for things like the rating images (rating0.png etc) as it would be great to be able to map each of the rating images to the songrating images (so 2 sets of rating images aren't needed).
PHP Code:
<mappings>
<songrating0>rating0.png</songrating0>
<songrating1>rating1.png</songrating1>
<songrating2>rating2.png</songrating2>
<songrating3>rating3.png</songrating3>
<songrating4>rating4.png</songrating4>
<songrating5>rating5.png</songrating5>
</mapping>
(Could also be handy to map images needed to skin stuff like AMT as that almost always means duplicating images)
What do others think, (a) is this useful and (b) is it possible?