Skin engine bug?

Discussion in 'MediaPortal 1 Skins' started by ajs, June 6, 2013.

  1. ajs
    • Team MediaPortal

    ajs Development Group

    Joined:
    February 29, 2008
    Messages:
    8,829
    Likes Received:
    2,792
    Gender:
    Male
    Occupation:
    IT
    Location:
    Kyiv
    Ratings:
    +4,797 / 30
    Home Country:
    Ukraine Ukraine
    Show System Specs
    Why control 37 and 38 visible?

    13-41-41.png



    Code (Text):
    1.     <control>
    2.         <description>Movie Name</description>
    3.         <id>36</id>
    4.         <type>fadelabel</type>
    5.         <width>925</width>
    6.         <height>24</height>
    7.         <posX>484</posX>
    8.         <posY>74</posY>
    9.         <font>fontB20</font>
    10.         <label>string.trim(#Play.Current.Title)</label>
    11.     </control>
    12.     <control>
    13.         <description>Movie Name</description>
    14.         <id>36</id>
    15.         <type>fadelabel</type>
    16.         <width>925</width>
    17.         <height>24</height>
    18.         <posX>484</posX>
    19.         <posY>174</posY>
    20.         <font>fontB20</font>
    21.         <label>string.trim(#MovingPictures.SelectedMovie.title)</label>
    22.     </control>
    23.     <control>
    24.         <description>Movie Name</description>
    25.         <id>37</id>
    26.         <type>fadelabel</type>
    27.         <width>925</width>
    28.         <height>24</height>
    29.         <posX>484</posX>
    30.         <posY>274</posY>
    31.         <font>fontB20</font>
    32.         <label>!!!</label>
    33.         <visible>string.equals(#Play.Current.Title,#MovingPictures.SelectedMovie.title)</visible>
    34.     </control>
    35.     <control>
    36.         <description>Movie Name</description>
    37.         <id>38</id>
    38.         <type>fadelabel</type>
    39.         <width>925</width>
    40.         <height>24</height>
    41.         <posX>484</posX>
    42.         <posY>374</posY>
    43.         <font>fontB20</font>
    44.         <label>!!!-!!!</label>
    45.         <visible>eq(#Play.Current.Title,#MovingPictures.SelectedMovie.title)</visible>
    46.     </control>
    47.  
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. kiwijunglist
    • Team MediaPortal

    kiwijunglist Super Moderator

    Joined:
    June 10, 2008
    Messages:
    6,746
    Likes Received:
    1,420
    Occupation:
    Doctor
    Location:
    New Zealand
    Ratings:
    +1,849 / 9
    Home Country:
    New Zealand New Zealand
    Show System Specs
    Strange, I don't know why. Is eq for strings or numbers?

    Try string.equals(....) instead of eq(....)
     
    Last edited: June 6, 2013
  4. ajs
    • Team MediaPortal

    ajs Development Group

    Joined:
    February 29, 2008
    Messages:
    8,829
    Likes Received:
    2,792
    Gender:
    Male
    Occupation:
    IT
    Location:
    Kyiv
    Ratings:
    +4,797 / 30
    Home Country:
    Ukraine Ukraine
    Show System Specs
    Control 37 - <visible>string.equals(#Play.Current.Title,#MovingPictures.SelectedMovie.title)</visible>
     
  5. kiwijunglist
    • Team MediaPortal

    kiwijunglist Super Moderator

    Joined:
    June 10, 2008
    Messages:
    6,746
    Likes Received:
    1,420
    Occupation:
    Doctor
    Location:
    New Zealand
    Ratings:
    +1,849 / 9
    Home Country:
    New Zealand New Zealand
    Show System Specs
    my bad. restart mediaportal. ?[DOUBLEPOST=1370518484][/DOUBLEPOST]Their example is wierd

    11
    <visible>string.equals(#selectedindex)+string.equals(#itemcount)</visible>

    They only compare 1 value in their example. I don't get it.

    Try <visible>string.equals(#Play.Current.Title)+string.equals(#MovingPictures.SelectedMovie.title)</visible>
     
  6. kiwijunglist
    • Team MediaPortal

    kiwijunglist Super Moderator

    Joined:
    June 10, 2008
    Messages:
    6,746
    Likes Received:
    1,420
    Occupation:
    Doctor
    Location:
    New Zealand
    Ratings:
    +1,849 / 9
    Home Country:
    New Zealand New Zealand
    Show System Specs
    BTW for your label tags you need a # at the start.
     
  7. wizard123
    • Team MediaPortal

    wizard123 Design Group

    Joined:
    January 24, 2012
    Messages:
    2,499
    Likes Received:
    1,695
    Gender:
    Male
    Occupation:
    genius
    Ratings:
    +2,919 / 11
    Home Country:
    United Kingdom United Kingdom
    add ! for invisible ?
     
  8. ajs
    • Team MediaPortal

    ajs Development Group

    Joined:
    February 29, 2008
    Messages:
    8,829
    Likes Received:
    2,792
    Gender:
    Male
    Occupation:
    IT
    Location:
    Kyiv
    Ratings:
    +4,797 / 30
    Home Country:
    Ukraine Ukraine
    Show System Specs
    I put it, then displays the # string.trim(Жизнь Пи), etc.

    Try, try again ...[DOUBLEPOST=1370521943][/DOUBLEPOST]
    ?
     
  9. wizard123
    • Team MediaPortal

    wizard123 Design Group

    Joined:
    January 24, 2012
    Messages:
    2,499
    Likes Received:
    1,695
    Gender:
    Male
    Occupation:
    genius
    Ratings:
    +2,919 / 11
    Home Country:
    United Kingdom United Kingdom
    Are you trying to make controls 37 and 38 invisible ?
     
  10. ajs
    • Team MediaPortal

    ajs Development Group

    Joined:
    February 29, 2008
    Messages:
    8,829
    Likes Received:
    2,792
    Gender:
    Male
    Occupation:
    IT
    Location:
    Kyiv
    Ratings:
    +4,797 / 30
    Home Country:
    Ukraine Ukraine
    Show System Specs
    Stop Mepo, Clear skin cache, Start Mepo:

    Play TVSeries (control 37 not visible): :)
    15-55-30.png


    Play MovingPictures (control 37 visible, #Play.Current.Title = #MovingPictures.SelectedMovie.title): :)
    15-56-13.png

    Stop MovingPictures, goto Home (press H), Play TVSeries(control 37 visible, #Play.Current.Title <> #MovingPictures.SelectedMovie.title): :mad::mad:
    15-57-25.png


    Code (Text):
    1.     <control>
    2.         <description>Movie Name</description>
    3.         <id>36</id>
    4.         <type>fadelabel</type>
    5.         <width>925</width>
    6.         <height>24</height>
    7.         <posX>484</posX>
    8.         <posY>74</posY>
    9.         <font>fontB20</font>
    10.         <label>string.trim(#Play.Current.Title)</label>
    11.     </control>
    12.     <control>
    13.         <description>Movie Name</description>
    14.         <id>36</id>
    15.         <type>fadelabel</type>
    16.         <width>925</width>
    17.         <height>24</height>
    18.         <posX>484</posX>
    19.         <posY>174</posY>
    20.         <font>fontB20</font>
    21.         <label>string.trim(#MovingPictures.SelectedMovie.title)</label>
    22.     </control>
    23.     <control>
    24.         <description>Movie Name</description>
    25.         <id>37</id>
    26.         <type>fadelabel</type>
    27.         <width>925</width>
    28.         <height>24</height>
    29.         <posX>484</posX>
    30.         <posY>274</posY>
    31.         <font>fontB20</font>
    32.         <label>!!!</label>
    33.         <visible>string.equals(#Play.Current.Title,#MovingPictures.SelectedMovie.title)</visible>
    34.     </control>
    35.     <control>
    36.         <description>Movie Name</description>
    37.         <id>38</id>
    38.         <type>fadelabel</type>
    39.         <width>925</width>
    40.         <height>24</height>
    41.         <posX>484</posX>
    42.         <posY>374</posY>
    43.         <font>fontB20</font>
    44.         <label>!!!-!!!</label>
    45.         <visible>string.equals(#Play.Current.Title)+string.equals(#MovingPictures.SelectedMovie.title)</visible>
    46.     </control>
    47.  
    [DOUBLEPOST=1370523794][/DOUBLEPOST]
    If #Play.Current.Title = #MovingPictures.SelectedMovie.title Then Control 37 - Visible
    If #Play.Current.Title <> #MovingPictures.SelectedMovie.title Then Control 37 - InVisible
     
    • Agree Agree x 1
  11. wizard123
    • Team MediaPortal

    wizard123 Design Group

    Joined:
    January 24, 2012
    Messages:
    2,499
    Likes Received:
    1,695
    Gender:
    Male
    Occupation:
    genius
    Ratings:
    +2,919 / 11
    Home Country:
    United Kingdom United Kingdom
    What is the result if you use

    <visible>string.contains(#Play.Current.Title, #MovingPictures.SelectedMovie.title)</visible>
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!