INTERACT FORUM

Please login or register.

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

Author Topic: Expression tooltip  (Read 445 times)

SkGe

  • Galactic Citizen
  • ****
  • Posts: 433
Expression tooltip
« on: February 21, 2023, 12:41:42 pm »

Hello.
For a few days I'm trying to create a expression where I can see the art album with the title underneath and the reviews where are available, and so far I fail to achieve this one. Because of so many attempts I'm thinking the best way to achieve this one is to ask for an feature or some sort on this matter.
Right now the expression tooltip has a max width and height of 892x1728. Because of this size is not possible to adjust the title name on one line. Trying different ways to adjust the length of title to show on the tooltip is hard because every title for each album has different lenghts.
One example is this:
Using this expression
Code: [Select]
ifelse(isequal([albums ], replace(replace([albums ],//,_),/,/,), 2), <img src="C:\Jiver\Artwork\Albums\replace(replace(replace(replace(replace([albums ], ?, _), :, _), *, _),//,_),",_).jpg" size="1000x1000">)
ifelse(compare([am095],=,088),[am094]<font valign="middle">Repeat(/ , 100)Repeat(/ , 27)[album ratings]
)
, where both albums have the same length (88) they show different results.


I know using fonts with different variable dimensions is not an option and that mean to opt for one monobloc font, which I don't need to use it. Now to be able to achieve to have one text on the left, middle or right, is to have the options in expression to be position the way it is on thumbnail views. There you have 3 options (left, middle, right) and doesn't matter the size of the thumbnail.
Another thing is the repeat() has a limit of 100 units, and after that is not repeating, but only add additional information.
If someone have a better understanding and is able to help me out will be a blessing, if not maybe the master behind the scene can be helpful.
Thanks.
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2033
Re: Expression tooltip
« Reply #1 on: February 21, 2023, 01:39:22 pm »

Probably didn't understand your goal but cooked something like this:

Code: [Select]
Save(Math(37 - Length([Album]) - [Rating]), v_repeat)/
<img src="[Image File]" width="500">
<font face="Hack" size="180">[Album]Repeat(/ ,[v_repeat])Ratingstars()<//font>
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2618
Re: Expression tooltip
« Reply #2 on: February 21, 2023, 01:48:11 pm »

Right-align is not available in MC, so you can only do it with monospace fonts.
Logged
Pages: [1]   Go Up