- Moderator
- #1
In MediaPortal 1.1.0 you can make use of the skin string.equals() function to display a border corresponding to the aspect ratio of the thumbnail e.g.
#TVSeries.Episode.EpImgFlag will be '2' if widescreen
Code:
<!--Fullscreen/Invalid Image -->
<control>
<description>Episode picture BG</description>
<type>image</type>
<id>0</id>
<posX>1480</posX>
<posY>310</posY>
<width>420</width>
<height>320</height>
<texture>tvseries_episode_bg.png</texture>
<visible>Control.IsVisible(1239)+!string.equals(#TVSeries.Episode.EpImgFlag,2)</visible>
<keepaspectratio>yes</keepaspectratio>
</control>
<!--Widescreen Image -->
<control>
<description>Episode picture BG</description>
<type>image</type>
<id>0</id>
<posX>1480</posX>
<posY>344</posY>
<width>420</width>
<height>252</height>
<texture>tvseries_episode_bg.png</texture>
<visible>Control.IsVisible(1239)+string.equals(#TVSeries.Episode.EpImgFlag,2)</visible>
<keepaspectratio>no</keepaspectratio>
</control>
#TVSeries.Episode.EpImgFlag will be '2' if widescreen