XBMC Community Forum
Music Genre Icons - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Skin Help and Support (/forumdisplay.php?fid=67)
+---- Forum: Artwork packs (/forumdisplay.php?fid=71)
+---- Thread: Music Genre Icons (/showthread.php?tid=57687)

Pages: 1 2 3 4 5


- ronie - 2009-09-12 22:15

marcozd Wrote:How would I code it myself?

What do I need to do?

start by looking how it's done in other skins ?

here's more or less the code you need to display the genre image:
[HTML]
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>200</width>
<height>200</height>
<texture>$INFO[Listitem.label,,.jpg]</texture>
<visible>Container.Content(Genres) + substring(Container.FolderPath,musicdb://1/)</visible>
</control>[/HTML]


- marcozd - 2009-09-14 19:26

OK. I am not sure how to tell it to use my custom icon name. So, I have an icon file, rock.jpg. Would the following work:

<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>200</width>
<height>200</height>
<texture>$INFO[Listitem.label,,.jpg]</texture>
<visible>Container.Content(Genres) + substring(Container.FolderPath,musicdb://1/)</visible>
<imagepath>rock.jpg</imagepath>


ronie Wrote:start by looking how it's done in other skins ?

here's more or less the code you need to display the genre image:
[HTML]
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>200</width>
<height>200</height>
<texture>$INFO[Listitem.label,,.jpg]</texture>
<visible>Container.Content(Genres) + substring(Container.FolderPath,musicdb://1/)</visible>
</control>[/HTML]



- ronie - 2009-09-14 19:58

marcozd Wrote:OK. I am not sure how to tell it to use my custom icon name. So, I have an icon file, rock.jpg. Would the following work:

<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>200</width>
<height>200</height>
<texture>$INFO[Listitem.label,,.jpg]</texture>
<visible>Container.Content(Genres) + substring(Container.FolderPath,musicdb://1/)</visible>
<imagepath>rock.jpg</imagepath>

nope, the <texture> line takes care of loading the image based on the selected genre, so don't add a <imagepath> line.


- marcozd - 2009-09-14 21:56

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?

ronie Wrote:nope, the <texture> line takes care of loading the image based on the selected genre, so don't add a <imagepath> line.



- ronie - 2009-09-14 22:10

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. ;-)


- marcozd - 2009-09-16 22:02

OK.

I looked at the skin on the xbox but what windowID do I put the code? Do I add it to the " MyMusicSongs.xml" or the "MyMusicNav.xml" or are these even where I am supposed to put the code?

And if so, where in the .xml file do I need to put the code?

thanks


- marcozd - 2009-11-18 18:29

I Still have no idea about how to do this. Should I edit the "commonview.xml" file?

And one last question. I have all of my genre icons. Where do I put then in the /XBMC/ folder so that the program will know where to look for them?

Thanks again.

Sorry for all the noob type issuesSad

marcozd Wrote:OK.

I looked at the skin on the xbox but what windowID do I put the code? Do I add it to the " MyMusicSongs.xml" or the "MyMusicNav.xml" or are these even where I am supposed to put the code?

And if so, where in the .xml file do I need to put the code?

thanks



- krypt2nite - 2010-09-03 07:44

Edited first post with new information.


- Flomaster - 2010-09-03 16:26

krypt2nite Wrote:Edited first post with new information.

thanks for the DB link instead of some other website that I am not able to use Wget with like Megaupload, and similar sites

-=Jason=-

EDIT: looking for the following genres
Comedy
Dance
Easy Listening
Pop
Pop Rock
Holiday
EDIT:
Punk Rock
Soundtrack



- krypt2nite - 2010-09-03 18:58

[Image: Comedy.bmp]
[Image: Dance.bmp]
[Image: Easy%20Listening.bmp]
[Image: Holiday.bmp]
[Image: Pop%20Rock.bmp]
[Image: Pop.bmp]