INTERACT FORUM

More => Old Versions => JRiver Media Center 30 for Windows => Topic started by: SkGe on February 21, 2023, 12:41:42 pm

Title: Expression tooltip
Post by: SkGe 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.
(https://i.gyazo.com/6c5fc0c806d4b9b75cb108f4161eff5e.png)
(https://i.gyazo.com/c50dc6c4cf50b24728868f80b5981ed8.png)
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.
Title: Re: Expression tooltip
Post by: lepa 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>
Title: Re: Expression tooltip
Post by: zybex on February 21, 2023, 01:48:11 pm
Right-align is not available in MC, so you can only do it with monospace fonts.