Posted by member 321598 on 2006-08-03 22:25:53
I'm trying to create a slider for geekamp with the following code (where the label is the slider itself and moveable)
To update the position of the slider, I have for the OnEnter event:
The slider itself is 16x16 icon in a move area of 64 width. The problem is everytime the slider gets updated, the volume gets set down a little. Is my math incorrect somewhere here or is there a rounding issue I'm not aware of?
AmpVolumeSliderOnMove !ParseEvars !Execute [!Amp_SetVolume %#(AmpVolumeSliderCurrentX-156)*255/48%#][!LabelUpdate Amp]
To update the position of the slider, I have for the OnEnter event:
AmpVolumeSliderOnEnter !ParseEvars !LabelMove AmpVolumeSlider %#%[before(volume('winamp'),'%')]%*48/100+156%# 4
The slider itself is 16x16 icon in a move area of 64 width. The problem is everytime the slider gets updated, the volume gets set down a little. Is my math incorrect somewhere here or is there a rounding issue I'm not aware of?