IPB

Welcome Guest ( Log In | Register )

Track Info Panel with ability to change font, Split from foo_uie_trackinfo
terrestrial
post Jul 24 2006, 20:48
Post #1





Group: Members
Posts: 274
Joined: 24-July 06
Member No.: 33259



This is a modified foo_uie_trackinfo which uses a differet display function, which allows for different fonts / alignment.

Example screenshot:



and the code from the example:

CODE
$if(%_trackinfo_notrack%,
Stopped,

$align(left,top)
$font(forte,15,shadow,255-255-255)%title%$char(10)
$font(,12,,64-0-0)%album% ['['%date%']']$char(10)
$rgb(0,64,0)%artist%$char(10)
$rgb(64,0,0)%composer%test$char(10)

$align(right,bottom)
$font(Verdana,10,,0-0-0)%__codec%@%__bitrate%$char(10)
[%playback_time% / ]%length%

$align(left,bottom)
$font(Wingdings 2,13,,)
$if(%rating%,
$select(%rating%,
$rgb(155,0,0)κ,
κκ,
κκκ,
κκκκ,
$rgb(0,155,0)κκκκκ),
$rgb(155,155,155)κ)
)


This is very much still a beta, so please beware of bugs.

Download here.

For documentation, please refer to the wiki. (thanks to FofR, Sw!ng, and the other contributors).

Requires:

MS Visual C++ 2005 Runtime Library
GDI+ - only needed for Windows 2000

This post has been edited by terrestrial: Nov 21 2006, 03:03
Go to the top of the page
+Quote Post
 
Start new topic
Replies
Hamallainen
post Aug 1 2006, 23:22
Post #2





Group: Members
Posts: 229
Joined: 1-April 04
Member No.: 13171



Hi,

I have a problem with the $align(H,V) fonction. If someone could confirm please. ( I use 0.9.3 beta4)

Here is the code i use, to explain:
CODE

$if(%_trackinfo_notrack%,
,
$align(left,top)$font(tahoma,16,,0-0-0)$repeat(7,12)
$align(center,top)$font(tahoma,16,,255-0-0)$repeat(8,12)
$align(right,top)$font(tahoma,16,,0-255-0)$repeat(9,12)

$align(left,middle)$font(tahoma,16,,0-0-255)$repeat(4,12)
$align(center,middle)$font(tahoma,16,,255-255-0)$repeat(5,12)
$align(right,middle)$font(tahoma,16,,0-255-255)$repeat(6,12)

$align(left,bottom)$font(tahoma,16,,255-0-255)$repeat(1,12)
$align(center,bottom)$font(tahoma,16,,128-128-255)$repeat(2,12)
$align(right,bottom)$font(tahoma,16,,255-128-128)$repeat(3,12)
)


and a screenshot:


It's seems $align(*,top) behave differently than $align(*,middle) and $align(*,bottom)
Well it seems $align(*,middle) and $align(*,bottom) overlap text if it's too long while $align(*,top) do not overlap but "discard" text. I don't know which one is the intended behaviour. I think both behaviour are interesting and that would be great if we could have access to both with for example $align(H,V) for no overlap and $aligno(H,V) for overlap.

thanks
Go to the top of the page
+Quote Post
mazy
post Aug 1 2006, 23:58
Post #3





Group: Members
Posts: 680
Joined: 11-July 03
From: Brno, Czech Rep.
Member No.: 7705



QUOTE (Hamallainen @ Aug 2 2006, 00:22) *
It's seems $align(*,top) behave differently than $align(*,middle) and $align(*,bottom)
Well it seems $align(*,middle) and $align(*,bottom) overlap text if it's too long while $align(*,top) do not overlap but "discard" text. I don't know which one is the intended behaviour. I think both behaviour are interesting and that would be great if we could have access to both with for example $align(H,V) for no overlap and $aligno(H,V) for overlap.

yes, you're right. you could read my and terrestrial's posts as there's lot of information how this works, but i reckon that it's lots of information wink.gif.

in short - only $align(*,top) avoids to overwrite text and "flows" it. this is probably going to change, this is simply work-in-progress and there's only anti-overlapping code for the top scenario.

as for the other question you've asked - there's already way to output text without overlap checking. you can use $alignabs. it's more complex function which allows for positioning block of text anywhere you want, with the ability to specify it's box and vertical / horizontal alignment inside that box. the syntax is $alignabs(x,y,width,height,halign,valign). there's also shortcut version which is similar to $align - $alignabs(halign,valign).


Shakedown, Yotsuya is right, but there's also hidden feature in this plugin. you can use "uppercase" or "lowercase" directly in the $font statement, in the style parameter. example: $font(,,bold uppercase,)


--------------------
info about my tag guesser script for foo_lua (preview version available):
http://www.hydrogenaudio.org/index.php?showtopic=16987
Go to the top of the page
+Quote Post

Posts in this topic
- terrestrial   Track Info Panel with ability to change font   Jul 24 2006, 20:48
- - pepoluan   QUOTE (cvax @ Jul 18 2006, 00:08) Is it p...   Jul 25 2006, 00:28
- - Yotsuya   Would it be possible for you to change your font c...   Jul 25 2006, 10:30
- - terrestrial   made a couple of bug fixes, and other changes: ex...   Jul 28 2006, 22:19
|- - Squeller   QUOTE (terrestrial @ Jul 28 2006, 13:19) ...   Jul 30 2006, 12:10
- - Yotsuya   First off I'd like to thank you for continuing...   Jul 28 2006, 22:58
|- - terrestrial   Thanks for your comments QUOTE (Yotsuya @ J...   Jul 28 2006, 23:27
- - pepoluan   2 suggestions: 1. Please provide a readme.txt too...   Jul 29 2006, 02:41
- - mazy   terrestrial - amazing work, thank you so much for ...   Jul 29 2006, 23:33
|- - terrestrial   QUOTE (mazy @ Jul 29 2006, 16:33) [*]i wo...   Jul 30 2006, 22:11
- - mil3s   Bug In the latest foobar beta multiple trackinfo f...   Jul 30 2006, 21:11
- - mil3s   Thanks for fixing the multiple fields bug so quick...   Jul 30 2006, 22:41
- - Yotsuya   Wow thanks for the quick update and thank you for ...   Jul 31 2006, 02:48
- - takt   Is this version of trackinfo a branch or just a up...   Jul 31 2006, 09:20
- - mazy   Yotsuya 1) the way $align works right now is...   Jul 31 2006, 15:11
|- - Andrea   QUOTE (mazy @ Jul 31 2006, 11:11) i would...   Jul 31 2006, 15:20
- - terrestrial   Ok, new version with bug fixes and some additions....   Jul 31 2006, 17:05
- - drbeachboy   I received this failure notice from FB2K_v0.9.3b4:...   Jul 31 2006, 17:53
|- - terrestrial   QUOTE (drbeachboy @ Jul 31 2006, 10:53) I...   Jul 31 2006, 20:15
|- - Schinkentoni   Thank you very much for your development efforts. ...   Jul 31 2006, 21:15
- - mil3s   I know someone said that the font sizes where all ...   Jul 31 2006, 18:01
- - pepoluan   @terrestrial: Now that you have your own thread ....   Jul 31 2006, 18:42
- - mazy   terrestrial, thanks for fixes! that shadow stu...   Jul 31 2006, 18:49
- - Yotsuya   Nice to see this component is continuing to evolve...   Jul 31 2006, 20:14
- - terrestrial   are you guys running the latest version of foobar ...   Jul 31 2006, 21:26
|- - Schinkentoni   the latest stable, yes (0.9.2)   Jul 31 2006, 21:31
|- - drbeachboy   QUOTE (terrestrial @ Jul 31 2006, 16:26) ...   Jul 31 2006, 23:05
- - mazy   i've been playing with the new version and fou...   Jul 31 2006, 22:41
- - mazy   ok, so here goes the 'align' post . format...   Jul 31 2006, 23:28
- - rouge   Can this be made into a seperate component from fo...   Aug 1 2006, 04:06
- - year98   Great works! Some suggestions...somewhat irre...   Aug 1 2006, 04:36
- - thuan   I second the configurable double click behavior.   Aug 1 2006, 06:13
- - terrestrial   QUOTE I've been playing with the new version a...   Aug 1 2006, 07:36
- - year98   Oh! Can you do everything? I'll wait forer...   Aug 1 2006, 07:44
- - Hamallainen   Thanks a lot for your work CODE$alignabs...   Aug 1 2006, 09:42
- - Generalverdacht   just wanted to thank you (creator of new features)...   Aug 1 2006, 11:22
- - mazy   terrestrial, i can confirm that $rgb() works ...   Aug 1 2006, 12:04
- - Yotsuya   Thank you terrestrial for your dedication, this co...   Aug 1 2006, 18:13
- - terrestrial   QUOTE first start with 3. using the new measuremen...   Aug 1 2006, 18:21
- - FrDelefortrie   Another feature request: Can you create $font...   Aug 1 2006, 18:58
- - Yotsuya   I stumbled upon a small inconsistency. $alig...   Aug 1 2006, 19:05
- - Yotsuya   I know a lot of people out there are using trackin...   Aug 1 2006, 19:21
- - terrestrial   QUOTE 1) I would like to be able to use $font...   Aug 1 2006, 19:41
- - FrDelefortrie   QUOTE (terrestrial @ Aug 1 2006, 20:41) Q...   Aug 1 2006, 19:55
- - Hamallainen   Hi, I have a problem with the $align(H,V) fo...   Aug 1 2006, 23:22
|- - mazy   QUOTE (Hamallainen @ Aug 2 2006, 00:22) I...   Aug 1 2006, 23:58
- - Shakedown   This may be a stupid question, but I'm fairly ...   Aug 1 2006, 23:30
- - Yotsuya   Shakedown I believe the function you are looking f...   Aug 1 2006, 23:49
- - Hamallainen   @ mazy thanks for your explanations   Aug 2 2006, 07:37
- - mobyduck   Ok, my turn for a stupid question: how do I add a ...   Aug 2 2006, 08:01
|- - mobyduck   QUOTE (mobyduck @ Aug 1 2006, 23:01) Ok, ...   Aug 2 2006, 12:05
- - Squeller   I also do not see how to insert a blank line. I us...   Aug 2 2006, 09:01
- - mazy   QUOTE (mobyduck @ Aug 2 2006, 09:01) Ok, ...   Aug 2 2006, 10:08
- - stalnation   QUOTE (drbeachboy @ Jul 31 2006, 18:53) I...   Aug 2 2006, 11:00
|- - mazy   QUOTE (stalnation @ Aug 2 2006, 12:00) so...   Aug 2 2006, 11:41
|- - foosion   QUOTE (stalnation @ Aug 2 2006, 12:00) It...   Aug 2 2006, 12:02
- - stalnation   QUOTE (mazy @ Aug 2 2006, 12:41) you coul...   Aug 2 2006, 11:46
- - stalnation   @foosion I compared the msvcr80.dll from the websi...   Aug 2 2006, 12:19
- - thuan   It's just need this. If you've already in...   Aug 2 2006, 14:02
- - FrDelefortrie   Bug report CODE Illegal operation: Code: C0000005...   Aug 3 2006, 17:55
|- - terrestrial   QUOTE (FrDelefortrie @ Aug 3 2006, 11:55)...   Aug 3 2006, 23:29
- - madorangepanda   Is there any chance something like the titleformat...   Aug 3 2006, 18:33
- - ChaosBladE   Not sure if i'll use it right now, But as a pr...   Aug 3 2006, 22:57
- - unabatedshagie   Could people post examples of their trackinfo stri...   Aug 4 2006, 16:00
|- - Yotsuya   QUOTE (unabatedshagie @ Aug 4 2006, 11:00...   Aug 4 2006, 19:44
- - FrDelefortrie   CODE $puts(color3,079AE9) //35B5F9) //...   Aug 4 2006, 17:44
- - Yotsuya   It occured to me that you could use a 1pt font ...   Aug 4 2006, 21:24
- - mazy   nice examples, Yotsuya! i have managed to draw...   Aug 4 2006, 21:29
- - Masahiko   with the code : CODE$align(center,)Ta...   Aug 5 2006, 11:19
- - PonasX   Maybe $align(center,)Tags$char(10) ...   Aug 5 2006, 12:21
- - eisteh   $align(center,top)Tags$char(10) $al...   Aug 5 2006, 12:32
- - rouge   Installing this component still converts all of my...   Aug 5 2006, 13:28
- - metal_termite   Feature request: A checkbox option in the settings...   Aug 5 2006, 13:55
- - Andrew_TA   another feature request, anyway i can get like, c...   Aug 5 2006, 15:06
- - Masahiko   QUOTE (PonasX @ Aug 5 2006, 13:21) Maybe ...   Aug 5 2006, 17:33
|- - Yotsuya   QUOTE (eisteh @ Aug 5 2006, 13:32) ...   Aug 5 2006, 20:19
- - FrDelefortrie   from the read-me QUOTE Before the first $alig...   Aug 5 2006, 17:41
- - Masahiko   QUOTE (Yotsuya @ Aug 5 2006, 21:19) I thi...   Aug 6 2006, 10:50
- - Generalverdacht   im not quite sure what i missed but it only says ...   Aug 7 2006, 17:38
- - LL-Hell   here's what I managed to pull so far with the ...   Aug 7 2006, 18:51
- - Neural_Overload   Is there a way to terminate the alignment in a sim...   Aug 9 2006, 03:39
- - Yotsuya   The broken $char(10) appears to have somethin...   Aug 9 2006, 05:36
- - thuan   I have a crash by this plugin here's the crash...   Aug 13 2006, 05:43
- - metal_termite   I have a problem. One of my track info panels keep...   Aug 14 2006, 19:35
- - Sw!ng   Is this the full code your problem goes around ......   Aug 14 2006, 21:15
- - thuan   It seems putting tht $font function in the br...   Aug 15 2006, 00:24
- - Yotsuya   1) The code has no close bracket ']' as Sw...   Aug 15 2006, 00:40
|- - metal_termite   QUOTE (Yotsuya @ Aug 14 2006, 19:40) 1) T...   Aug 15 2006, 02:47
- - Yotsuya   In general I do not like using brackets. Both the ...   Aug 15 2006, 03:21
- - gob   any plans for adding scrolling/elipsed test in thi...   Aug 15 2006, 04:56
- - rouge   If strings are going over the edge, I suggest usin...   Aug 15 2006, 09:14
- - Sw!ng   w00t ?? realy ?? so I didnt need to work out my ow...   Aug 15 2006, 10:51
- - Sw!ng   BTW, anyone of you guys have an explanation, why t...   Aug 15 2006, 16:35
- - Russell777   The only thing stopping me from using this wonderf...   Aug 15 2006, 18:05
|- - Sw!ng   Yes, using the same name for the coponent is realy...   Aug 15 2006, 23:12
- - mazy   you can set line spacing, Russell777, but only for...   Aug 15 2006, 18:14
- - Russell777   Do you meen by using the $alignabs() function...   Aug 15 2006, 18:20
- - Russell777   2 Sw!ng: Well if you want you'll get it ju...   Aug 15 2006, 23:28
- - terrestrial   sorry guys... things are a bit on hold for a momen...   Aug 16 2006, 00:52
- - Sw!ng   @ russell777 2.1 would be nice ... !!   Aug 16 2006, 01:18
13 Pages V   1 2 3 > » 


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: 22nd August 2014 - 08:23