Go Back   Winamp Forums > Skinning and Design > Modern Skins

Reply
Thread Tools Search this Thread Display Modes
Old 29th June 2006, 21:26   #1
JW
Senior Member
 
Join Date: Nov 2004
Location: Valencia, CA
Posts: 304
Volume/mouse wheel interference

I have two different containers in my skin that have volume controls. In one (shade mode), the mouse wheel works, but not in the other (main). Oddity - when the main one is displayed, I can click on other open containers and the wheel will control the volume. Both containers are defined similarly. I've tried removing (nearly) everything from the main one, in case something was interfering with it, and it still doesn't work.

It shouldn't really even matter if there are controls or not, right? The wheel should control the volume with any container displayed, yes?
JW is offline   Reply With Quote
Old 30th June 2006, 18:31   #2
SLoB
Major Dude
 
SLoB's Avatar
 
Join Date: Jul 2003
Location: UK
Posts: 1,316
you dont say what type of control
same control i.e. standard slider, region map, animated layer
have you got volume maki scripts for both modes?
if so you could add the following
code:

System.onVolumeChanged(int newVol) {
int p = (newVol * 100) / 255;
yoursongticker.settext("Vol:" + System.integerToString(p) + "%");
}


this normally sorts the wheel out
SLoB is offline   Reply With Quote
Old 1st July 2006, 10:16   #3
pjn123
Major Dude
 
pjn123's Avatar
 
Join Date: Jan 2006
Location: /\/¯¯¯¯¯\/\ , South-Africa
Posts: 1,026
If there is components in the container the components will take the control. You can add wantfocus="1" to a group of a container with components(vid/vis/lib/...) and when this group is clicked the mouse will move the volume.

Example:
If you have to groups in the playlist container the mouse will always control the playlist(list up/down) but if you have a group with wantfocus="1" it will still move the playlist but if you click the group volume will take it again and vice versa.

ClassicPro© v2.01 : This plugin allows you to use cPro skins in Winamp. ClassicPro skins are all SUI skins and loads very quickly. ClassicPro skins is even easier to skin than Winamp Classic skins. A new layout have been added since version 2.
Download ClassicPro© ==== cPro Skins ==== ClassicPro© Homepage ==== SC Forums
pjn123 is offline   Reply With Quote
Old 1st July 2006, 14:50   #4
JW
Senior Member
 
Join Date: Nov 2004
Location: Valencia, CA
Posts: 304
Both layouts have buttons that either add or subtract 2.55 from the current volume each time they're clicked (very similar to your solution). I do have region maps that update with System.onVolumeChanged, but for display of the volume level only (and same script handles both layouts).

No components in that container, although I did have that problem when I had the playlist in the main container a long time ago
JW is offline   Reply With Quote
Reply
Go Back   Winamp 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