Skin engine bug? (1 Viewer)

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    11,846
    6,700
    Kyiv
    Ukraine Ukraine
    Country flag
    • Thread starter
    • Moderator
    • #1
    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,749
    New Zealand
    New Zealand New Zealand
    Country flag
    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,749
    New Zealand
    New Zealand New Zealand
    Country flag
    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,543
    2,615
    United Kingdom United Kingdom
    Country flag
    Are you trying to make controls 37 and 38 invisible ?
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    11,846
    6,700
    Kyiv
    Ukraine Ukraine
    Country flag
    • 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,543
    2,615
    United Kingdom United Kingdom
    Country flag
    What is the result if you use

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

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    ajs [solved] 4935: Add string.replace function to Skin engine MediaPortal 1 10
    ajs 4911: Add properties support to TextColor and TextColorNoFocus MediaPortal 1 5
    Rob Hexenmeister Quick question - skinning MyPics General Support 7
    ajs [Info] Pre 0.7 Beta - MPExtended, WebMP, Bootstrap skin by ajs - Hard way MPExtended 348
    S Touchscreen skin? MediaPortal 1 Talk 6
    azzuro [fixed] 5011: Version label in Splash screen - pos, size from skin MediaPortal 1 61
    catavolt [WiP] When changing theme in my skins, I always get this error message in logs MediaPortal 1 9
    joecrow MultiShortcut Plugin (Uavailable) in DWHD skin General Support 58
    V Skin With Menu Editor MediaPortal 1 Skins 13
    wizard123 New Skin Template ? MediaPortal 2 8
    Rob Hexenmeister [solved] Latest Media Handler - skinning buttons Fanart Handler 19
    CyberSimian [solved] MP1-4976 Built-in skin variables for current date MediaPortal 1 8
    Mr6686 [solved] Titan skin broken since update to 1.23 Installation, configuration support 6
    doskabouter Skin question Skins and Plugins Installer (MPEI) 1
    Y Titan Skin unter 1.23 nicht mehr so schön Allgemeines Supportforum 1
    framug 1.22.0 BasicHome Editor settings for DefaultWide HD skin not kept when update 1.22 3
    catavolt [solved] FanartHandler - Skin - Holiday and Spotlight support Fanart Handler 5
    ajs [fixed] 4936 - Strange behavior of the font in the skin MediaPortal 1 35
    ajs [solved] Latest Media Handler - Skin settings - Custom latests items number Fanart Handler 27
    Rob Hexenmeister [solved] Latests Media Handler - Skinning an updating window or control Fanart Handler 26
    T Skin Wechsel Installationsprobleme? 1
    JJDoherty Designing & implementing a new skin... Skins and Design 8
    D [fixed] Image browser crashing in Folder View (WMC skin) 2.2 Archive 10
    CyberSimian Do skin variables have global scope? MediaPortal 1 16
    N Skins to download separately MediaPortal 1 Talk 5
    Similar threads

























    Top Bottom