Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: JScript Panel (Read 469802 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: JScript Panel

Reply #1700
Follow the same instruction to download the file.

Now hold SHIFT and scroll your mouse.

Re: JScript Panel

Reply #1701
JScript Panel 3.5.6 module (Last.fm Bio + Images by marc2003) crashes when it cannot find an image for the artist.

\user-components\foo_jscript_panel3\samples\js\thumbs.js
Line: 106, Col: 4

this.blurred_images[this.image_index] = this.images[this.image_index].Clone();



no crash
//         this.blurred_images[this.image_index] = this.images[this.image_index].Clone();
//         this.blurred_images[this.image_index].StackBlur(120);


I would add that I always have the problem of the panel not being updated when the tab is changed.

The problem does not occur with foo_jscript_panel3-3.3.29



And also this:
https://hydrogenaud.io/index.php/topic,110499.msg1047095.html#msg1047095



Re: JScript Panel

Reply #1704
Hello,

Is it possible to choose to completely turn off blur in thumbs? That is, go back to the previous version.

Another question is it possible to align the image to the top and bottom of the panel? What I mean is, as I marked with arrows in the screenshot, so that the above and below are covered while maintaining the proportions:

https://imgbox.com/pWr9YiKL



Re: JScript Panel

Reply #1707
So looking at that, you've not even tried the mouse wheel option I added. What a waste of time that was.

Highest vs lowest...



Don't like it? Old versions are here...

https://github.com/jscript-panel/release/releases/tag/legacy




No its not like that. There are simply skins in which, in my opinion, the photo with blur looks worse and the background matched to the color of the skin is better, as here:

with blur: https://imgbox.com/Mckun8Rd

without blur: https://imgbox.com/JNmiCybA

The function of reducing and increasing the blur intensity is absolutely ok and it fits in some skins.
In my opinion, it should be an option to turn blur on/off.

Re: JScript Panel

Reply #1708
Hello,

Is it possible to choose to completely turn off blur in thumbs? That is, go back to the previous version.

Another question is it possible to align the image to the top and bottom of the panel? What I mean is, as I marked with arrows in the screenshot, so that the above and below are covered while maintaining the proportions:

https://imgbox.com/pWr9YiKL
While Mark decides whether to activate or deactivate the transparency I can recommend the following:

Press Shift+windows right click on the cover. In the context menu select Edit Properties
The value of the mouse wheel ranges from 0,2 to 0,8 but you can modify it in the item 2K3.THUMBS.BLUR.OPACITY type the value 0,001.
The Background should be set to 0, 0, 0 so that the transparency disappears.

Re: JScript Panel

Reply #1709
Hello,

Is it possible to choose to completely turn off blur in thumbs? That is, go back to the previous version.

Another question is it possible to align the image to the top and bottom of the panel? What I mean is, as I marked with arrows in the screenshot, so that the above and below are covered while maintaining the proportions:

https://imgbox.com/pWr9YiKL
While Mark decides whether to activate or deactivate the transparency I can recommend the following:

Press Shift+windows right click on the cover. In the context menu select Edit Properties
The value of the mouse wheel ranges from 0,2 to 0,8 but you can modify it in the item 2K3.THUMBS.BLUR.OPACITY type the value 0,001.
The Background should be set to 0, 0, 0 so that the transparency disappears.

Thank you!


Re: JScript Panel

Reply #1711
3.6.0-Beta.3

https://github.com/jscript-panel/release/releases/tag/beta

This does break the included Last.fm Bio + Image script for existing users. Simply use the samples button to update it.

This update adds a new gr.WriteText2 method which supports $font parsing natively. Because of that, I removed DrawStyledText from helpers.txt. If this breaks any custom script, a simple replace is all that is needed. See here for an example..

https://github.com/jscript-panel/component/commit/b70153819683325c839dcb899bf9d39a2febd0f5

Full changes:

https://jscript-panel.github.io/docs/changes/



Re: JScript Panel

Reply #1714
Same.

foobar2000 v2.2 preview 2024-07-07 x64
JScript Panel 3 3.6.0
Text Display:
Has there been a change in the country flag?

SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, HIFIMAN ANANDA, Bowers & Wilkins P7, FiiO FT5, FiiO FT1 Pro, 水月雨 (MOONDROP) 空鳴 - VOID, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: JScript Panel

Reply #1715
Before 3.6.0, all $font/$rgb support was a complete mish-mash of Javascript/C++ and now it's basically pure C++ and there should be no observable differences.

Of course there could be still be bugs and I'll fix them if I can. But I cannot reproduce this...



Post your title format please.




Re: JScript Panel

Reply #1716
it is!  ;)
$rgb(226,226,226)
$font(Yanone Kaffeesatz,16,500)
[%artist% ] [$font(Twitter Color Emoji,18)$country_flag($meta(country,$sub($meta_num(country),1)))$font(@Malgun Gothic) ]$crlf()

Re: JScript Panel

Reply #1717
Both were no good. No change. ort

%artist% $font(Twitter Mozzila,18)$country_flag(%country%)

[%artist% ] [$font(Twitter Color Emoji,18)$country_flag($meta(country,$sub($meta_num(country),1)))$font(@Malgun Gothic) ]$crlf()
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, HIFIMAN ANANDA, Bowers & Wilkins P7, FiiO FT5, FiiO FT1 Pro, 水月雨 (MOONDROP) 空鳴 - VOID, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)


Re: JScript Panel

Reply #1719
Twemoji.Mozilla.ttf v0.7.0 is already installed.
----
Ah, I did it. Thank you.
$font(Twemoji Mozilla,16)$country_flag(%country%)$crlf()
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, HIFIMAN ANANDA, Bowers & Wilkins P7, FiiO FT5, FiiO FT1 Pro, 水月雨 (MOONDROP) 空鳴 - VOID, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: JScript Panel

Reply #1720
Hi Marc,

with 3.6.0 it seems, as if it's not possible anymore to specify a fixed colour with gr.WriteTextLayout, if there are $rgb codes included in the text.

If this behaviour is intentional, is there a way to get back the 'old' functionality, so that it is possible again to have a dropshadow in the text display panel?

Until now, it was possible by creating 2 different text layouts, writing one with the colour from $rgb codes and the other one with e.g. RGB(0,0,0).

Thanks!

Re: JScript Panel

Reply #1721
You can't change the text of a text layout after it has been created so it's quite intentional that you can't override colours set with $rgb inside that text.

Code for stripping $rgb from text is still present in helpers.txt so you can use that for creating a second layout without it.

Code: [Select]
var clean_text1 = StripCode(text, chars.etx); // strip $rgb
var clean_text2 = StripCode(text, chars.bel); // strip $font
var clean_text3 = StripCodes(text); // strip $rgb and $font

edit: there is a bug when not using $rgb and passing a stringified array of colours via gr.WriteTextLayout's colour arg. Colours are locked in there when they shouldn't be. I'll look at fixing that.

Re: JScript Panel

Reply #1722
Thanks, I was only aware of StripCodes but not the other two variants - works again!

Re: JScript Panel

Reply #1723
3.6.1

https://github.com/jscript-panel/release/releases

https://jscript-panel.github.io/docs/changes/

This fixes the gr.WriteTextLayout bug with a stringified array of colours mentioned above. Not likely to affect many people.

I've also added fb.EnableAdvancedLogging.

https://jscript-panel.github.io/docs/namespaces/fb/#fbenableadvancedlogging

Only use if absolutely required. It might be a bit noisy reporting errors that are usually silenced.

Credit goes to musicmusic for this code which I stole borrowed from here. There is a new license for this in the licenses folder.

Re: JScript Panel

Reply #1724
@marc2k3

Got a request. Would it be possible to to have a thumbs alternative where, instead of choosing pixelsize for the thumbnails, one could specify how many thumbnails should fit horizontally or vertically (mostly applicable to grid mode to not have any gap on the right but neatly filled edge to edge)?
If you you don't see any value in it, don't bother, I can probably recreate this again in your current version (last time I did that was from way back in an SMP panel) but I see the code has changed considerably and coding don't go as easy anymore after having had a mild stroke as it did back then.

And boy did I have a hard time finding out how to get at the scripts properties screen.... finally found the needed hot-key mentioned way back in the thread... shift _PLUS_ WinKey... would not have guessed that one.



Beginning to slowly get up to speed with the latest developments around fb2k (left it at 1.6 I think, when the original JScript Panel was still a thing even if no longer developed).

And for a bit OT, I saw several times pictures of layoutsI though in this thread, and I've been trying to find out where to get those...
One I got the name for, it's DarkOne4, but the version I found I can't get to work, most panels don't do anything. @Defender‍ ? Where did you get yours from?

The other layout I could have sworn I saw images for in this thread several times, but must have been someplace else. It's a layout with the Text Display + Album Art + Seekbar + Buttons in the right panel and in the left panel album art with a cd image half visible, below that a VU meter on hte left and one on the right and forgot what was between them...