marcozd Wrote:Alright. How about this:
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>200</width>
<height>200</height>
<texture>$INFO[Listitem.label,,rock.jpg]</texture>
<visible>Container.Content(Genres) + substring(Container.FolderPath,musicdb://1/)</visible>
What I don't understand is how it will associate the genre "rock" with the picture file "rock.jpg". DOn't I need to tell it somewhere that I am making the "rock" genre display the "rock.jpg" file?
no, when you're browsing the list of genres, 'ListItem.Label' will contain the value of the focused genre. and the $INFO string takes care of adding '.jpg' at the end.
so <texture>$INFO[Listitem.label,,.jpg]</texture> is the exact string you'll need to use, it'll work for every genre so you don't have to specify them one by one.
again, when you're new to skinning, the best way to learn is by looking at how it's done in other skins.....just a tip. ;-)