Go Back   Winamp Forums > Skinning and Design > Modern Skins

Reply
Thread Tools Search this Thread Display Modes
Old 20th April 2005, 04:47   #1
eye_onus
Senior Member
 
eye_onus's Avatar
 
Join Date: Feb 2004
Posts: 183
Alpha layers on skins

I want to have one layer of a skin be partially transparent, and this layer is the bottom layer, also- the only thing underneath it is the background image.

While I am able to make the layer transparent, doing so causes the area underneath the layer to be black- since the only thing under the layer is the background, I have no idea what the hell's going on.

The background image is pure alpha channel, and outside the area of the layer the background image is exactly as it should be- invisible.

How do I get rid of the blakcness under the semi-transparent layer without making the layer fully opaque?

Eye/Onus

mu'o mi'e .aionys.

.i.a'o.e'e ko klama le bende pe denpa bu
eye_onus is offline   Reply With Quote
Old 20th April 2005, 11:56   #2
The Cool Dude
Senior Member
 
The Cool Dude's Avatar
 
Join Date: Jul 2004
Location: hell
Posts: 343
make sure the the w and h properties of the group is greater than what its h and w properties actualy are. also try putting an fully opaque layer that covers the black part and if this is covering any buttons etc make sure u add 'ghost="1"' to ur layer.

The Cool Dude - a bit too cool
The Windows 2000 skin
Attribs Maker
The Cool Dude is offline   Reply With Quote
Old 22nd April 2005, 23:11   #3
eye_onus
Senior Member
 
eye_onus's Avatar
 
Join Date: Feb 2004
Posts: 183
I don't think your understanding what my problem is: The layer shows up perfectly, it's transparent to the point I want it to be, the only problem is the black showing up.

The semi-transparent layer is supposed to be on the bottom, like if you had a pane of glass with an LCD matrix in it. I want to be able to see the window behind Winamp, whether it's M$IE or Photoshop- whatever- and I need to figure out how to get rid of the blackness for it to work. I know that I can use the Winamp Preferences to set the skins opacity and do it that way- but that set the opacity of everything, and all I want non-opaque is the background screen.

Because of that, I can't put a fully opaque layer underneath, and i don't need ghosting because it's literally the bottom layer- there's nothing underneath but the background.

mu'o mi'e .aionys.

.i.a'o.e'e ko klama le bende pe denpa bu
eye_onus is offline   Reply With Quote
Old 23rd April 2005, 22:23   #4
krckoorascic
Senior Member
 
krckoorascic's Avatar
 
Join Date: May 2004
Location: Serbia
Posts: 351
Send a message via ICQ to krckoorascic Send a message via AIM to krckoorascic Send a message via Yahoo to krckoorascic
try turning Desktop Alpha ON?


krckoorascic is offline   Reply With Quote
Old 25th April 2005, 05:07   #5
eye_onus
Senior Member
 
eye_onus's Avatar
 
Join Date: Feb 2004
Posts: 183
It is on.

mu'o mi'e .aionys.

.i.a'o.e'e ko klama le bende pe denpa bu
eye_onus is offline   Reply With Quote
Old 25th April 2005, 14:19   #6
nspmangalore
Senior Member
 
nspmangalore's Avatar
 
Join Date: Jan 2005
Location: mangalore, India
Posts: 127
had a similar idea when i was skinning, but gave up when the black thing wouldnt go.
nspmangalore is offline   Reply With Quote
Old 25th April 2005, 21:02   #7
eye_onus
Senior Member
 
eye_onus's Avatar
 
Join Date: Feb 2004
Posts: 183
Okay, since it seems that black thing isn't going away, does anyone know if there're .onEnterArea & .onLeaveArea type event calls that apply to the entire layout as a whole?

Eye/Onus

mu'o mi'e .aionys.

.i.a'o.e'e ko klama le bende pe denpa bu
eye_onus is offline   Reply With Quote
Old 26th April 2005, 07:57   #8
The Cool Dude
Senior Member
 
The Cool Dude's Avatar
 
Join Date: Jul 2004
Location: hell
Posts: 343
use a timer and use this function :
isMouseOverRect()

The Cool Dude - a bit too cool
The Windows 2000 skin
Attribs Maker
The Cool Dude is offline   Reply With Quote
Old 26th April 2005, 12:38   #9
krckoorascic
Senior Member
 
krckoorascic's Avatar
 
Join Date: May 2004
Location: Serbia
Posts: 351
Send a message via ICQ to krckoorascic Send a message via AIM to krckoorascic Send a message via Yahoo to krckoorascic
or use these two events
code:

Layout.onMouseEnterLayout();
Layout.onMouseLeaveLayout();




krckoorascic is offline   Reply With Quote
Old 27th April 2005, 03:03   #10
eye_onus
Senior Member
 
eye_onus's Avatar
 
Join Date: Feb 2004
Posts: 183
I've tried to use those events, they don't seem to work for unknown reasons.

mu'o mi'e .aionys.

.i.a'o.e'e ko klama le bende pe denpa bu
eye_onus is offline   Reply With Quote
Old 27th April 2005, 09:59   #11
The Cool Dude
Senior Member
 
The Cool Dude's Avatar
 
Join Date: Jul 2004
Location: hell
Posts: 343
do u use WA 5.08? do u use the latest SDK?

The Cool Dude - a bit too cool
The Windows 2000 skin
Attribs Maker
The Cool Dude is offline   Reply With Quote
Old 28th April 2005, 02:17   #12
eye_onus
Senior Member
 
eye_onus's Avatar
 
Join Date: Feb 2004
Posts: 183
I'm using the latest version of Winamp- 5.08e
I don't as far as the SDK, because all I'm using from the SDK is mc.exe and std.mi- I don't know what version they were released with, but I do know there's no compile error- they just don't do anything.

mu'o mi'e .aionys.

.i.a'o.e'e ko klama le bende pe denpa bu
eye_onus is offline   Reply With Quote
Old 28th April 2005, 02:39   #13
leechbite
Banned
 
leechbite's Avatar
 
Join Date: Sep 2003
Location: Canada
Posts: 635
Send a message via Yahoo to leechbite
yeah those 2 functions didnt work for me either.
leechbite is offline   Reply With Quote
Old 28th April 2005, 12:08   #14
The Cool Dude
Senior Member
 
The Cool Dude's Avatar
 
Join Date: Jul 2004
Location: hell
Posts: 343
http://forums.winamp.com/showthread....hreadid=184047

The Cool Dude - a bit too cool
The Windows 2000 skin
Attribs Maker
The Cool Dude is offline   Reply With Quote
Old 28th April 2005, 13:29   #15
krckoorascic
Senior Member
 
krckoorascic's Avatar
 
Join Date: May 2004
Location: Serbia
Posts: 351
Send a message via ICQ to krckoorascic Send a message via AIM to krckoorascic Send a message via Yahoo to krckoorascic
not works for me too now checked, sorry i just seen them in std.mi never tryed them till now...

them u have to use a timer with GuiObject.isMouseOver(int x, int y) function... something like this:
code:

Global Boolean isin;
urTimer.onTimer()
{
if(urLayout.isMouseOver(getMousePosX(), getMousePosY())
if(!isin)
{
isin=true;
//on mouse enter layout
}
else
{
isin=false;
//on mouse leave layout
}
}



krckoorascic is offline   Reply With Quote
Old 29th April 2005, 03:01   #16
rohan_pwln
Major Dude
 
rohan_pwln's Avatar
 
Join Date: Aug 2002
Location: 18 inches from hell
Posts: 736
got the same problem

My MAKI contribs.: STONE
My WebSite My Blog My Skins: fnk 32 Rioport v1 Sienna Burning Steel
My Saying: Eat healthy, Stay fit... Die Anyway
rohan_pwln is offline   Reply With Quote
Old 29th April 2005, 15:54   #17
Pimousse38
Senior Member
 
Pimousse38's Avatar
 
Join Date: Jan 2004
Location: Grenoble (France)
Posts: 169
this work fine

code:
HintObject.onEnterArea() { your stuff }
HintObject.onLeaveArea() { your stuff }


Sorry for my bad English, i'm French

my skin : Pimeer v2.2
my homepage : Skin Winamp
french community : Todae.fr
Pimousse38 is offline   Reply With Quote
Old 29th April 2005, 23:27   #18
eye_onus
Senior Member
 
eye_onus's Avatar
 
Join Date: Feb 2004
Posts: 183
The HintObject code will work on all of Winamp, as in when the mouse enters/leaves the visible area of the skin?

If that's what your saying- thank you much, that's exactly what I need.

Eye/Onus

mu'o mi'e .aionys.

.i.a'o.e'e ko klama le bende pe denpa bu
eye_onus is offline   Reply With Quote
Old 30th April 2005, 06:28   #19
Pimousse38
Senior Member
 
Pimousse38's Avatar
 
Join Date: Jan 2004
Location: Grenoble (France)
Posts: 169
extract of std.mi :

code:
/**
onEnterArea()

Hookable. Event happens when the mouse
enters the objects area.
*/
extern GuiObject.onEnterArea();

/**
onLeaveArea()

Hookable. Event happens when the mouse
leaves the objects area.
*/
extern GuiObject.onLeaveArea();


Sorry for my bad English, i'm French

my skin : Pimeer v2.2
my homepage : Skin Winamp
french community : Todae.fr
Pimousse38 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