- Thread starter
- Moderator
- #51
I fixed the star rating problem, use this code for the fullscreen fanart version
Code:<control> <description>Current Track Star Rating</description> <type>imagelist</type> <id>1337</id> <posX>150</posX> <posY>687</posY> <textureWidth>35</textureWidth> <textureHeight>35</textureHeight> <subitems> <subitem>white-star-outline32.png</subitem> <subitem>white-star-filled32.png</subitem> </subitems> <orientation>horizontal</orientation> <align>left</align> <imagesToDraw>5</imagesToDraw> <percentage>#Play.Current.Rating</percentage> <visible>Player.HasMedia</visible> </control>
I think there must be a bug in mediaportal because if you don't use the percentage tags, the rating starts at (1,3,5,7,9,11) but then jumps down to 1, within 1 sec of playing the next track.
This would work, well it requires #percentage as this is the way the stars should be done..Problem - imagelist does not scale, what looks good on 1280x720 screen will move about on a 1920x1080 or 1366x768 (might have that last res wrong).
For fullscreen we might away with going back to this control but I know this does not work on the non-fullscreen versions. I run my dev systems windowed at 1280x720 and then test my moving to my live HTPC on a fullHD (1920x1080) screen...in this case the tracklkist stars stay where they but personal rating stars go walkabout!
The idea for using mstar#Play.Current.Rating in an image tag is because this scales...but as you say there maybe is a bug in that as it is only set when you first start playing a track but is not set on track changes.
Stuck between and rock and hard place with this....will do some more investigation..suggestions welcome from all..
Cheers