INTERACT FORUM

More => Old Versions => JRiver Media Center 24 for Windows => Topic started by: zybex on March 17, 2019, 05:22:35 pm

Title: Movie tooltip customization
Post by: zybex on March 17, 2019, 05:22:35 pm
Hi,
I've been playing with customizing the Movie tooltip displayed by JRiver when we hover for a couple of seconds over a file. The method is described on this old thread (https://yabb.jriver.com/interact/index.php/topic,103042.msg715207.html#msg715207), and I thought it would be interesting to have a thread to share our different tooltip expressions. Please share your expressions, we can learn some tricks from each other  :)

Here's my current one:
Code: [Select]
If(IsEqual([Media Sub Type],Movie,1),
<font size="200"><b>[Name]<//b> If(!IsEmpty([Year]),/([Year]/),)<//font>If(!IsEmpty([Original Title]),<font size="125">
A.K.A. <b>'[Original Title]'<//b><//font>,)
<font size="125">listbuild(1,/ •/ ,[MPAA Rating], replace([Genre],;,/,),Size())<//font>
listbuild(1,/#
#/,If(!IsEmpty([IMDb Rating]),<font color="#FFFF00" size="150">replace(padnumber(0,left([IMDb Rating],1)),0,★)replace(padnumber(0,Math(10-int([IMDb Rating]))),0,☆)<//font>  <font size="125">[IMDb Rating]<//font>,),
If(!IsEmpty([Awards]),<i>
[Awards]<//i>,),
/ ,
If(!IsEmpty([Director]),<b>Director: <//b> replace([Director],;,/,),),
If(!IsEmpty([Actors]),<b>Actors: <//b> replace([Actors],;,/,),),
If(!IsEmpty([Country]),<b>Country:<//b> replace([Country],;,/,),),
If(!IsEmpty([Language]),<b>Language:<//b> replace([Language],;,/,),))

[Description]
,)

Result:
(https://github.com/zybexXL/MCRatings/raw/master/Screenshots/JRTooltip.png)

Notes on the expression:
- the stars are unicode characters
- controlling whitespace is the trickiest part. I use listbuild() to connect multiple optional lines
- to force a newline, I use in one case /# newline #/ -- a literal newline
- another way to add a newline is seen on the [awards] case, I add the newline after < i >, since whitespace after commas is ignored

Thanks,
zybex