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: Seekbar and Volumebar Configs (Read 6280 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Seekbar and Volumebar Configs

Hello
I hope some people will post their seekbars because I am no longer happy with mine:
Code: [Select]
$puts(length,100)
$puts(zeichen1,|)
$puts(col1,$rgb(255,0,0))
$puts(zeichen2,|)
$puts(col2,$rgb(225,216,26))
$get(col2)
$repeat($get(zeichen2),$div($mul(%playback_time_seconds%,$get(length)),%length_seconds%))

$get(col1)

$repeat($get(zeichen1),$sub($get(length),$div($mul(%playback_time_seconds%,$get(length)),%length_seconds%))))


Is it possible to use some images with overlays?

Seekbar and Volumebar Configs

Reply #1
Code: [Select]
$puts(progressL,[...])
$puts(progressY,[...])
$puts(col1,[...]) better bright
$puts(col2,[...]) better medium
$puts(col3,[...]) better dark

$rectabs(10,$sub($get(progressY),1),$get(progressL),7,null,$get(col1))

$if(%playback_time%,
$if(
$strcmp(%playback_time_seconds%,0),
,
$rectabs(11,$get(progressY),$muldiv(%playback_time_seconds%,$sub($get(progressL),2),%length_seconds%),5,$get(col2),$get(col3))
)

$rectabs($add($muldiv(%playback_time_seconds%,$sub($get(progressL),2),%length_seconds%),11),$sub($get(progressY),3),1,10,null,$get(col1))

$panel(SeekPanel,Seek Panel,10,$sub($get(progressY),1),$get(progressL),7,)

 

Seekbar and Volumebar Configs

Reply #2
does anyone know how the code above me would look like?

was wondering how can I get three images to work.

-the start = "["
- the middle which progresses = "."
- the end of the progression bar = "]"

so as it goes along it'll be "[.....]"