Need help with xml file (1 Viewer)

eiMer

New Member
February 1, 2007
3
0
Hi,

two years ago i wrote a "sleeptimer" plugin. dont ask me which version of mediaportal it was but in the new version the skin file doesnt work.

The text on the button is invisible...
HTML:
<control>

<description>120 Minuten</description>

<type>button</type>

<id>3</id>

<posX>270</posX>

<posY>264</posY>

<label>120 Minuten</label>

<onup>1</onup>

<ondown>1</ondown>

</control>

the label "120 Minuten" isnt displayed...

Can anyone tell how to do this is the latest version of mediaportal...
I looked at some other plugins to see how it works...
eg <label> 100 </label>
but cant find the decleration of "label 100"...

Thx for your help...

-eiMer
 

ryan20021982

Retired Team Member
  • Premium Supporter
  • June 27, 2008
    655
    86
    USA
    Home Country
    United States of America United States of America
    I think you would have to do something like this
    Just a guess here

    Code:
        <control>
          <description>120 Minuten Button</description>
          <type>button</type>
          <id>3</id>
          <posX>270</posX>
          <posY>264</posY>
          <label>2</label>
          <onup>1</onup>
          <ondown>1</ondown>
        </control> 
        <control>
          <description>120 Minuten Label</description>
          <type>label</type>
          <id>1</id>
          <posX>270</posX>
          <posY>264</posY>
          <label>120 Minuten</label>
        </control>
    the button control and the label control are seperate
     

    jburnette

    Portal Pro
    August 24, 2006
    758
    116
    Kentucky
    Home Country
    United States of America United States of America
    I think that what's happening is that because you're starting the label off with a number, MP assumes it's going to be a translatable string. It can't find a match for that (because it's not one) so it shows nothing. Try putting a space before the string so that it's:

    <label> 120 Minuten</label>

    The translations to the numerical labels are in the xml files in Mediaportal's language folder, but in this case you're not wanting to add a translation I don't think.
     

    eiMer

    New Member
    February 1, 2007
    3
    0
    yeah it works...

    jburnettes' version is a bit easier ;)
    but rayns works too...

    Thanks !!


    --> close plz
     

    Users who are viewing this thread


    Write your reply...
    Top Bottom