Music Genre Icons

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
ronie Offline
Team-XBMC Member
Posts: 8,252
Joined: Jan 2009
Reputation: 108
Post: #11
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]

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
marcozd Offline
Senior Member
Posts: 145
Joined: Nov 2008
Reputation: 0
Post: #12
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]
find quote
ronie Offline
Team-XBMC Member
Posts: 8,252
Joined: Jan 2009
Reputation: 108
Post: #13
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.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
marcozd Offline
Senior Member
Posts: 145
Joined: Nov 2008
Reputation: 0
Post: #14
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.
find quote
ronie Offline
Team-XBMC Member
Posts: 8,252
Joined: Jan 2009
Reputation: 108
Post: #15
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. ;-)

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
marcozd Offline
Senior Member
Posts: 145
Joined: Nov 2008
Reputation: 0
Post: #16
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
find quote
marcozd Offline
Senior Member
Posts: 145
Joined: Nov 2008
Reputation: 0
Post: #17
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

Case: Silverstone Grandia GD04B Black PSU: Seasonic X-400FL 400 W Fanless CPU:Intel 2100 3.1 Ghz CPU Cooler: Scythe Big Shuriken Low Profile RAM:Corsair 4 GB DD3-133 Mobo: Gigabyte H67M-D2-B3 mATX OS HDD: Corsair Nova Series 32GB SSD Storage HDD: WD Green 2 TB Video Card: ASUS EN210 SILENT ODD: Liteon 24X DVD WriterIR: CommandIR Mini

Secondary Box: Original Xbox Softmodded with Krayzie, 500 GB HDD
find quote
krypt2nite Offline
Fan
Posts: 479
Joined: Dec 2008
Reputation: 15
Location: Phoenix, AZ
Post: #18
Edited first post with new information.
find quote
Flomaster Offline
Posting Freak
Posts: 1,293
Joined: Jun 2010
Reputation: 6
Location: East Texas
Post: #19
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
(This post was last modified: 2010-09-03 19:31 by Flomaster.)
find quote
krypt2nite Offline
Fan
Posts: 479
Joined: Dec 2008
Reputation: 15
Location: Phoenix, AZ
Post: #20
[Image: Comedy.bmp]
[Image: Dance.bmp]
[Image: Easy%20Listening.bmp]
[Image: Holiday.bmp]
[Image: Pop%20Rock.bmp]
[Image: Pop.bmp]
find quote