Old 12th October 2002, 08:07   #1
AndrewMackowski
Member
 
Join Date: Mar 2002
Posts: 92
Question Help with my rotating layer volume knob!!

I'm working on a rotating volume knob, instead of using animations. However, the nob rotates erratically when I try it out. Here's a code sample:

code:
rotatevolume(int deg) { // deg is the ABSOLUTE degree to rotate to
double r = _volumerotGetRotationDegree(); // r is the current ABSOLUE degree of rotation
_volumerotRotateDegree(-(deg - r)); // rotate by the difference of the two, giving RELATIVE rotation
}



The volume-rotation functions seem to be Relative, so it would be logical that you could subtract the current degree from the new degree, and rotate to that angle. However, that doesn't seem to be working. So, does anyone have any ideas? Are there any skins that I could look at that have rotating knob scripts that rotate a layer instead of playing an animation?
AndrewMackowski is offline   Reply With Quote
Old 14th October 2002, 08:38   #2
AndrewMackowski
Member
 
Join Date: Mar 2002
Posts: 92
Well, now it seems that the volume rotation functions actually aren't relative rotations, which clears things a lot. I solved my problem, bye.
AndrewMackowski is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Skinning and Design > Modern Skins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump