Skin engine bug? (1 Viewer)

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    15,412
    10,269
    Kyiv
    Home Country
    Ukraine Ukraine
    Why control 37 and 38 visible?

    13-41-41.png

    Code:
    	<control>
    		<description>Movie Name</description>
    		<id>36</id>
    		<type>fadelabel</type>
    		<width>925</width>
    		<height>24</height>
    		<posX>484</posX>
    		<posY>74</posY>
    		<font>fontB20</font>
    		<label>string.trim(#Play.Current.Title)</label>
    	</control>
    	<control>
    		<description>Movie Name</description>
    		<id>36</id>
    		<type>fadelabel</type>
    		<width>925</width>
    		<height>24</height>
    		<posX>484</posX>
    		<posY>174</posY>
    		<font>fontB20</font>
    		<label>string.trim(#MovingPictures.SelectedMovie.title)</label>
    	</control>
    	<control>
    		<description>Movie Name</description>
    		<id>37</id>
    		<type>fadelabel</type>
    		<width>925</width>
    		<height>24</height>
    		<posX>484</posX>
    		<posY>274</posY>
    		<font>fontB20</font>
    		<label>!!!</label>
    		<visible>string.equals(#Play.Current.Title,#MovingPictures.SelectedMovie.title)</visible>
    	</control>
    	<control>
    		<description>Movie Name</description>
    		<id>38</id>
    		<type>fadelabel</type>
    		<width>925</width>
    		<height>24</height>
    		<posX>484</posX>
    		<posY>374</posY>
    		<font>fontB20</font>
    		<label>!!!-!!!</label>
    		<visible>eq(#Play.Current.Title,#MovingPictures.SelectedMovie.title)</visible>
    	</control>
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    Strange, I don't know why. Is eq for strings or numbers?

    Try string.equals(....) instead of eq(....)
     
    Last edited:

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    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>
     

    wizard123

    Retired Team Member
  • Premium Supporter
  • January 24, 2012
    2,569
    2,680
    Home Country
    United Kingdom United Kingdom
    Are you trying to make controls 37 and 38 invisible ?
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,412
    10,269
    Kyiv
    Home Country
    Ukraine Ukraine
    • Thread starter
    • Moderator
    • #9
    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:
    	<control>
    		<description>Movie Name</description>
    		<id>36</id>
    		<type>fadelabel</type>
    		<width>925</width>
    		<height>24</height>
    		<posX>484</posX>
    		<posY>74</posY>
    		<font>fontB20</font>
    		<label>string.trim(#Play.Current.Title)</label>
    	</control>
    	<control>
    		<description>Movie Name</description>
    		<id>36</id>
    		<type>fadelabel</type>
    		<width>925</width>
    		<height>24</height>
    		<posX>484</posX>
    		<posY>174</posY>
    		<font>fontB20</font>
    		<label>string.trim(#MovingPictures.SelectedMovie.title)</label>
    	</control>
    	<control>
    		<description>Movie Name</description>
    		<id>37</id>
    		<type>fadelabel</type>
    		<width>925</width>
    		<height>24</height>
    		<posX>484</posX>
    		<posY>274</posY>
    		<font>fontB20</font>
    		<label>!!!</label>
    		<visible>string.equals(#Play.Current.Title,#MovingPictures.SelectedMovie.title)</visible>
    	</control>
    	<control>
    		<description>Movie Name</description>
    		<id>38</id>
    		<type>fadelabel</type>
    		<width>925</width>
    		<height>24</height>
    		<posX>484</posX>
    		<posY>374</posY>
    		<font>fontB20</font>
    		<label>!!!-!!!</label>
    		<visible>string.equals(#Play.Current.Title)+string.equals(#MovingPictures.SelectedMovie.title)</visible>
    	</control>
    [DOUBLEPOST=1370523794][/DOUBLEPOST]
    Are you trying to make controls 37 and 38 invisible ?
    If #Play.Current.Title = #MovingPictures.SelectedMovie.title Then Control 37 - Visible
    If #Play.Current.Title <> #MovingPictures.SelectedMovie.title Then Control 37 - InVisible
     

    wizard123

    Retired Team Member
  • Premium Supporter
  • January 24, 2012
    2,569
    2,680
    Home Country
    United Kingdom United Kingdom
    What is the result if you use

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

    Users who are viewing this thread

    Top Bottom