Help - Search - Members - Calendar
Full Version: Need help with some %playlist_number% code
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
Tvk
In my ColumnsUI, I have one column to the left which displays the playlist number. I basically want it to have 4 digits all the time. Like if the playlist number is 7, it would display 0007. I also want to make the color on the zeros blend in more with my dark background, and the actual number brighter. How can I do this?
Frank Bicking
CODE
$replace($pad_right($num(%playlist_number%,),4,_),_,$rgb(144,144,144)0$rgb())

Replace $rgb(144,144,144) with the color you'd like to set for the zeros.

Numbers after the leading zeros will have the default color.
If they should have a different one, replace the $rgb() statement by something like $rgb(255,255,255).
Tvk
Thanks. smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.