Monochrome (for those who like dark skins), updated... (2 Viewers)

SpudR

Retired Team Member
  • Premium Supporter
  • July 27, 2007
    2,657
    718
    Yorkshire, UK
    Home Country
    England England
    How do I change the last.fm button under 'Listen' to MyRadio??
    I have tried looking through the code but it's all nonsense to me!!
     

    GetaGrip

    Portal Member
    February 2, 2008
    9
    1
    Switserland
    Home Country
    Netherlands Netherlands
    How do I change the last.fm button under 'Listen' to MyRadio??
    I have tried looking through the code but it's all nonsense to me!!

    well the simple way is to change the button image in c:\programs\Team MediaPortal\skin\Monochrome\Media

    There you find a picture labeled: hover_lastFM.png replace it with a picture of the same dimensions and save it with a extension .PNG[Important]

    Clear the cache of the Monochrome skin, Vista [X:]\ProgramData\Team Mediaportal\Mediaportal\Cache\[Skinname] or XP [X:]/program files/team mediaportal/mediaportal/chache[skinname]

    [X] = your drive letter where xp/vista is installed and [Skinname] is the folder of the skin where you want to change things

    The hard way is when you change your dimensions of the picture then you have to change parameters in a .XML file.

    In your case you must open c:\program files\Team MediaPortal\MediaPortal\skin\Monochrome\MusicMenu.XML
    with Notepad.

    Then you will see code like this:

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <window>
    <id>8888</id>
    <defaultcontrol>5</defaultcontrol>
    <allowoverlay>yes</allowoverlay>
    <disabletopbar>no</disabletopbar>
    <controls>
    <import>common.time.xml</import>
    <control>
    <description>BG</description>
    <type>image</type>
    <id>1</id>
    <width>1366</width>
    <height>768</height>
    <texture>Background basic.png</texture>
    </control>
    <control>
    <description>Last.fm Button</description>
    <type>button</type>
    <id>4</id>
    <posX>53</posX>
    <posY>305</posY>
    <width>253</width>
    <height>166</height>
    <textureFocus>Basic_button_highlight.png</textureFocus>
    <textureNoFocus>-</textureNoFocus>
    <hyperlink>7890</hyperlink>
    <label>107890</label>
    <textcolor>00ffffff</textcolor>
    <textcolorNoFocus>00ffffff</textcolorNoFocus>
    <onleft>3</onleft>
    <onright>5</onright>
    <onup>21</onup>
    <ondown>99</ondown>
    </control>
    <control>
    <description>Last.fm Button Label</description>
    <type>label</type>
    <id>1</id>
    <textcolor>000000</textcolor>
    <posX>215</posX>
    <posY>469</posY>
    <label>107890</label>
    <align>Center</align>

    </control>
    <control>
    <description>Last.fm Button Image</description>
    <type>image</type>
    <id>1</id>
    <posX>67</posX>
    <posY>319</posY>
    <width>220</width>
    <height>130</height>

    <texture>hover_lastFM.png</texture>
    </control>
    <control>
    <description>Music Button</description>
    <type>button</type>
    <id>5</id>
    <posX>306</posX>
    <posY>305</posY>
    <width>253</width>
    <height>166</height>
    <textureFocus>Basic_button_highlight.png</textureFocus>
    <textureNoFocus>-</textureNoFocus>
    <hyperlink>501</hyperlink>
    <label>2</label>
    <textcolor>00ffffff</textcolor>
    <textcolorNoFocus>00ffffff</textcolorNoFocus>
    <onleft>4</onleft>
    <onright>6</onright>
    <onup>21</onup>
    <ondown>99</ondown>
    </control>
    <control>
    <description>Music Button Label</description>
    <type>label</type>
    <id>1</id>
    <posX>493</posX>
    <posY>469</posY>
    <label>2</label>
    <align>Center</align>
    </control>
    <control>
    <description>Music Button Image</description>
    <type>image</type>
    <id>1</id>
    <posX>320</posX>
    <posY>319</posY>
    <width>220</width>
    <height>130</height>
    <texture>hover_my music_shares.png</texture>
    </control>
    <control>
    <description>MusicVideo Button</description>
    <type>button</type>
    <id>6</id>
    <posX>559</posX>
    <posY>305</posY>
    <width>253</width>
    <height>166</height>
    <textureFocus>Basic_button_highlight.png</textureFocus>
    <textureNoFocus>-</textureNoFocus>
    <hyperlink>4734</hyperlink>
    <label>30000</label>
    <textcolor>00ffffff</textcolor>
    <textcolorNoFocus>00ffffff</textcolorNoFocus>
    <onleft>5</onleft>
    <onright>7</onright>
    <onup>21</onup>
    <ondown>99</ondown>
    </control>
    <control>

    Well Label is the name you see on your screen and [x] [Y] are the values of the position on the screen.
    Button is the picture with 4 values [X] [Y] and [WIDTH] [HEIGHT] of the picture, adjust them to your picture dimensions and save it back as the same >XML name.

    Then save the file and open MP to see that you did your job right:D
    No need to clear the cache with this kind of adjustment.

    As a advise.... first backup your original file somewhere else, so that you alway can reverse things.

    Hopefully I did explain it a little proper way.... just tried to keep it simple for you:)

    Regards, GetaGrip

    p.s the code you see is what I use... so the code from the original Monochrome Skin has different values!!!!
     

    SpudR

    Retired Team Member
  • Premium Supporter
  • July 27, 2007
    2,657
    718
    Yorkshire, UK
    Home Country
    England England
    This is great (and now I have my original button image :) )
    Thanks - but I was hoping to change the entire button to a new image AND redirect it to myRadio (I never use last.fm)
    Apologies if I wasn't clear before!
     

    GetaGrip

    Portal Member
    February 2, 2008
    9
    1
    Switserland
    Home Country
    Netherlands Netherlands
    Thanks - but I was hoping to change the entire button to a new image AND redirect it to myRadio (I never use last.fm)
    Apologies if I wasn't clear before!

    Well that's a lot simpler, see this code[you will have it on every beginning of the code] example MusicMenu.XML

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <window>
    <id>8888</id>
    <defaultcontrol>5</defaultcontrol>
    <allowoverlay>yes</allowoverlay>
    <disabletopbar>no</disabletopbar>
    <controls>
    <import>common.time.xml</import>
    <control>
    <description>BG</description>
    <type>image</type>

    etc, etc...

    That's the ID for MusicMenu, so in other words Musicmenu is reference nr 8888

    So when we open Mypixs.xml we see this:

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <window>
    <id>2</id>
    <defaultcontrol>2</defaultcontrol>
    <allowoverlay>yes</allowoverlay>
    <define>#header.label:1</define>
    <define>#header.image:pictures_logo.png</define>
    <define>#header.hover:hover_my pictures.png</define>
    <controls>

    So let's say that you want replace lastFM with Mypics in the musicmenu.xml
    Then we see this piece of code in musicmenu.xml

    <control>
    <description>Last.fm Button</description>
    <type>button</type>
    <id>4</id>
    <posX>53</posX>
    <posY>305</posY>
    <width>253</width>
    <height>166</height>
    <textureFocus>Basic_button_highlight.png</textureFocus>
    <textureNoFocus>-</textureNoFocus>
    <hyperlink>7890</hyperlink>
    <label>107890</label>
    <textcolor>00ffffff</textcolor>
    <textcolorNoFocus>00ffffff</textcolorNoFocus>
    <onleft>3</onleft>
    <onright>5</onright>
    <onup>21</onup>
    <ondown>99</ondown>
    </control>
    <control>

    <description>Last.fm Button</description> is the beginning of what a action must do en where to go.
    There you will find <hyperlink>7890</hyperlink>, heeeeee that's the number of MyradioLastFM.xml
    and mypics.xml starts with a <id>2</id>, so replace 7890 with 2 and when you press the button, it will go to Mypics.

    Pfffft.... It's really not a fun telling story when you mess up the code yourself:oops: but I hope it's clear.

    Just when you're in playful mood, backup the file and start changing parameters and see whats happening.... so much fun!

    Regards, GetaGrip
     

    BoelShit

    Portal Pro
    November 6, 2005
    235
    8
    46
    Home Country
    Netherlands Netherlands
    Thanks - but I was hoping to change the entire button to a new image AND redirect it to myRadio (I never use last.fm)
    Apologies if I wasn't clear before!

    Well that's a lot simpler, see this code[you will have it on every beginning of the code] example MusicMenu.XML

    .....

    <description>Last.fm Button</description> is the beginning of what a action must do en where to go.
    There you will find <hyperlink>7890</hyperlink>, heeeeee that's the number of MyradioLastFM.xml
    and mypics.xml starts with a <id>2</id>, so replace 7890 with 2 and when you press the button, it will go to Mypics.

    Pfffft.... It's really not a fun telling story when you mess up the code yourself:oops: but I hope it's clear.

    Just when you're in playful mood, backup the file and start changing parameters and see whats happening.... so much fun!

    Regards, GetaGrip

    Thanks!!!! Just what I was looking for... I use MyRadio (a lot)! :)
     

    SpudR

    Retired Team Member
  • Premium Supporter
  • July 27, 2007
    2,657
    718
    Yorkshire, UK
    Home Country
    England England
    Now it makes some sense!
    I have adapted the code and it's working perfectly - :D

    Nice to know there are some other Radio heads like mself :)
     

    Psycho Reptile

    Retired Team Member
  • Premium Supporter
  • April 19, 2006
    1,316
    787
    Cambridge, England
    Home Country
    United Kingdom United Kingdom
    Whose Page Ranking? I'll make an MPI for the next release if/when Dukus adds the function to clear the cache folder on XP/Vista, otherwise any modded gfx files aren't updated ;)
     

    papas

    MP Donator
  • Premium Supporter
  • August 21, 2006
    232
    6
    46
    Nicosia
    Home Country
    Cyprus Cyprus
    grats on a great skin psycho reptile

    fast, clean and i love the option that there are various xml for tv series.

    GetaGrip great pics there mate maybe you should release a mod with monochrome with color images :D

    great skin none the less!!
     

    Users who are viewing this thread

    Top Bottom