Adding icons (1 Viewer)

twilliams34

New Member
December 6, 2008
1
0
Home Country
United Kingdom United Kingdom
Hi
Sorry if this has been asked before, tried the search but with no luck.

I am currently using the Monochrome skin and would like to add another icon on the front screen, to link to my home videos i have stored on the hard drive.
I have looked for additional plugins but can not seem to find one.

Any help would be appreciated.

Cheers
Tony
 

schneid

MP Donator
  • Premium Supporter
  • November 11, 2008
    19
    0
    Nevada
    Home Country
    United States of America United States of America
    Are you trying to add or change BasicHome or Home? For BasicHome you must edit hyperlink, icon, label, and hover image in basichome.xml. Home will simply read read whatever hover_my ??????.png you have in your skinname\media folder for your "enabled" plugins. For example, to change news, back up your old hover_my news.png and replace it with the one you want.

    For BasicHome you must edit the section you want to change in basichome.xml:

    <control>
    <description>1 - Button</description>
    <type>button</type>
    <id>2</id>
    <posX>40</posX>
    <posY>260</posY>
    <width>300</width>
    <height>180</height>
    <textureFocus>basichome_focus.png</textureFocus>
    <textureNoFocus/>
    <hyperlink>2700</hyperlink>
    <label/>
    <onright>3</onright>
    <onup>13</onup>
    <ondown>6</ondown>
    <onleft>13</onleft>
    </control>
    <control>
    <description>1 - Icon</description>
    <type>image</type>
    <id>1</id>
    <posX>125</posX>
    <posY>270</posY>
    <width>130</width>
    <height>130</height>
    <texture>basichome_news.png</texture>
    </control>
    <control>
    <description>1 - Text</description>
    <type>label</type>
    <id>1</id>
    <posX>40</posX>
    <posY>400</posY>
    <width>300</width>
    <height>40</height>
    <label>9</label>
    <align>center</align>
    </control>
    <control>
    <description>1 - Image</description>
    <type>image</type>
    <id>1</id>
    <posX>1300</posX>
    <posY>260</posY>
    <width>580</width>
    <height>580</height>
    <texture>hover_my news.png</texture>
    <animation effect="fade" time="1000">VisibleChange</animation>
    <visible>Control.HasFocus(2)</visible>
    </control>

    For numeric codes for hyperlinks and labels use the attached chart:

    Sorry it is so painful.
     

    Attachments

    • Plugins.png
      Plugins.png
      92.8 KB

    rivera

    Retired Team Member
  • Premium Supporter
  • December 1, 2008
    237
    21
    Home Country
    Russian Federation Russian Federation
    hover for News

    I am using Blue3 skin.
    I created png file "hover_my news.png" (based on some default hover file) and copied in to the "skin/Blue3/Media" folder.
    By the way, the folder already contained a file with this filename but this file was empty.
    But nothing changed - this picture is not displayed for News.

    I suspect that actually all icons are loaded not from media folder but from several packed png files with names like "packedgfx....png" stored inside "Documents and Setting" folder.
    So, should we change these files?
     

    Attachments

    • hover_my news.png
      hover_my news.png
      152.7 KB

    rivera

    Retired Team Member
  • Premium Supporter
  • December 1, 2008
    237
    21
    Home Country
    Russian Federation Russian Federation
    RSS icon

    Great !!! It works!!!
    I deleted "cache" folder and then my RSS icon appeared/
    Thank you very much!

    Two more things:

    1. The added icon now is displayed inside RSS plugin and this seems not pretty :(.
    2. Not related to the issue but also annoying for me - a title of some selected article is displayed on the right top corner of the screen (I think it's meaningless)

    To solve it:
    - find "myrss.xml" file in "/skin/Blue3" folder.
    - make a backup of this file.
    - in this xml-file correct a name of the picture file: instead "hover_my news.png" type "hover_my news_read.png"
    - create a new empty png-file "hover_my news_read.png" in the "skin/Blue3/Media" directory. This empty file can be made by copy of any other present empty file in this directory. Otherwise, you can create any picture as wish.
    - in "myrss.xml" remove these lines:
    <control>
    <description>Selected item Label</description>
    <type>fadelabel</type>
    <id>1</id>
    <posX>660</posX>
    <posY>70</posY>
    <width>400</width>
    <label>#selecteditem</label>
    <font>font13</font>
    <align>right</align>
    <textcolor>ffffffff</textcolor>
    </control>
     

    schneid

    MP Donator
  • Premium Supporter
  • November 11, 2008
    19
    0
    Nevada
    Home Country
    United States of America United States of America
    Are you using 5 as label?

    To fix alignment problems pay attention to to the position of the icons next to it. X position will match the icon above or below, y will match those side by side. Also pay attention to "align" left, right, center.

    Did you edit your ORIGINAL xml? It's alignments should be correct. You just want to change hyperlink, icon, label, and hoverimage in it. Is you icon the correct size for the skin? That can cause positioning issues.

    Search, download, use Microsoft's XML Notepad to edit xml's. Makes it much easier to keep things in order.

    Keep your sense of humor. MP is really a puzzle/brain teaser/game. I am not sure it is solvable by mortal boys and girls. It's still a lot of fun.
     

    Users who are viewing this thread

    Top Bottom