Page tree


You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Search


 Recently Updated



 Latest Releases

 MediaPortal 1.20 
            Releasenews | Download
 MediaPortal 2 2.2 
            Releasenews | Download

Purpose

  • Required:  No
  • Type of Change:  Feature
 
Description of Change

This feature adds the possiblity to add watched/unwatched and other icons for thumbnailpanel/filmstrip/coverflow.

New skin properties which are available in listcontrol:


          <showWatchedImage OnFolder="yes" OnlyOnFocus="no">yes</showWatchedImage>
          <WatchedImagePosX>2</WatchedImagePosX>
          <WatchedImagePosY>2</WatchedImagePosY>
          <WatchedImageWidth>20</WatchedImageWidth>
          <WatchedImageHeight>20</WatchedImageHeight>
          <WatchedImageWatchedTexture>Watched.png</WatchedImageWatchedTexture>
          <WatchedImageUnWatchedTexture>UnWatched.png</WatchedImageUnWatchedTexture>
 
          <showFolderStatusImage>yes</showFolderStatusImage>
          <FolderStatusImagePosX>0</FolderStatusImagePosX>
          <FolderStatusImagePosY>0</FolderStatusImagePosY>
          <FolderStatusImageWidth>163</FolderStatusImageWidth>
          <FolderStatusImageHeight>163</FolderStatusImageHeight>
          <FolderStatusImageUserGroupTexture>group.png</FolderStatusImageUserGroupTexture>
          <FolderStatusImageCollectionTexture>collection.png</FolderStatusImageCollectionTexture>
          <FolderStatusImageBdDvdFolderTexture />
          <FolderStatusImageRemoteTexture/>
 
          <showRatingImage UserRating="yes">yes</showRatingImage>
          <RatingImagePosX>182</RatingImagePosX>
          <RatingImagePosY>0</RatingImagePosY>
          <RatingImageWidth>100</RatingImageWidth>
          <RatingImageHeight>100</RatingImageHeight>
          <RatingImageTexturePrefix>Rating</RatingImageTexturePrefix>
          <RatingImageTextureSuffix />
          <RatingUserImageTexturePrefix>RatingUser</RatingUserImageTexturePrefix>
          <RatingUserImageTextureSuffix />
 
          <allowScrolling>yes</allowScrolling>

Hint for Rating properties:

[XMLSkinElement("RatingImageTexturePrefix")] protected string _ratingImageTexturePrefix = string.Empty; // Filename -> Prefix + RatingNumber + Suffix (if Suffix empty then .png)
[XMLSkinElement("RatingImageTextureSuffix")] protected string _ratingImageTextureSuffix = string.Empty; // For Prefix = Rating, Rating = 5, Suffix = White.png -> Rating5White.png
[XMLSkinElement("RatingUserImageTexturePrefix")] protected string _ratingUserImageTexturePrefix = string.Empty; // Filename -> Prefix + UserRatingNumber + Suffix (if Suffix empty then .png)
[XMLSkinElement("RatingUserImageTextureSuffix")] protected string _ratingUserImageTextureSuffix = string.Empty; // For Prefix = Rating, UserRating = 10, Suffix = Red.png -> Rating10Red.png


Additional:

  • Add new properties in FilmStrip and ThumbnailPanel #facadeview.focus.X, #facadeview.focus.Y, #facadeview.focus.Width, #facadeview.focus.Height
  • Add new properties for posX, posY in GUIImage like <posX property="#someproperty">initialValue</posX>
  • Add to new properties X, Y, width, height for Big Icons support in GUIFilmstripControl, GUIThumbnailPanel.


<WatchedImagePosX Big="127">100</WatchedImagePosX>
<WatchedImagePosY Big="127">100</WatchedImagePosY>
<WatchedImagePosWidth Big="300">200</WatchedImagePosWidth>
<WatchedImagePosHeight Big="400">300</WatchedImagePosHeight>


Additional Information and References

Jira Issue:MP1-4839
Related xml(s):
Windows IDs:
Related GUI control:
Author:ajs
Date added:Thu, 15 May 2017


XML/Code Samples

MyVideo:

<control>
<description>Filmstrip view</description>
<type>filmstrip</type>
<dimColor>90ffffff</dimColor>
<id>50</id>
<scrollOffset>3</scrollOffset>
<folderPrefix></folderPrefix>
<folderSuffix></folderSuffix>
<posX>130</posX>
<posY>595</posY>
<width>1700</width>
<height>340</height>
<onup>2</onup>
<ondown>2</ondown>
<onleft>50</onleft>
<onright>50</onright>
<thumbWidth>230</thumbWidth>
<thumbHeight>327</thumbHeight>
<thumbPosX>0</thumbPosX>
<thumbPosY>0</thumbPosY>
<itemWidth>240</itemWidth>
<itemHeight>327</itemHeight>
<textureWidth>230</textureWidth>
<textureHeight>327</textureHeight>
<textYOff>-2000</textYOff>
<imageFolderFocus>-</imageFolderFocus>
<frame>-</frame>
<frameFocus>-</frameFocus>
<background>-</background>
<thumbs flipY="true" diffuse="Thumb_Mask_test.png" mask="filmstrip_mask.png"></thumbs>
<showFrame>yes</showFrame>
<showFolder>no</showFolder>
<showBackGround>no</showBackGround>
<showInfoImage>no</showInfoImage>
<scrollbarBackground>scrollbar_bg_hor.png</scrollbarBackground>
<scrollbarLeft>scrollbar_left_hor.png</scrollbarLeft>
<scrollbarRight>scrollbar_right_hor.png</scrollbarRight>
<scrollbarWidth>717</scrollbarWidth>
<scrollbarHeight>8</scrollbarHeight>
<scrollbarYOff>375</scrollbarYOff>
<keepaspectratio>no</keepaspectratio>
<thumbAnimation effect="zoom" acceleration="-2" start="100,100" reversible="false" end="120,120" center="0,880" time="200">focus</thumbAnimation>
<thumbAnimation effect="zoom" start="120,120" reversible="false" end="100,100" center="0,880" time="100">unfocus</thumbAnimation>
<!-- MP1-4839 -->
<showWatchedImage OnFolder="yes" OnlyOnFocus="no">yes</showWatchedImage>
<WatchedImagePosX>0</WatchedImagePosX>
<WatchedImagePosY>0</WatchedImagePosY>
<WatchedImageWidth>55</WatchedImageWidth>
<WatchedImageHeight>55</WatchedImageHeight>
<WatchedImageWatchedTexture>Watched.png</WatchedImageWatchedTexture>
<WatchedImageUnWatchedTexture>UnWatched.png</WatchedImageUnWatchedTexture>
<showFolderStatusImage>yes</showFolderStatusImage> 
<FolderStatusImagePosX>108</FolderStatusImagePosX> 
<FolderStatusImagePosY>0</FolderStatusImagePosY> 
<FolderStatusImageWidth>122</FolderStatusImageWidth> 
<FolderStatusImageHeight>122</FolderStatusImageHeight> 
<FolderStatusImageUserGroupTexture>group.png</FolderStatusImageUserGroupTexture>
<FolderStatusImageCollectionTexture>collection.png</FolderStatusImageCollectionTexture>
<showRatingImage UserRating="yes">yes</showRatingImage>
<RatingImagePosX>108</RatingImagePosX>
<RatingImagePosY>0</RatingImagePosY>
<RatingImageWidth>122</RatingImageWidth>
<RatingImageHeight>122</RatingImageHeight>
<RatingImageTexturePrefix>Rating</RatingImageTexturePrefix>
<RatingImageTextureSuffix />
<RatingUserImageTexturePrefix>RatingUser</RatingUserImageTexturePrefix>
<RatingUserImageTextureSuffix />
</control>


Screenshots

MyVideo:

 


   

 

  • No labels

This page has no comments.