Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Vertical progressbar (Read 12684 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Vertical progressbar

Very simple vertical progressbar for trackinfo panel.Just do the following:
1.Open new trackinfo panel and copy\paste the code you see below.
2.Set "edge style" to "none" and make the panel 1-character wide
3.Set the line spacing options as shown on the screenshot
4.Start using 



Version 1.0
Code: [Select]
//Set length
$puts(length,15)
//Set symbol
$puts(symbol,$char(9606))
//Set active color
$puts(active_color,$rgb(250,250,0))
//Set passive_color
$puts(passive_color,$rgb(100,100,0))
//*******************************************************************
//*******************************************************************
$puts(percent,$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%))
$puts(progress,$muldiv($get(length),$get(percent),100))
$repeat($get(passive_color)$get(symbol)$char(10),$sub($get(length),$get(progress)))
$repeat($get(active_color)$get(symbol)$char(10),$get(progress))$char(10)


Feel free to change the size,colours and symbols,enjoy
Favourite artist:CD-R
Favourite album:700MB

Vertical progressbar

Reply #1
you are the best sir!


Vertical progressbar

Reply #3
Fancy :]

They need a vertical volume control panel that doesn't have a STUPID RUDDY TRIANGLE.
hi

Vertical progressbar

Reply #4
You are definitely the best!
If you make the line spacing small enough, it really does become a verticle progress bar.

- FLAC/200GB external
- AAC 128 vbr/local
- iPod Nano 2G 8GB

Vertical progressbar

Reply #5
Is there a way to get the current TrackInfo panel's height?

If so, it'd be sexy to be able to dynamically set the length to some modification of the current TrackInfo panel's height.

Vertical progressbar

Reply #6
Great idea, thanks
Is there some way to make the bar with a gradient (i.e., the color slowly goes from... uh... black to white, or something like that)?

Vertical progressbar

Reply #7
Great idea, thanks
Is there some way to make the bar with a gradient (i.e., the color slowly goes from... uh... black to white, or something like that)?


Sure there's a way,i'll do it when i i'll have some time
Favourite artist:CD-R
Favourite album:700MB

Vertical progressbar

Reply #8
2 APO



Version 1.1
Code: [Select]
//Set length
$puts(length,25)
//Set symbol
$puts(symbol,$char(9606))
//Set active color tail
$puts(color_tail,$rgb(80,80,0))
//Set active color head
$puts(color_head,$rgb(250,250,0))
$puts(passive_color,$rgb(100,100,0))
//*******************************************************************
//*******************************************************************
$puts(percent,$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%))
$puts(progress,$muldiv($get(length),$get(percent),100))
$repeat($get(passive_color)$get(symbol)$char(10),$sub($get(length),$get(progress)))
$transition($repeat($get(symbol)$char(10),$get(progress)),$get(color_head),$get(color_tail))$char(10)
Favourite artist:CD-R
Favourite album:700MB

Vertical progressbar

Reply #9
Yet another,a little more sophisticated version.Find the colour combination that fits your foobar 






Version 2.0

Code: [Select]
//Set 1st colour
$puts(color1,$rgb(250,250,250))
//Set 2nd colour
$puts(color2,$rgb(0,0,0))
//Set marker colour
$puts(marker_color,$rgb(100,100,100))
//Set length
$puts(length,80)
//Set symbol
$puts(symbol,$char(9608))

//******************************************************************

$puts(percent,$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%))
$puts(progress,$muldiv($get(length),$get(percent),100))
$puts(bottom,$transition($repeat($get(symbol)$char(10),$get(length)),$get(color1),$get(color2)))
$puts(top,$transition($repeat($get(symbol)$char(10),$get(length)),$get(color2),$get(color1)))
$puts(a,$div($len2($get(top)),$get(length)))
$puts(pos,$add(2,$mul($get(a),$sub($get(length),$get(progress)))))
$puts(pos1,$add(2,$mul($get(a),$get(progress))))
$right($get(top),$get(pos))
$get(marker_color)$get(symbol)$char(10)
$left($get(bottom),$get(pos1))
Favourite artist:CD-R
Favourite album:700MB


Vertical progressbar

Reply #11
awesome. Just the right thing for the extra touch of green i needed.


Vertical progressbar

Reply #12
Here's how the gradient one looks in my foobar. If anyone knows how to get the height of the current window/TrackInfo panel, that'd be sweet for dynamically setting the $length variable. As well, if anyone would be kind enough to tell me how to use thumbnails instead of straight images, that'd be cool too.



moderation: please refrain from inlining images larger than roughly 800x600 and 80KB. please use thumbnails and/or links for large pictures instead.

Vertical progressbar

Reply #13
Any chance of a Horizontal one too?

Cheers

Vertical progressbar

Reply #14
A horizontal one is possible. Just remove the $char(10) symbols. I think there's a little bit of further tweaking required, but that should get you started in the right direction.

Vertical progressbar

Reply #15
Quote
Here's how the gradient one looks in my foobar. If anyone knows how to get the height of the current window/TrackInfo panel, that'd be sweet for dynamically setting the $length variable. As well, if anyone would be kind enough to tell me how to use thumbnails instead of straight images, that'd be cool too.


I don't think it's possible, but i'll check if there's a workaround

Quote
Any chance of a Horizontal one too?

Cheers smile.gif


What version are we talking about?
Favourite artist:CD-R
Favourite album:700MB

Vertical progressbar

Reply #16
The one in post #10 please

Cheers

Vertical progressbar

Reply #17
Horizontal version by Blitzmeister's request



Version 2.1

Code: [Select]
//Set 1st colour
$puts(color1,$rgb(250,250,250))
//Set 2nd colour
$puts(color2,$rgb(0,0,0))
//Set marker colour
$puts(marker_color,$rgb(100,100,100))
//Set length
$puts(length,40)
//Set symbol
$puts(symbol,$char(9608))

//******************************************************************

$puts(percent,$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%))
$puts(progress,$muldiv($get(length),$get(percent),100))
$puts(bottom,$transition($repeat($get(symbol),$get(length)),$get(color1),$get(color2)))
$puts(top,$transition($repeat($get(symbol),$get(length)),$get(color2),$get(color1)))
$puts(a,$div($len2($get(top)),$get(length)))
$puts(pos,$add(2,$mul($get(a),$sub($get(length),$get(progress)))))
$puts(pos1,$add(2,$mul($get(a),$get(progress))))
$right($get(top),$get(pos1))
$get(marker_color)$get(symbol)
$left($get(bottom),$get(pos))
Favourite artist:CD-R
Favourite album:700MB

Vertical progressbar

Reply #18
@Russell777 Could you maintain a little webpage or place with all you scripts listed, you are creating a lot of scripts but it will be hard for users to find all those lovely scripts later.

(in the wiki, here maybe?:
http://wiki.hydrogenaudio.org/index.php?ti...s_UI/Appearance )


I'm working on it.When i'm done maybe you can add a link to your Foobar tutorial (which is very helpful btw)?
Favourite artist:CD-R
Favourite album:700MB

Vertical progressbar

Reply #19
Hi,

I tried to put together a version where it looks like a container filling up.
What I was trying to achieve was a bar that at the start of the song was completly empty and by the end was completly full.  I also wanted to retain the transition between empty and full.  I had a go at altering the code but had no luck as I have difficulty understanding it.  I dont think its worth posting the changes I have made because they are so little, but if someone could lend a hint that would be cool.

Thanks.

Vertical progressbar

Reply #20
Just curious, but what would it take to add a percentile number on the progress bar that floats with the marker?

Vertical progressbar

Reply #21
Just curious, but what would it take to add a percentile number on the progress bar that floats with the marker?


Not much really,just tell me what version are you talking about
Favourite artist:CD-R
Favourite album:700MB


Vertical progressbar

Reply #23
If i got you right,then it's done:
Code: [Select]
//Set 1st colour
$puts(color1,$rgb(250,250,250))
//Set 2nd colour
$puts(color2,$rgb(0,0,0))
//Set marker colour
$puts(marker_color,$rgb(100,100,100))
//Set length
$puts(length,40)
//Set symbol
$puts(symbol,$char(9608))

//******************************************************************

$puts(percent,$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%))
$puts(progress,$muldiv($get(length),$get(percent),100))
$puts(bottom,$transition($repeat($get(symbol),$get(length)),$get(color1),$get(color2)))
$puts(top,$transition($repeat($get(symbol),$get(length)),$get(color2),$get(color1)))
$puts(a,$div($len2($get(top)),$get(length)))
$puts(pos,$add(2,$mul($get(a),$sub($get(length),$get(progress)))))
$puts(pos1,$add(2,$mul($get(a),$get(progress))))
$right($get(top),$get(pos1))
$get(marker_color)$get(percent)'%'
$left($get(bottom),$get(pos))
Favourite artist:CD-R
Favourite album:700MB