IPB

Welcome Guest ( Log In | Register )

HTPC Fullscreen panels II, for foo_uie_wsh_panel_mod
ojdo
post Dec 31 2009, 18:18
Post #1





Group: Members
Posts: 894
Joined: 18-June 06
From: Germany
Member No.: 31980



Introduction
This thread is the continuation of HTPC Fullscreen panels where I posted my configurations for foo_uie_trackinfo_mod which is now a problematic component. So I had the desire to resettle to a stable component with the same (or better) features. I found it in the component WSH Panel Mod by T.P Wang (official thread with download). For now there is just one configuration, but I have the strong feeling that I will continue to change my current design...

Requirements and usage
My panel configurations depend on Columns UI and WSH Panel Mod. In order to use them, I recommend to set up a layout in Preferences > Display > Columns UI, Tab Layout like this:
CODE
Vertical splitter
+- WSH Panel Mod
\- NG Playlist [hidden]

The hidden playlist is just there to make keyboard shortcuts run properly. I use them to switch back and forth between different layouts (browsing and the fullscreen panels you find here).

Then just copy and paste the text file's contents into the configuration dialog you can find in the WSH panel context menu.


WSHtpc01
My first real try to make a proper layout with WSH panel. It still feels less "natural" than with foo_uie_trackinfo_mod, but performance-wise (=less CPU load) the WSH panel is much better.


Attached File  WSHtpc01_0.1.txt ( 6.54K ) Number of downloads: 1244


This post has been edited by ojdo: Dec 31 2009, 18:25


--------------------
http://freemusi.cc/
Go to the top of the page
+Quote Post
 
Start new topic
Replies
tommygun
post Mar 22 2010, 16:07
Post #2





Group: Members
Posts: 30
Joined: 14-March 10
Member No.: 79014



Hi ojdo.

1st of all, thanks for your reply and your effort to make the foobar2000 application more user friendly in order to change the looks of it and share the results with all the others.

Sorry, but I'm not that much of a geek and the scripting language can be kinda confusing for someone who don't understand it as much as guys like you do.

Anyway, I was talking about embedded album art only and the way I understood you was that it isn't possible to set a fixed size for embedded album art is that correct?

If yes, there is no point to go any further from here but if there is a way I would like to know the parameters to set the maximum size of the displayed album art to 450x450.

These are the only parameters I could find that kinda fit your description:

CODE
    // Albumart: Calculations and reflection
    if(g_albumart) {
        var scale_w = 0.45*ww / g_albumart.Width;
        var scale_h = 0.9*(0.75*wh) / g_albumart.Height;
        var scale = Math.min(scale_w, scale_h);
        var img_w = g_albumart.Width * scale;
        var img_h = g_albumart.Height * scale;
        var pos_x = 0.45*ww-img_w;
        var pos_y = 0.75*wh-img_h;
        gr.DrawImage(g_albumart_rot, pos_x, pos_y+img_h, img_w, img_h, 0, 0, g_albumart.Width, g_albumart.Height);        
        gr.FillGradRect(pos_x,pos_y+img_h,img_w,wh/6, 90, RGBA(0,0,0,128), RGB(0,0,0,255));
        gr.FillSolidRect(pos_x,pos_y+img_h+wh/6,img_w,5*wh/6, RGBA(0,0,0,255));
    }

Please give me a hint on how to change them in order to display the embedded album art in a maximum size of 450x450.

Thanks a lot, your help is very much appreciated.



--------------------
Tommy
Go to the top of the page
+Quote Post
ojdo
post Mar 22 2010, 23:42
Post #3





Group: Members
Posts: 894
Joined: 18-June 06
From: Germany
Member No.: 31980



Replace these two lines
CODE
var scale_w = 0.45*ww / g_albumart.Width;
var scale_h = 0.9*(0.75*wh) / g_albumart.Height;

with the following ones:
CODE
var scale_w = Math.max(0.45*ww,450) / g_albumart.Width;
var scale_h = Math.max(0.9*0.75*wh,450) / g_albumart.Height;

This sets the maximum size of all (both embedded art and separate files) album art to 450x450 pixels.


--------------------
http://freemusi.cc/
Go to the top of the page
+Quote Post
tommygun
post Mar 31 2010, 13:46
Post #4





Group: Members
Posts: 30
Joined: 14-March 10
Member No.: 79014



QUOTE (ojdo @ Mar 23 2010, 05:42) *
Replace these two lines
CODE
var scale_w = 0.45*ww / g_albumart.Width;
var scale_h = 0.9*(0.75*wh) / g_albumart.Height;

with the following ones:
CODE
var scale_w = Math.max(0.45*ww,450) / g_albumart.Width;
var scale_h = Math.max(0.9*0.75*wh,450) / g_albumart.Height;

This sets the maximum size of all (both embedded art and separate files) album art to 450x450 pixels.


Hi ojdo.

Thanks for your reply.

I did change the script as suggested but it didn't work, the album art is displaying the same as before the change.

Is there something else that could be done to display the album art in the desired maximum size ?

Thanks again,


--------------------
Tommy
Go to the top of the page
+Quote Post
ojdo
post Apr 2 2010, 08:54
Post #5





Group: Members
Posts: 894
Joined: 18-June 06
From: Germany
Member No.: 31980



QUOTE (tommygun @ Mar 31 2010, 13:46) *
Is there something else that could be done to display the album art in the desired maximum size ?


No, it should work. Please post your whole currently used WSH panel code in a CODEBOX or as an attachment and I will have a look into it.


--------------------
http://freemusi.cc/
Go to the top of the page
+Quote Post
tommygun
post Apr 3 2010, 05:01
Post #6





Group: Members
Posts: 30
Joined: 14-March 10
Member No.: 79014



.......attached the code and thanks again for looking into this:Attached File  WSH_Panel_Mod.txt ( 13.16K ) Number of downloads: 286


--------------------
Tommy
Go to the top of the page
+Quote Post

Posts in this topic
- ojdo   HTPC Fullscreen panels II   Dec 31 2009, 18:18
- - ojdo   Update: WSHtpc01 v0.2 Changes from v0.1 Panel is ...   Jan 11 2010, 22:44
- - ojdo   Sh*t, what pitty. Wrong file encoding crippled the...   Jan 12 2010, 22:39
- - High Five   Thank you for your work! it's really mini...   Feb 5 2010, 01:38
- - TheShaman   Hey ojdo, Good work! Is it possible to int...   Feb 17 2010, 10:08
|- - ojdo   QUOTE (TheShaman @ Feb 17 2010, 10:08) Is...   Feb 17 2010, 10:43
- - ojdo   New configuration: WSHtpc02 (v0.2) Features Fulls...   Feb 18 2010, 20:22
- - marc2003   can you provide the required images please?   Feb 18 2010, 20:30
|- - ojdo   QUOTE (marc2003 @ Feb 18 2010, 20:30) can...   Feb 18 2010, 20:32
- - marc2003   ?? CODEvar imgpath2 = fb.FoobarPath+'images...   Feb 18 2010, 20:34
|- - ojdo   QUOTE (marc2003 @ Feb 18 2010, 20:34) ?? ...   Feb 18 2010, 20:39
- - marc2003   now it works. thanks.   Feb 18 2010, 20:46
- - Gapkiller   Thank you for your work ojdo!! I like it v...   Mar 3 2010, 23:05
|- - ojdo   QUOTE (Gapkiller @ Mar 3 2010, 23:05) I...   Mar 3 2010, 23:33
- - Gapkiller   ojdo, thx for the fast reply. Unfortunately it d...   Mar 4 2010, 00:23
- - ojdo   Yes, you're right. As the function name says, ...   Mar 4 2010, 09:55
- - Gapkiller   Works. Thx again!   Mar 4 2010, 10:45
- - bimbel   ojdo care to explain the playback statistics (line...   Mar 7 2010, 17:28
- - ojdo   Here you are: The line length is partitioned ac...   Mar 8 2010, 10:30
- - tommygun   .......is it possible to set a fixed maximum size ...   Mar 18 2010, 17:42
|- - ojdo   QUOTE (tommygun @ Mar 18 2010, 17:42) ......   Mar 22 2010, 10:51
- - tommygun   Hi ojdo. 1st of all, thanks for your reply and yo...   Mar 22 2010, 16:07
|- - ojdo   Replace these two lines CODEvar scale_w = 0.45*ww ...   Mar 22 2010, 23:42
|- - tommygun   QUOTE (ojdo @ Mar 23 2010, 05:42) Replace...   Mar 31 2010, 13:46
|- - ojdo   QUOTE (tommygun @ Mar 31 2010, 13:46) Is ...   Apr 2 2010, 08:54
|- - tommygun   .......attached the code and thanks again for look...   Apr 3 2010, 05:01
- - ojdo   Your upload was broken (double-pasting + encoding ...   Apr 3 2010, 11:42
|- - tommygun   Hi ojdo. Now it displays the desired maximum size...   Apr 4 2010, 05:05
- - tommygun   ....... please give me a hand here to finally get ...   Apr 15 2010, 10:39
- - ojdo   That question doesn't belong in this thread as...   Apr 15 2010, 11:03
|- - tommygun   ....... ok thanks, I got it now. I just deleted t...   Apr 15 2010, 11:47
- - halocline_   Hi, I have a question. My artist images are typica...   Apr 15 2010, 23:03
- - tommygun   ....... can someone of you guys or maybe ojdo help...   May 10 2010, 17:15
|- - marc2003   QUOTE (tommygun @ May 10 2010, 17:15) The...   May 10 2010, 17:26
- - tommygun   QUOTE (marc2003 @ May 10 2010, 23:26) QUO...   May 10 2010, 18:17
- - marc2003   in all the screenshots, you can clearly see the wi...   May 10 2010, 19:06
- - tommygun   ....... sorry, my mistake. I saw the title on top...   May 11 2010, 06:07
- - RedAlert   Im using WSHtpc02 and it's almost perfect. How...   May 14 2010, 19:18
- - ojdo   QUOTE (tommygun @ May 11 2010, 07:07) Ful...   May 15 2010, 17:57
- - RedAlert   Where should I change it? Ive done it in Columns ...   May 16 2010, 20:23
- - RedAlert   I appreciate your help....   May 25 2010, 14:48
- - ojdo   Sorry, I seem to have missed a notification. I had...   May 25 2010, 15:19
- - Mr.Duck   Just trying put v0.2 now. Unless I am missing some...   Jun 5 2010, 00:15
|- - ojdo   QUOTE (Mr.Duck @ Jun 5 2010, 01:15) Just ...   Jun 5 2010, 13:44
- - Mr.Duck   Oh ok. I'm surprised no one has made an altern...   Jun 5 2010, 17:31
|- - redmodel   QUOTE (Mr.Duck @ Jun 5 2010, 09:31) Didn...   Aug 26 2010, 02:46
- - L_and_P21   i was wondering would it be possible to add a lyri...   Jun 15 2010, 07:41
- - phool   I've currently got my TV hooked up to my PC as...   Jul 3 2010, 12:46
- - ojdo   New configuration: WSHtpc03 v0.1 Features Displ...   Sep 12 2010, 12:18
- - Squeller   My layout is simple, I do the remote controlling w...   Sep 27 2010, 13:57
- - pcstockton   GREAT component!!! Just fabulous. I...   Oct 1 2010, 00:24
- - pcstockton   QUOTE (Squeller @ Sep 27 2010, 05:57) I a...   Oct 1 2010, 00:27
- - ojdo   Update: WSHtpc03 v0.5 Changes to WSHtpc03 v0.1:...   Oct 1 2010, 19:35
|- - Gapkiller   QUOTE (ojdo @ Oct 1 2010, 13:35) Update: ...   Oct 3 2010, 21:17
|- - starterz   QUOTE (ojdo @ Oct 1 2010, 20:35) Update: ...   Aug 20 2011, 02:45
- - ojdo   Small update: WSHtpc03 v0.5.1 Changes to previous...   Oct 6 2010, 21:16
- - pcstockton   QUOTE (ojdo @ Dec 31 2009, 10:18) The hid...   Oct 22 2010, 18:13
|- - ojdo   QUOTE (pcstockton @ Oct 22 2010, 19:13) A...   Oct 24 2010, 15:17
- - pcstockton   Thanks for the help! I am using v0.2 (with th...   Oct 25 2010, 00:16
|- - ojdo   Fixed update of WSHtpc02 v0.3, aka the configurat...   Oct 28 2010, 20:25
- - pcstockton   thanks a lot Ojdo. I really appreciate the help a...   Oct 29 2010, 22:05
- - pcstockton   ....except now it doesn't work at all.... any...   Oct 29 2010, 22:13
- - ojdo   The error message you uploaded occurred in the lin...   Oct 30 2010, 00:06
- - pcstockton   Previously the error occurred when changing to the...   Oct 31 2010, 06:03
- - ojdo   This sounds like that the code in your WSH panel h...   Oct 31 2010, 10:25
- - pcstockton   Thanks for continuing to help me! I attached ...   Oct 31 2010, 20:31
- - ojdo   The error message tells you the solution right awa...   Nov 1 2010, 22:25
- - pcstockton   AHA!!!!!!!!!...   Nov 2 2010, 01:35
- - pcstockton   Still no dice.... I created the images folder in ...   Nov 3 2010, 02:23
- - ojdo   Nothing new in this log. It's the old error me...   Nov 4 2010, 19:16
- - pcstockton   1. How does the configuration for your album art r...   Nov 4 2010, 20:43
- - ojdo   Concerning #1: I wanted to know if you had any spe...   Nov 4 2010, 21:47
- - pcstockton   Cool. Thanks for helping me as far as you could O...   Nov 5 2010, 01:54
- - claW2k5   Is there any possibility to extend this script wit...   Mar 9 2011, 00:34
- - ojdo   You cannot include other panels, but the WSH panel...   Mar 9 2011, 23:03
- - kaller   This looks really great. But I have quite a noob q...   Apr 23 2011, 11:09
- - SatFloyd   Hello odjo I'm a happy user of WSHtpc02. It...   Jul 9 2011, 11:31
- - Craig6844   I spent a little time modding WSHtpc02 and i thoug...   Jul 21 2011, 06:28
- - marc2003   here you go. http://dl.dropbox.com/u/22801321/wsh_...   Aug 20 2011, 14:30
|- - starterz   QUOTE (marc2003 @ Aug 20 2011, 15:30) her...   Aug 21 2011, 09:41
- - Chipicui   I wanted to say a big THANKS to you odjo for this ...   Nov 17 2011, 03:38
- - Chipicui   Just a suggestion: Another enhancement I'd lov...   Nov 17 2011, 23:33
- - ojdo   What do you mean by "auto-rotate"? Conc...   Nov 18 2011, 10:44
- - marc2003   i guess Chipicui means cycle through all images in...   Nov 18 2011, 12:43
|- - ojdo   New version 0.2.0. Changes from 0.1.3: new option:...   Nov 26 2011, 03:32
|- - Oery   QUOTE (ojdo @ Nov 26 2011, 09:32) New ver...   Nov 26 2011, 07:59
|- - ojdo   QUOTE (Oery @ Nov 26 2011, 07:59) I'm...   Nov 26 2011, 14:27
|- - starterz   Thank you for this. I am really going to try custo...   Nov 27 2011, 11:52
|- - starterz   Not as easy as I thought :-) I have two great imag...   Nov 27 2011, 17:00
|- - starterz   OK, I got this far, I can see the gloss on the alb...   Nov 27 2011, 21:47
|- - ojdo   QUOTE (starterz @ Nov 27 2011, 21:47) OK,...   Dec 4 2011, 23:54
- - Chipicui   Thanks marc2003 for your explanation! ... that...   Nov 22 2011, 22:46
- - ojdo   New release: WSHtpc04 v0.1Configurable tag gridDyn...   Nov 22 2011, 23:16
- - ojdo   Bugfix update: WSHtpc04 v0.1.1 I should have waite...   Nov 23 2011, 19:31
- - marc2003   a few issues with this.... -it's spamming the...   Nov 23 2011, 20:03
|- - ojdo   QUOTE Crash in createDropShadow() Strange, this is...   Nov 23 2011, 20:56
- - marc2003   sorry i forgot about this. tested and working fine...   Nov 25 2011, 14:04
- - Chipicui   Hi!... thanks a lot ojdo! However, I can...   Nov 28 2011, 04:54
|- - Chipicui   Sorry ojdo!!!... sorry for being so st...   Nov 28 2011, 17:09
- - tommygun   ....... can someone please tell me how I stop WSHt...   Feb 1 2012, 12:51
2 Pages V   1 2 >


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 13th July 2014 - 09:17