[confirm] #itemtype not working in string.equals (1 Viewer)

cul8er

Retired Team Member
  • Premium Supporter
  • August 31, 2006
    2,159
    2,679
    Home Country
    Sweden Sweden
    Hi,

    It looks like #itemtype not working in string.equals() statements in skins. Using this;
    <visible>string.equals(#itemtype,#(L(528)))</visible>
    would work in MP1.2 but does not work in MP1.3 Alpha.

    No errors in logs. I have tried the same skin (Avallonis) in MP1.2 and this works and using MP1.3 and it does not work.

    To test this;
    1. open your mymusicgenres.xml in DefaultWide skin and add this code;
    Code:
    <control>
        <description>Test</description>
        <type>fadelabel</type>
        <id>1</id>
        <posX>20</posX>
        <posY>200</posY>
        <width>550</width>
        <font>font12</font>
        <textcolor>FFFFFFFF</textcolor>             
        <label>Test text</label>
        <visible>string.equals(#itemtype,#(L(528)))</visible>
    </control>

    2. Run MP and goto myMusic
    3. Switch to Album Artist view and you will see that the new fadelabel does not show as it should.

    More info;
    1. The #itemtype will be "Album Artist" so this is correct
    2. The #(L(528)) will translate into Album Artist

    But the evaluate does not do its job properly anymore.

    Please let me know if you need more info.

    best regards
    cul8er
     
    Last edited:

    cul8er

    Retired Team Member
  • Premium Supporter
  • August 31, 2006
    2,159
    2,679
    Home Country
    Sweden Sweden
    • Thread starter
    • Moderator
    • #4
    so this should be marked as BUG?

    best regards cul8er
     

    elliottmc

    Retired Team Member
  • Premium Supporter
  • August 7, 2005
    14,927
    6,061
    Cardiff, UK
    Home Country
    United Kingdom United Kingdom
    Well, so far none of the experts have commented. I know how busy they are, but I am sure they will get round to it.
     

    Users who are viewing this thread

    Top Bottom