|
|
|
![]() |
|
Strumenti |
![]() |
#6361 |
Senior Member
Iscritto dal: May 2005
Città: Trieste
Messaggi: 3424
|
Quote:
__________________
CASE: Antec Solo II | MOBO: Asus Sabertooth Z87 | CPU: Intel i7 4790K | COOLER: Noctua NH-D15 | RAM: G Skill 16Gb | GPU: nVidia GTX-1070 G1 | ROUTER: AVM7530 PSU: Seasonic P520 | AUDIO: Asus STX II | STORAGE: HDD ST2000DM001 + SSD 850 PRO 512Gb + DVDRAM LG GH24NS50 | LCD: Sony SDM-X72 | TV: Sony 32W4000 AMP: Marantz PM-KI Pearl | SPKR: Vienna Mozart Grand | DAC: Xantech VDA51 | CABLE: WW Platinum Electra - Tasker RG59 - Chord Clearway - VDH Snowline
|
![]() |
![]() |
![]() |
#6362 |
Junior Member
Iscritto dal: Dec 2023
Messaggi: 23
|
|
![]() |
![]() |
![]() |
#6363 |
Senior Member
Iscritto dal: Feb 2019
Messaggi: 402
|
profile\Apache\Run Service\buttons
profile\Apache\Run Service\js JS3 - Configure - Tools - Import profile\Apache\Run Service\js Text Display + Album Art + Run Service Text Display + Album Art - Text Right + Run Service Run Service Bar files / scripts / images in link: https://hydrogenaud.io/index.php/top...tml#msg1048217 |
![]() |
![]() |
![]() |
#6364 |
Junior Member
Iscritto dal: Dec 2023
Messaggi: 23
|
|
![]() |
![]() |
![]() |
#6365 | |
Senior Member
Iscritto dal: Feb 2019
Messaggi: 402
|
Quote:
Text Display + Album Art - Text Right + Run Service Text Reader. Plugin DR Meter: https://www.foobar2000.org/components/view/foo_dr_meter + js3 sample Text Reader.txt in Text Reader / Custom Path : $directory_path(%path%)\foo_dr.txt |
|
![]() |
![]() |
![]() |
#6366 | |
Junior Member
Iscritto dal: Dec 2023
Messaggi: 23
|
Quote:
|
|
![]() |
![]() |
![]() |
#6367 |
Senior Member
Iscritto dal: Feb 2019
Messaggi: 402
|
https://github.com/jscript-panel/rel...ses/tag/latest
foo_jscript_panel3-3.6.2.fb2k-component in folder: foobar2000\profile\user-components\foo_jscript_panel3\samples\ you have Text Reader.txt |
![]() |
![]() |
![]() |
#6368 | |
Junior Member
Iscritto dal: Dec 2023
Messaggi: 23
|
Quote:
gr.WriteText(tfo.title.Eval(), small_font, RGB(255,249,212), 20 , 200, 1000, 150, 0, 0); gr.WriteText(tfo.artist.Eval(), normal_font, RGB(70,85,71), 20 , 275, 1000, 50, 0, 0); gr.WriteText(tfo.date.Eval(), normal_font, RGB(70,85,71), 20 , 295, 1000, 50, 0, 0); gr.WriteText(tfo.album.Eval(), normal_font, RGB(70,85,71), 70 , 295, 1000, 50, 0, 0); gr.WriteText(tfo.samplerate.Eval() + ', ' + tfo.bitspersample.Eval() + ', ' + tfo.bitrate.Eval(), normal_font, RGB(70, 85, 71), 20, 320, 1000, 50, 0, 0); Why can the panel display ,title, artist, date. However, album and amplerate.Eval() + ', '+ tfo.bitspersample.Eval() + ',' + tfo.bitrat cannot be displayed. Can you help me? Thank you! |
|
![]() |
![]() |
![]() |
#6369 | |
Senior Member
Iscritto dal: Feb 2019
Messaggi: 402
|
Quote:
|
|
![]() |
![]() |
![]() |
#6370 |
Senior Member
Iscritto dal: Feb 2019
Messaggi: 402
|
Text Display + Album Art + Convert Bar Codec & App
![]() https://hydrogenaud.io/index.php/top...tml#msg1048476 |
![]() |
![]() |
![]() |
#6371 | |
Junior Member
Iscritto dal: Dec 2023
Messaggi: 23
|
Quote:
/// ==PREPROCESSOR== // @name "Spin Disc 2 (Art Cover + Spin Disc)" // @author "marc2003" // Liste des radios ==> Internet Radio // @optimization "Apache" // Modified by jacob91 // @import "%fb2k_component_path%helpers.txt" // ==/PREPROCESSOR== var blur_img = null; var radius = 80 var tfo = { artist : fb.TitleFormat('%artist%'), lfm_loved : fb.TitleFormat('$if2(%lfm_loved%,0)'), title : fb.TitleFormat('%title%'), date : fb.TitleFormat(('%date%')), playback_time : fb.TitleFormat('[%playback_time%]'), length : fb.TitleFormat('$if2(%length%,LIVE)'), }; var Backgr = utils.LoadImage(fb.ComponentPath + 'samples\\images\\vinyl.jpg'); var Vinyl_Circle = utils.LoadImage(fb.ComponentPath + 'samples\\images\\mask2.png'); if (plman.GetPlaylistSelectedItems(plman.ActivePlaylist)){ } var i = 0; var angle = 0; var angle_circle = 0; var angle_arm = 0; var Vinyl_Speed = 2.5; //var normal_font = CreateFontString('Segoe UI', 12); var small_font = CreateFontString('Segoe UI', 38 , true); var normal_font = CreateFontString('Segoe UI', 18); var verysmall_font = CreateFontString('fontawesome', 6 , true); // Dimensions var ratio = 1902/1458; var list_number = plman.GetPlaylistSelectedItems; if(fb.IsPlaying) { fb.GetNowPlaying(); if (plman.GetPlaylistSelectedItems != list_number){ console.log('spin disc'); } window.SetInterval(function () { if (!fb.IsPlaying || fb.IsPaused) return; angle += Vinyl_Speed; angle_circle -= 0.6; if( i < 2 ){ i += 1; } window.Repaint(); }, 100); } var g_img = null; var g_metadb = null; var g_tooltip = window.CreateTooltip('Segoe UI', 16); g_tooltip.SetMaxWidth(600); g_tooltip.Text = ''; var g_info = ''; var ww = 0, wh = 0; var temp_gr; var circular_mask = utils.CreateImage(512, 512); temp_gr = circular_mask.GetGraphics(); temp_gr.FillEllipse(256, 256, 256, 256, RGB(0, 0, 0)); circular_mask.ReleaseGraphics(); temp_gr = null; update_album_art(); function update_album_art() { angle = 0; angle_circle = 0; angle_arm = 0; if (g_img) g_img.Dispose(); g_img = null; g_info = ''; g_metadb = fb.IsPlaying ? fb.GetNowPlaying() : fb.GetFocusItem(); if (g_metadb) { var tmp = g_metadb.GetAlbumArt(0) // type 0 = front art Album Art if (!tmp) tmp = g_metadb.GetAlbumArt(4); // use type 4 = artist art if (!tmp) tmp = g_metadb.GetAlbumArt(3); // use type 3 = icon art if (!tmp) tmp = g_metadb.GetAlbumArt(1); // use type 1 = back art if (!tmp) tmp = g_metadb.GetAlbumArt(2); // use type 2 = disc art var tmp2 = g_metadb.GetAlbumArt(0) // type 2 = disc art tmp2 disc art if (!tmp2) tmp2 = g_metadb.GetAlbumArt(3); // use type 3 = icon art if (!tmp2) tmp2 = g_metadb.GetAlbumArt(4); // use type 4 = artist art if (!tmp2) tmp2 = g_metadb.GetAlbumArt(0); // use type 0 = front art if (!tmp2) tmp2 = g_metadb.GetAlbumArt(1); // use type 1 = back art if (tmp) { var path = tmp.Path; var size = Math.min(tmp.Width, tmp.Height); g_img = make_square(tmp, size) // g_img : ==> pochette CD } if (tmp2) { // disc art var path2 = tmp2.Path; var size2 = Math.min(tmp2.Width, tmp2.Height); g2_img = utils.CreateImage(size, size); // pour disc art temp2_gr = g2_img.GetGraphics(); temp2_gr.DrawImageWithMask(make_square(tmp2, size), circular_mask, 0, 0, g2_img.Width, g2_img.Height); g2_img.ReleaseGraphics(); temp2_gr = null; tmp2.Dispose(); g2_info = 'Original dimensions: ' + g2_img.Width + 'x' + g2_img.Height; if (path.length) g2_info += '\nPath: ' + path; } } window.Repaint(); } function make_square(img, size ) { if (!img) return null; if (img.Width < img.Height) { var src_x = 0; var src_w = img.Width; var src_h = img.Width; var src_y = Math.round((img.Height - src_h) / 4); } else { var src_y = 0; var src_w = img.Height; var src_h = img.Height; var src_x = Math.round((img.Width - src_w) / 2); } var square = utils.CreateImage(size, size); var temp_gr = square.GetGraphics(); temp_gr.DrawImage(img, 0, 0, size, size, src_x, src_y, src_w, src_h); square.ReleaseGraphics(); return square; } function on_colours_changed() { window.Repaint(); } function on_item_focus_change() { if (!fb.IsPlaying) update_album_art(); window.Repaint(); } function on_mouse_rbtn_up(x, y) { } function on_mouse_lbtn_dblclk() { if (g_metadb) g_metadb.ShowAlbumArtViewer(0); } function on_mouse_move(x, y) { if (g_info.length && g_tooltip.Text != g_info) { g_tooltip.Text = g_info; // g_tooltip.Activate(); } } function on_paint(gr) { var bg = window.IsDefaultUI ? window.GetColourDUI(1) : window.GetColourCUI(3); gr.FillRectangle(0, 0, ww, wh, bg); var whh = window.Height; var image_ratio = 1902 / 1458; (www * 100) / 917 , (whh * 48) / 698 var www = window.Height * image_ratio; var circle_ratio = 1200 / 1200; var circle2_ratio = 1200 / 1200; if(g_img ) { var scale_w = ww / g_img.Width; var scale_h = wh / g_img.Height; var scale = Math.min(scale_w, scale_h); var pos_x = 0, pos_y = 0; if (scale_w < scale_h) pos_y = (wh - g_img.height * scale) / 300; else if (scale_w > scale_h) pos_x = (ww - g_img.Width * scale) / 300; // Albumart StackBlur(radius); function StackBlur(radius) { if (blur_img) blur_img.Dispose(); blur_img = g_img.Clone(); blur_img.StackBlur(radius); } //gr.DrawImage(blur_img, pos_x, pos_y, g_img.Width+630, g_img.Height+200, 0, 0, g_img.Width, g_img.Height, 1); // pos_y . scale gr.DrawImage(g2_img, pos_x+640, pos_y-150, 820 , 820, 0, 0, g2_img.Width , g2_img.Height , 0.8, angle); gr.DrawImage(Vinyl_Circle, pos_x+320, pos_y-500, 1500, 1500, 0, 0, Vinyl_Circle.Width, Vinyl_Circle.Height, 1, angle_circle); //gr.DrawImage(g_img, pos_x, pos_y, g_img.Width * scale, g_img.Height * scale, 0, 0, g_img.Width, g_img.Height, 0.6); gr.WriteText(tfo.title.Eval(), small_font, RGB(255,249,212), 20 , 200, 1000, 150, 0, 0); gr.WriteText(tfo.artist.Eval(), normal_font, RGB(137,167,140), 20 , 275, 1000, 50, 0, 0); gr.WriteText(tfo.date.Eval(), normal_font, RGB(246,197,197), 20 , 295, 1000, 50, 0, 0); //gr.WriteText(tfo.album.Eval(), normal_font, RGB(70,85,71), 70 , 295, 1000, 50, 0, 0); gr.WriteText(tfo.samplerate.Eval() + ', ' + tfo.bitspersample.Eval() + ', ' + tfo.bitrate.Eval(), normal_font, RGB(70, 85, 71), 20, 320, 1000, 50, 0, 0); } } function on_size() { ww = window.Width; wh = window.Height; } function on_playback_new_track() { i = 0; update_album_art(); window.Reload(); } function on_playback_stop(reason) { if (reason != 2) { update_album_art(); } } function on_playlist_switch() { if (!fb.IsPlaying) { update_album_art(); } window.Repaint(); } JScript Panel 3.6.3 (Spin Disc 2 (Art Cover + Spin Disc) by marc2003) JavaScript runtime error Cannot get undefined or null-referenced attribute "Eval" File: <main> Line: 212, Col: 4 JScript Panel 3.6.3 (Spin Disc 2 (Art Cover + Spin Disc) by marc2003) JavaScript runtime error Cannot get undefined or null-referenced attribute "Eval" File: <main> Line: 213, Col: 4 |
|
![]() |
![]() |
![]() |
#6372 |
Senior Member
Iscritto dal: Feb 2019
Messaggi: 402
|
These:
gr.WriteText(tfo.title.Eval(), small_font, RGB(255,249,212), 20 , 200, 1000, 150, 0, 0); gr.WriteText(tfo.artist.Eval(), normal_font, RGB(70,85,71), 20 , 275, 1000, 50, 0, 0); gr.WriteText(tfo.date.Eval(), normal_font, RGB(70,85,71), 20 , 295, 1000, 50, 0, 0); gr.WriteText(tfo.album.Eval(), normal_font, RGB(70,85,71), 70 , 295, 1000, 50, 0, 0); gr.WriteText(tfo.samplerate.Eval() + ', ' + tfo.bitspersample.Eval() + ', ' + tfo.bitrate.Eval(), normal_font, RGB(70, 85, 71), 20, 320, 1000, 50, 0, 0); are not lines that I added. This form should no longer be used. All spin disc scripts made in js3 should no longer be used, as they have been superseded by the version that uses the foo webview plugin. Spin Disc will never work well with js3 script. The limit is precisely the js3 language. |
![]() |
![]() |
![]() |
#6373 | |
Junior Member
Iscritto dal: Dec 2023
Messaggi: 23
|
Quote:
jacobi91 rotating disc script. Thank you! |
|
![]() |
![]() |
![]() |
#6374 | |
Senior Member
Iscritto dal: Feb 2019
Messaggi: 402
|
Quote:
https://hydrogenaud.io/index.php/top...tml#msg1048135 |
|
![]() |
![]() |
![]() |
#6375 |
Member
Iscritto dal: Oct 2023
Messaggi: 132
|
JScript Panel 3 & Web view
JScript Panel 3 (marc2003)
- Text Display - Thumbs - Last.fm Bio - Text Display (Run service) Web view (pqyt) - titulos_julero_21-07 (Julero) Message titulos_julero_21-07.zip ![]() ![]() Ultima modifica di jacobi91 : 02-08-2024 alle 21:12. |
![]() |
![]() |
![]() |
#6376 |
Senior Member
Iscritto dal: Feb 2019
Messaggi: 402
|
Questa versione titulos_julero_21-07 (Julero), ha un chiaro problema di sfasamento ed è fuori sincronia tra la rotazione dell'immagine cover e la rotazione dell'immagine mask.
Il tutto crea un effetto di ovalizzazione al centro della rotazione, chiaramente visibile nelle stesse immagini postate sul thread specifico. Ultima modifica di ApacheReal : 03-08-2024 alle 13:02. |
![]() |
![]() |
![]() |
#6377 |
Senior Member
Iscritto dal: Feb 2019
Messaggi: 402
|
Updated Theme last fix
https://mega.nz/file/73B2BbwI#-X0kHS..._uAyI6Ktzz61mY sha256: 4194c18af02dfd52d481abd43b81f3fe5afe3459907f3040f105e56c40c9d9ee *Apache Evolution Theme 32 BIT [RC 03-08-2024 Public] Theme.7z Updated Radio last fix https://mega.nz/file/mmJxWbzC#OEakad...S8l-DJ7rtEdZQù sha256: 0f42b818add73a19ce80e5b457a5ba01af2ab8514cd06350058fb2a2c49615a4 *Radio.7z Ultima modifica di ApacheReal : 03-08-2024 alle 20:23. |
![]() |
![]() |
![]() |
#6378 | |
Member
Iscritto dal: Oct 2023
Messaggi: 132
|
Quote:
|
|
![]() |
![]() |
![]() |
#6379 |
Senior Member
Iscritto dal: Feb 2019
Messaggi: 402
|
|
![]() |
![]() |
![]() |
#6380 |
Member
Iscritto dal: Oct 2023
Messaggi: 132
|
|
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 01:40.