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 163186 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Re: JScript Panel

Reply #1000
Oh poop. That bug has only been there since the first version of v3 so about 6 months. :/

I ineptly used 0 instead of the x/y values  :-X



Re: JScript Panel

Reply #1002
Thank you! Now it works just fine.


Re: JScript Panel

Reply #1004
Anyone using smooth browser should make sure that update to fb2k v2 Beta 13 and component version 3.1.14 released yesterday. Previously I had to add a hacky workaround to prevent refreshing on playback statistics updates but that only worked for playcount updates. Now there is proper code which suppresses refresh on all playback statistics updates and updates from any other components that utilise DB functionality from the SDK.

This is documented here for anyone writing their own scripts...

https://marc2k3.github.io/jscript-panel/docs/callbacks/#on_library_items_changedhandle_list-fromhook

 

Re: JScript Panel

Reply #1005
Message for Marc2K3:

Sorry if the translation is not well understood.I am Spanish and use Google Translator

I have installed the version V-2_64-bit + columns IU 2.0.0 ALPHA. 5. Most commements have not been able to install them as there is no 64 -bit version.

That is why I have installed JScript Panel 3 to replace the foo_uie_albumart component 0.2.7.1 by albumart.js

And I have the following problem:

Albumart.js paints the cover defined in preferences \ advanced \ display \ album art \ -> in my case "Prefer embedded" (image1)

I would like albumart.js to give the possibility of choosing to paint the external or embedded cover.

As seen in the image2 (Foobar 32 bit) the album art paints the external and the playlist view paints the embedded (image2).

Is this possible? If it was not possible, I would like the code linen to indicate where the cover load is produced to modify it in .js that corresponding.

Re: JScript Panel

Reply #1006
The sample you mention has always respected the main preferences and won't be changed. It's explained in great detail here...

https://marc2k3.github.io/jscript-panel/gallery/album-art/

If you want to ignore the Preferences, you need to write your own script that doesn't use the album art methods and uses the generic utils.LoadImage function based on whatever path/title formatting you like.


Re: JScript Panel

Reply #1008
Hi :)
JScript Panel 3 3.1.15 (2022-11-25)
Font, Color of Text Dispaly has become strange
https://i.imgur.com/fDWDETk.png

Preference > Columns UI > Colours and fonts > Item details > Font: Yu Gothic UI
Text Display > Custom text

[%title%$crlf()]
$font(Yu Gothic UI,16,600,2,0,0)$rgb(220,40,0)
[%artist%$crlf()]
$font()$rgb()
[%album%$crlf()]
[ '('%date%')'$crlf()]
[Track Number: %tracknumber%][ / %totaltracks%]$crlf()

JScript Panel 3 3.1.14
https://i.imgur.com/ypNnAIU.png

Thanks
SHURE SRH1840, SENNHEISER HD660S, Beyerdynamic DT 1990 PRO, HIFIMAN HE5se, Ultrasone Performance 880, AKG K712 PRO, Bowers & Wilkins P7, SONY MDR-1AM2, Bose QuietComfort 45, SONY WH-1000XM3 (made a Upgrade/Balanced Cable by myself) Shall I write more?

Re: JScript Panel

Reply #1009
Sorry. I fixed it by replacing the component several times.
It's strange.  :o
SHURE SRH1840, SENNHEISER HD660S, Beyerdynamic DT 1990 PRO, HIFIMAN HE5se, Ultrasone Performance 880, AKG K712 PRO, Bowers & Wilkins P7, SONY MDR-1AM2, Bose QuietComfort 45, SONY WH-1000XM3 (made a Upgrade/Balanced Cable by myself) Shall I write more?

Re: JScript Panel

Reply #1010
Preference > Columns UI > Colours and fonts > Item details > Font: Yu Gothic UI

This has zero effect. The default font name when using CUI comes from Common (list items). The font weight / size from there are ignored. The weight will always be default (400) and the default size usually comes from the right click menu on text/list based panels.

If you want to override it for your whole text display panel, you need to use $font at the start and never use $font() - always revert to the original $font statement after styling a custom bit of text/new line.

Re: JScript Panel

Reply #1011
> Preference > Columns UI > Colours and fonts > Item details > Font: Yu Gothic UI
I wrote something irrelevant. orz

Thank you for your clear explanation.

Thanks again for your help.
SHURE SRH1840, SENNHEISER HD660S, Beyerdynamic DT 1990 PRO, HIFIMAN HE5se, Ultrasone Performance 880, AKG K712 PRO, Bowers & Wilkins P7, SONY MDR-1AM2, Bose QuietComfort 45, SONY WH-1000XM3 (made a Upgrade/Balanced Cable by myself) Shall I write more?

Re: JScript Panel

Reply #1012
I've updated my github links.

docs are now here: https://jscript-panel.github.io/docs/
releases are now here: https://github.com/jscript-panel/release/releases

The old links will live on for a few hours before I nuke them!  :o