Track Info Panel with ability to change font, Split from foo_uie_trackinfo |
Track Info Panel with ability to change font, Split from foo_uie_trackinfo |
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 |
|
|
|
![]() |
Jul 31 2006, 23:28
Post
#2
|
|
![]() Group: Members Posts: 680 Joined: 11-July 03 From: Brno, Czech Rep. Member No.: 7705 |
ok, so here goes the 'align' post
CODE text$char(10) // first block $align(left,)$rgb(200,50,50)left$char(10)l $align(center,)$rgb(50,200,50)center$char(10)c $align(right,)$rgb(50,50,200)right$char(10)r // this has no effect to the second block $align(,bottom) // second block $align(left,)$rgb(100,0,0)left $align(right,)$rgb(0,0,100)right $align(center,)$rgb(0,100,0)center // third block $align(left,bottom)$rgb(200,50,50)left $align(right,bottom)$rgb(50,50,200)right $align(center,bottom)$rgb(50,200,50)center result: ![]() explanation (?): let's look at the first block. it's result is on the first line in the screenshot, rendered with light colors. you can see only dark-green "center" in there, as it got over the light one. "left" got put after "text", as the latter was already there and "left" was not allowed to draw over it. then we have "center", which was correctly put in the center. now "right" (the light one) is interesting. it's not on the right side as it should be, but rather at what seems to be right edge of the center column. strange. these "l", "c" and "r" letters are just new lines of the sub-blocks of the first block; they show more precisely where the alignment line is. now the second block. that's the one resulting to words rendered with darker colors. as you can see, that $align(,bottom) has no effect to it and $align functions in the second block assume "top" for the missing vertical alignment parameter (which is fine by me, it wasn't said to be "relative" or anything like that). they show in the left, right and center columns on the first line respectively. they do not overdraw the existing texts (as they are not allowed to) with the only exception being "center" - it seems that center of a center is again the same center it gets interesting again for the last, third block. i've only changed the order in which i specify texts for corresponding columns. i put right in front of center - and the result is what one would expect in the other blocks too - right column has adjustment line on the right edge of the panel. This post has been edited by mazy: Jul 31 2006, 23:45 -------------------- info about my tag guesser script for foo_lua (preview version available):
http://www.hydrogenaudio.org/index.php?showtopic=16987 |
|
|
|
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
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![]() ![]() |
|
Lo-Fi Version | Time is now: 19th June 2013 - 00:44 |