Go Back   Winamp Forums > Skinning and Design > Modern Skins

Reply
Thread Tools Search this Thread Display Modes
Old 22nd September 2006, 00:29   #1
r4dius
Junior Member
 
r4dius's Avatar
 
Join Date: Mar 2002
Posts: 47
desktop alpha and hiding / substract sysregion ?

Hi,
I can't find how to use sysregion="-2" or -1 with my skin (it only works when I disable the desktop alpha)
basically my skin is like that
code:
<container id="main" name="Player Window">
<layout id="normal" desktopalpha="1" h="117" w="245">
<layer image="img.backgroundalpha" sysregion="1"/>


for exemple I'd like to hide some of this last layer using another one with sysregion="-2", is it impossible when using desktop alpha or is there another way ?
Thanks
r4dius is offline   Reply With Quote
Old 22nd September 2006, 02:05   #2
PseudoChron
Member
 
PseudoChron's Avatar
 
Join Date: Sep 2006
Posts: 66
Send a message via AIM to PseudoChron
sysregion only works when desktop alpha is disabled
PseudoChron is offline   Reply With Quote
Old 22nd September 2006, 03:14   #3
r4dius
Junior Member
 
r4dius's Avatar
 
Join Date: Mar 2002
Posts: 47
Thanks, too bad :/
r4dius is offline   Reply With Quote
Old 22nd September 2006, 10:28   #4
TheElusiveMelon
Senior Member
 
TheElusiveMelon's Avatar
 
Join Date: Feb 2005
Location: Kent, England
Posts: 353
Well, for a given layout, you can define a standard image and an alpha image, if that is what you were trying to do.

<layout id="normal" background="main" alphabackground="mainalpha"/>

So you use those tags, and winamp changes between the images depending on alpha setting. Also you could make layers switch, but you would need a script do to that job.
TheElusiveMelon is offline   Reply With Quote
Old 22nd September 2006, 10:42   #5
Michgelsen
Major Dude
 
Michgelsen's Avatar
 
Join Date: Oct 2003
Location: Netherlands
Posts: 1,416
Quote:
Originally posted by PseudoChron
sysregion only works when desktop alpha is disabled
Not true.

How would you explain the use of regions on the playlist editor for example?

Using smooth edges is a different story, but that has nothing to do with the possibility to use sysregion="-2".
Michgelsen is offline   Reply With Quote
Old 22nd September 2006, 23:27   #6
TheElusiveMelon
Senior Member
 
TheElusiveMelon's Avatar
 
Join Date: Feb 2005
Location: Kent, England
Posts: 353
Well i've tried using sysregion on the main window that has a normal and alpha background set. The sysregion="-2" only works with DTA turned off in that case.
TheElusiveMelon is offline   Reply With Quote
Old 23rd September 2006, 02:16   #7
PseudoChron
Member
 
PseudoChron's Avatar
 
Join Date: Sep 2006
Posts: 66
Send a message via AIM to PseudoChron
DTA does not apply to the Playlist window. It can't use desktop alpha, so for that window it is always disabled.
PseudoChron is offline   Reply With Quote
Old 23rd September 2006, 11:11   #8
Michgelsen
Major Dude
 
Michgelsen's Avatar
 
Join Date: Oct 2003
Location: Netherlands
Posts: 1,416
Ok maybe I misunderstood something. I think I missed the normal and alphabackground thing. I will try it.

Yes you're right and I'm sorry! On the noalpha background the region acts normal, but as soon as I enable desktopalpha and the skin uses the alphabackground, the region turns black.
Michgelsen is offline   Reply With Quote
Old 24th September 2006, 15:00   #9
TheElusiveMelon
Senior Member
 
TheElusiveMelon's Avatar
 
Join Date: Feb 2005
Location: Kent, England
Posts: 353
Yeah, and thats pretty annoying, because a sysregion="-2" block is a useful way to hide the top of drawers in shade modes where the drawer is taller than that part of the skin.
TheElusiveMelon is offline   Reply With Quote
Old 24th September 2006, 19:52   #10
r4dius
Junior Member
 
r4dius's Avatar
 
Join Date: Mar 2002
Posts: 47
Yep, I wanted to add a background pattern image over the background image (using tiling) and hide the borders as the background has rounded borders, now I can't do it and I don't see another way to do it when using dalpha :'(
r4dius is offline   Reply With Quote
Old 25th September 2006, 08:55   #11
martin.deimos
Android/UI Development
 
martin.deimos's Avatar
 
Join Date: Sep 2004
Location: Bavaria
Posts: 1,240
Send a message via ICQ to martin.deimos Send a message via AIM to martin.deimos Send a message via Yahoo to martin.deimos
why need you a beg image?
lets say you want to sunstract 10 px from your bg, then why don't simply use a bg which has x="10" and h="-10" and relath="1"?
or do something i did with my alpha-standardframe:
simply change the images on the layers via maki when dta_on/off changes?
can u perhaps post some code?

WebSite: www.skinconsortium.com - Community for Userinterface Design & Coding
Skins: Click Here
martin.deimos is offline   Reply With Quote
Old 25th September 2006, 20:05   #12
r4dius
Junior Member
 
r4dius's Avatar
 
Join Date: Mar 2002
Posts: 47
Well I wanted the bg pattern to overlay the all thing (as there's a 1pixel black border it can be x=1 y=1 and w=-1 h=-1) so when the pattern is over a rounded border it suck ^^,
just as example for the left top corner
r4dius 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