Você está na página 1de 3

This is a modification of foo_uie_trackinfo to use a new display function which

allows for (among other things) different fonts/sizes, along with different alig
nments.
Changes:
- Removed scrolling and ellipses for line ending.
- Aligning text uses a different format:
To align text use: $align(H,V), where
H=left, center, or right
V=top, middle, or bottom.
- Changing fonts:
To change font use:
NAME is the
SIZE is the
OPTIONS can

$font(NAME,SIZE,OPTIONS,COLOR), where
font name
font size
include bold, italic, underline, strikeout, nocleart

ype
COLOR is the color of the font specified as R-G-B (eg 255-0-0) f
or red
This hasn't been extensively tested, so please backup your original configuratio
n.
+changelog
12/11/06
+ Sorting doesn't reset after new filter
+ TAG:ADD:name:val and TAG:REMOVE:name:val button actions.
+ Persistant variables & button to set values PVAR:SET:name:val : (example)
$puts(val,$if2($getpvar(val),0))
$align(left,bottom)$get(val)
$button2(20,50,0,0,50,10,Add,Add,PVAR:SET:val:$add($get(val),1),)
+ add "RESET" before sort string to reset the sort string to new value instead o
f appending to sort.
SORT:aritst/year/album|RESET %artist% %album% %date%:year/artist/album|R
ESET %date% %artist% %album%
+ update to async tag writing functions
12/06/06
+ Rotate and flip images using rotateflip-X in image options where x is:
None
= 0
Rotate 90
Flip None
= 1
Rotate 180
Flip None
= 2
Rotate 270
FlipNone
= 3
Rotate
Rotate
Rotate
Rotate

None
90
180
270

Rotate None
Rotate 90
Rotate 180

Flip
Flip
Flip
Flip

X
X
X
X

Flip Y
Flip Y
Flip Y

=
=
=
=

4
5
6
7

= 6
= 7
= 4

Rotate 270

Flip Y

= 5

Rotate
Rotate
Rotate
Rotate

Flip
Flip
Flip
Flip

=
=
=
=

None
90
180
270

XY
XY
XY
XY

2
3
0
1

+ "// Global" seciton which is process by all three sections.

11/27/06
+ ability to use relative paths for $imageabs2, $fileexists, and $button by usin
g "/" as the first character. eg. "/path\to\image.jpg"
+ external editor for format string (associate .trackinfo files with an editor,
falls back to .txt editor)
+ tabs and whitespace ignored from the begining of format lines- eg:
$if(%isp
laying%,
Playing
,
Not Playing
)
+ different redraw times for different sections.
// Background
// Put background stuff here (eg images). Only drawn once.
// PerTrack
// Put stuff that changes per track here (%album%, %artist%, etc
.) Buttons go here as well.
// PerSecond
// Stuff that needs to update every second (%playback_time%, etc
)
11/22/06
+ internal changes / optimizations / bug fixes
+ mode changes through the context menu instead of double click
10/24/06
+
+
+
+

button to filter playlist: FILTER:name|value:name2|value2


button to sort playlist: SORT:name|value:name|value
$filtered(name)
$sorted(name)

10/19/06
+ button to set tags: TAG:SET:name:value
+ bug fixes
10/12/06
+ $button2 (use regular code for image and hover)
+ main menu commands can be run from buttons
9/26/06

+ added support for cwb_hooks callback notifications


+ buttons - $button(dstX,dstY,x,y,w,h,image,hover image,command,options)
8/30/06 - 16:34
+
t
+
+
+

removed "compatiblity mode". It was causing more confusion and problems that i
was worth.
rewrote lots of stuff - hopefully no more crashes....
$drawrect(X,Y,W,H,OPTIONS)
$pad(X,Y)

8/17/06 - 15:40
+ added two new notifications to update the display (when the playlist changes,
and when meta data changes).
8/17/06 - 13:00
+ fixed a bug dealing with images.
8/16/06 - 20:52
+
+
+
t
+

changed color box to output $rgb() syntax color codes.


no need for a $alignrel after $alignset - defaults to $alignrel(left,top)
changed so that this version is distinct from the original and both can coexis
added $imageabs(X,Y,IMAGENAME,OPTIONS), where
IMAGENAME is the relative path to the image from the foobar directory
OPTIONS can include "flow" which flows text around the image.

7/31/06 - 23:10
+ added $alignabs(X,Y,W,H,V) for absolute alignment with no checking for overwri
ting text.
X,Y,W(idth),H(eight) specify the bounding rectangle for the text, and H,
V specify the alignment.
$alignabs(H,V) can also be used as a shortcut.
+ added %_width% to get the display width
%_height% to get the display height
$calcwidth(TEXT) to calculate the width of the text
$calcheight(TEXT) to calculate the height of the text
7/31/06 - 10:30
+ fixed bug with $font(,,OPTIONS,) resetting size to 0.
+ tweaks to the alignment code
+ added a "compatability" mode, so that all the text before the first $align wil
l behave similar to original ($tab() will now right align text)
+ added a "relative" align mode $aliginrel(H,V) which aligns things relative to
the current vertical position. does not currently work for bottom aligned text.
+ $rgb() will reset to default color

Você também pode gostar