Official BS.Player forums

Official BS.Player forums (http://forum.bsplayer.com/index.php)
-   BS.Player Skins and Skinning (http://forum.bsplayer.com/forumdisplay.php?f=11)
-   -   Volume Track (HBtn) (http://forum.bsplayer.com/showthread.php?t=3995)

metal_termite 15th February 2004 05:16 PM

Volume Track (HBtn)
 
The instructions in skin.ini aren't too clear for the horizontal button volume track.

The old way worked fine, but wont work in the new version for me.

[Volume]
VolumeKind=CH
Volume=167,14,208
VolumeBtn=vol

In the new version I cannot get the volume HBtn to move. The PosSize variable deals with x,y,w,h but how do i indicated how far I want my HBtn to go? The old method had Volume=x,y, and max x distance.

[Volume]
Kind=HBtn
PosSize=167,14,12, 7
ButtonImg=vol
TransparentBg=0

kylek 17th February 2004 01:20 AM

The volume button will not move unless a video is playing. That may be your first problem.
Here's what your numbers are:
167=upper-left x-position of volume bar
14=upper-left y-position of volume bar
12=width volume bar will be
7=height volume bar will be

so as you have it now, the volume button will be on zero at x=167 and be on 100% at x=179 with a height of 7 pixels going from y=14 to y=21.

seems like your's should be:
volume=167,14,208(or width of volume bar),(height of volume bar)

kylek 17th February 2004 01:25 AM

sorry that's possize=167,14,(width of volume bar),(height of volume bar)

metal_termite 17th February 2004 07:51 AM

k thanks for the help.

i'm trying to port the modern winamp5 skin. hopefully i'm not breaking any copyright law.

http://members.lycos.co.uk/faggoth/bsamp.gif

metal_termite 18th February 2004 06:08 AM

It worked. now i'm having trouble with the track btn :/ the little track button wont show up. (the dimensions of the track button are 20x7)

i'll just post a chunk of the skin.ini maybe i'm doing something wrong.

[TrackBar]
; Position and size
; x,y,w,h (w,h is ignored if TrackKind=HB,VB)
PosSize=317,19,300,7

; Track bar kind,
; H-Horizontal, V-Vertical, HB-Custom bitmap horizontal, VB-Custom bitmap vertical
; HBtn - button Horizontal, VBtn - button Vertical
Kind=HBtn

;If TrackKind=HB, name of the bitmap that will be used
;Bitmap=

; If HBtn or VBtn
ButtonImg=seek

; same parameters as TrackBar
[Volume]
PosSize=167,14,50,7
Kind=HBtn
ButtonImg=vol
TransparentBg=0

kylek 19th February 2004 04:51 AM

Great looking skin you have there. Perhaps you could make a redish or bluish variant of the theme sometime. I've done some experimenting and the only possible problem i found, assuming your numbers are correct, was with your "buttonimg". here's your code:

[TrackBar]
PosSize=317,19,300,7
Kind=HBtn
ButtonImg=seek

for your "buttonimg" you point to the files "seek[n|u|d].bmp". So make sure you have a "seekn.bmp" file for normal view, a "seeku.bmp" file for when your mouse is over the button, and a "seekd.bmp" file for when you press the button. All three files can be the same, but i think they need to be named in that format to work.

Hopefully, this is the problem.

metal_termite 3rd March 2004 05:25 PM

thanks for all the help.

http://members.lycos.co.uk/faggoth/bsamp2.gif

you can download it here if you want http://www.deviantart.com/deviation/5636868/

edit: fixed link


All times are GMT +1. The time now is 07:18 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
Ad Management plugin by RedTyger


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20