INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Movie tooltip customization  (Read 961 times)

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2619
Movie tooltip customization
« 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, 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:


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
Logged
Pages: [1]   Go Up