INTERACT FORUM

Please login or register.

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

Author Topic: [INFO] Customizable Tooltip Capability  (Read 24753 times)

8139david

  • Galactic Citizen
  • ****
  • Posts: 345
Re: [INFO] Customizable Tooltip Capability
« Reply #50 on: May 18, 2016, 05:31:59 am »

I'd like to customize the information shown by tooltip.
I looked at the tread but I don't understand what I should do.
Do I just need to create a user field called Tooltip and modify what's given on some of the posts here?
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: [INFO] Customizable Tooltip Capability
« Reply #51 on: May 18, 2016, 06:25:09 am »

Yes.  Though you might consider Glynor's technique as it allows you to customize tooltips for each type individually in different fields.  Which makes it more compartmentalized and easier to edit.

Brian.
Logged

8139david

  • Galactic Citizen
  • ****
  • Posts: 345
Re: [INFO] Customizable Tooltip Capability
« Reply #52 on: May 18, 2016, 06:26:53 am »

Thanks, that's what I did.
I just wanted to add some information for Movies.

[Tooltip]
Code: [Select]
FirstNotEmpty([Tooltip - Movie])
[Tooltip - Movie]
Code: [Select]
If(IsEqual([Media Sub Type],Movie,1), <font size="140"><b>[Name]<//b> • [Year]<//font>
If(!IsEmpty([Comment]),[Comment], If(IsEqual([File Type],iso,1),[File Type],TVInfo(SizeDisplay)If(!IsEmpty([Compression]),/ •/ [Compression],/ •/ [File Type])))

If(!IsEmpty([Description]),[Description]

,)If(!IsEmpty([Director]),<b>Director:<//b> [Director]
,)If(!IsEmpty([Country]),<b>Country:<//b> [Country]
,)If(!IsEmpty([Actors]),<b>Actors:<//b> [Actors],)
,)

I'm using MC to catalog all my movies, whether on a hard disc or not.
When it's a dvd or a bluray that is not copied on a hard disc, I add it as a comment: dvd or br. Otherwise, I leave the comment field empty. Obviously, I could also use a custom field for that, if I decided to use comments for other information.

And I test whether [File Type]=iso, since in that case, information such as Duration and Compression is not available.
Logged

8139david

  • Galactic Citizen
  • ****
  • Posts: 345
Re: [INFO] Customizable Tooltip Capability
« Reply #53 on: June 05, 2016, 04:13:31 am »

I've added Genre in Tooltip - Movie:

[Tooltip - Movie]
Code: [Select]
If(IsEqual([Media Sub Type],Movie,1), <font size="140"><b>[Name]<//b> • [Year]<//font>
If(!IsEmpty([Comment]),[Comment], If(IsEqual([File Type],iso,1),[File Type],TVInfo(SizeDisplay)If(!IsEmpty([Compression]),/ •/ [Compression],/ •/ [File Type])))

,)If(!IsEmpty([Genre]),<b>Genre:<//b> [Genre]
,)If(!IsEmpty([Description]),<b>Description:<//b> [Description]

,)If(!IsEmpty([Director]),<b>Director:<//b> [Director]
,)If(!IsEmpty([Country]),<b>Country:<//b> [Country]
,)If(!IsEmpty([Actors]),<b>Actors:<//b> [Actors]
,)
Logged

8139david

  • Galactic Citizen
  • ****
  • Posts: 345
Re: [INFO] Customizable Tooltip Capability
« Reply #54 on: June 07, 2016, 02:59:52 am »

I've added Dimensions in Tooltip - Movie:

Code: [Select]
If(IsEqual([Media Sub Type],Movie,1), <font size="140"><b>[Name]<//b> • [Year]<//font>
If(!IsEmpty([Comment]),[Comment], If(IsEqual([File Type],iso,1),[File Type],TVInfo(SizeDisplay)If(!IsEmpty([Compression]),/ •/ [Compression],/ •/ [File Type])If(!IsEmpty([Dimensions]),/ •/ [Dimensions],)))

,)If(!IsEmpty([Genre]),<b>Genre:<//b> [Genre]
,)If(!IsEmpty([Description]),<b>Description:<//b> [Description]

,)If(!IsEmpty([Director]),<b>Director:<//b> [Director]
,)If(!IsEmpty([Country]),<b>Country:<//b> [Country]
,)If(!IsEmpty([Actors]),<b>Actors:<//b> [Actors]
,)
Logged

8139david

  • Galactic Citizen
  • ****
  • Posts: 345
Re: [INFO] Customizable Tooltip Capability
« Reply #55 on: June 23, 2016, 04:38:33 am »

I'd like to enlarge the size of the tooltip window (in order to show more information).
Is that possible, and if so, how?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42443
  • Shoes gone again!
Re: [INFO] Customizable Tooltip Capability
« Reply #56 on: June 23, 2016, 07:37:34 am »

I'd like to enlarge the size of the tooltip window (in order to show more information).
Is that possible, and if so, how?

The tooltip will enlarge to show anything that's in the Tooltip field.

So make a huge field and the tooltip will be huge.
Logged
Matt Ashland, JRiver Media Center

8139david

  • Galactic Citizen
  • ****
  • Posts: 345
Re: [INFO] Customizable Tooltip Capability
« Reply #57 on: June 23, 2016, 07:56:43 am »

In fact, there is an arbitrary limit to the size of the tooltip window, see attached pics (one where Tooltip is defined, one where it is not).
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42443
  • Shoes gone again!
Re: [INFO] Customizable Tooltip Capability
« Reply #58 on: June 24, 2016, 10:09:38 am »

In fact, there is an arbitrary limit to the size of the tooltip window, see attached pics (one where Tooltip is defined, one where it is not).

Coming in the first builds of MC22:
Changed: Tooltips can be 80% of the screen height instead of 50%.
Logged
Matt Ashland, JRiver Media Center

8139david

  • Galactic Citizen
  • ****
  • Posts: 345
Re: [INFO] Customizable Tooltip Capability
« Reply #59 on: June 24, 2016, 10:17:18 am »

Nice, thanks!
What about screen width? Also authorizing 80% would allow the tooltip to display much more information.
Indeed, allowing users to choose these percentages would be fantastic.
Logged

8139david

  • Galactic Citizen
  • ****
  • Posts: 345
Re: [INFO] Customizable Tooltip Capability
« Reply #60 on: June 25, 2016, 01:30:30 pm »

To accomodate new information, I have modified my tooltips (see attached pics):

Tootltip
Code: [Select]
FirstNotEmpty([Tooltip - Video])
Tooltip - Video
Code: [Select]
If(IsEqual([Media Type],Video,1), <font size="140"><b>delimit([Name],/ ,)<//b>delimit([Year],/ ,•/ )if(!isequal([Original Title],[Name],1), delimit([Original Title],,•/ ),)<//font>
delimit([Runtime],/ mn/ •/ ,)delimit(firstnotempty([Comment],[File Type]),/ ,)delimit([Dimensions],/ ,•/ )if(isempty([Stacked]), delimit([File Size],,•/ ),)

If(!IsEmpty([Genre]),<b>Genre:<//b> [Genre]
,)If(!IsEmpty([Description-]),<b>Description:<//b> [Description-]

,)If(!IsEmpty([Director]),<b>Rιalisateur:<//b> if(isequal(jakozh, [Original Language], 8), [Director Sort], [Director])
,)If(!IsEmpty([Country]),<b>Pays:<//b> [Country]
,)If(!IsEmpty([Actors]),<b>Acteurs:<//b> firstnotempty([ActorAsCharacter],[Actors])
,),)

In particular, the field Description_ stores a description of the movie in its original language, and Description- is calculated as follows since I'm French:

Description-
Code: [Select]
if(isequal([Original Language],fr,1), firstnotempty([Description_],[Description]), firstnotempty([Description],[Description_]))
See this post about getting information from TMDB:
http://yabb.jriver.com/interact/index.php?topic=100449.msg735485#msg735485
Logged
Pages: 1 [2]   Go Up