Go Back   Winamp Forums > Skinning and Design > Modern Skins

Reply
Thread Tools Search this Thread Display Modes
Old 12th July 2002, 07:05   #1
frisbeemonkey
Major Dude
 
frisbeemonkey's Avatar
 
Join Date: Jun 2002
Posts: 851
Question sysregion values

Despite having answered two questions on sysregion="1" tonight, I was wondering if anyone could give me a basic description of what each value for sysregion does.
From my understanding:
sysregion = "1" - tells winamp to draw the layer whether or not there is a visible background under it.
sysregion = "0" - ?
sysregion = "-1" - ?
sysregion = "-2" - tells winamp to anti-alias the edges of the layer to blend it in with whatever is under it (does this work with the desktop on XP/2000?)

I'm having problems with a toggle button, it draws fine when off, but when pressed or active it only draws where the off setting originally was. There is no background behind it, so I have sysregion set to 1 which works for the initial setting, but not when you change states.
Anyways, if you know what the other values of sysregion do(or know that my understanding of the other two is wrong) or have any ideas unrelated to sysregion as to why my toggle button is behaving that way, please let me know.
Thanks,
~Frisbeemonkey
frisbeemonkey is offline   Reply With Quote
Old 12th July 2002, 09:31   #2
Naamloos
Forum King
 
Naamloos's Avatar
 
Join Date: Mar 2001
Location: irc.tehflap.org/*******
Posts: 3,085
-2 is cut out from the bg
Naamloos is offline   Reply With Quote
Old 12th July 2002, 12:13   #3
Gonzotek
Gunslinger
 
Gonzotek's Avatar
 
Join Date: May 2000
Location: Terminus
Posts: 4,693
Try increasing the amount of the transparent pixels surrounding the initial element (image="", as oppposed to activeimage="") to make it large enough to cover any other images the button has. It sounds to me like it's using the sysregion of the first image for the second.

-=Gonzotek=-

I was away for a while.
But I'm feeling much better now.
Gonzotek is offline   Reply With Quote
Old 12th July 2002, 17:08   #4
AndrewMackowski
Member
 
Join Date: Mar 2002
Posts: 92
Naamloos is right for sysregion="-2", sysregion="0" means that the layer will be drawn normally, ie. only if there is background behind it. And I am clueless for what sysregion="-1" does--even though I've experimented with it.
AndrewMackowski is offline   Reply With Quote
Old 13th July 2002, 05:00   #5
frisbeemonkey
Major Dude
 
frisbeemonkey's Avatar
 
Join Date: Jun 2002
Posts: 851
Alrighty, thanks for clearing that up everyone. If anyone finds out what sysregion="-1" does, please share.

As for your suggested fix, Gonzotek, the three images are all the same dimensions(they all are within the rectangle of the off-state image.) And when it draws the other two states, it leaves a black filled area where off was(which should now be transparent.) On a side note, it works in XP w/o any problems(when desktop transparency is on.)

~FrisbeeMonkey

Last edited by frisbeemonkey; 13th July 2002 at 06:47.
frisbeemonkey is offline   Reply With Quote
Old 8th January 2003, 17:19   #6
KrypticK2
Junior Member
 
Join Date: Nov 2002
Posts: 5
Send a message via ICQ to KrypticK2 Send a message via AIM to KrypticK2
Hmm ok this is a old thread and i'm not sure if everyone has figured it out already or not but here it goes. From what I can tell if you use sysregion="-1" it only knocks out the graphic directly on top of it. -2 knocks everything out on top of it. Anyhow i'm pretty sure someone had to of cleared this up by now. It's just I read this thread while trying to fix my one drawer and tried -1 just to see and it worked. So I figured alright i'll just give a response about it.
KrypticK2 is offline   Reply With Quote
Old 8th January 2003, 17:46   #7
SOOPRcow
Senior Member
 
Join Date: Dec 2001
Location: San Diego, CA USA
Posts: 125
Send a message via AIM to SOOPRcow
sysregion="1" - draws object even if there is no background bellow it. The object still has to be within the layouts region. Only used if desktop alpha is turned off.

sysregion="0" - default.

sysregion="-1" - As far as I can tell it does the same thing as sysregion="0" but I have yet to try KrypticK2's idea.

sysregion="-2" - Cuts The layouts region based on the given bitmap. Any pixel with an alpha value greater then 0 is used to cut the region. Once again only works if desktop alpha is turned off.

sysregion="and" - Draws a pixel only if its parent group's (or layout's) background image has a pixel (with alpha value greater then 0) in the same exact spot directly bellow the pixel (the image can be moved and it will be updated correctly). This does not require desktop alpha to be off.

Hope that helps

David Serrano :: Winamp5 Skining Guru
SOOPRcow is offline   Reply With Quote
Old 9th January 2003, 03:51   #8
Strike&Co.
Junior Member
 
Join Date: Sep 2002
Location: the state of confusion
Posts: 28
Send a message via AIM to Strike&Co.
Quote:
Originally posted by SOOPRcow
sysregion="1" - draws object even if there is no background bellow it. The object still has to be within the layouts region. Only used if desktop alpha is turned off.

sysregion="-2" - Cuts The layouts region based on the given bitmap. Any pixel with an alpha value greater then 0 is used to cut the region. Once again only works if desktop alpha is turned off.
So what happens if DTA is turned on? I'm using sysregion 2 and was hoping sysregion 1 would be helpful, but I'm running win98 so I have no clue what my stuff looks like with DTA on.
I'm assuming I should make the parts of the background that get the sysregion="2" treatment transparent on the png; but that means I'll need to doctor up a second image for that use, and I have no clue how the sysregion="1" stuff would come out.
Bother.
Strike&Co. is offline   Reply With Quote
Old 9th January 2003, 10:54   #9
J_Bloggs
Major Dude
 
J_Bloggs's Avatar
 
Join Date: Jan 2002
Posts: 1,778
Just make it to not use DTA, to much DTA would mean people with win98 wouldn't be able to use it, and you wouldn't want to not be able to use your own skin now would you?

¯¯¯¯Joe Bloggs____
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
J_Bloggs is offline   Reply With Quote
Old 10th January 2003, 14:30   #10
Digitalhigh
Guest
 
Posts: n/a
So sysregion="and" would be useful if, say, you wanted to render a drop shadow for a drawer or something. The drawer slides out, and once there's something beneath the shadow, it shows up, correct?
  Reply With Quote
Old 7th March 2003, 20:09   #11
rpeterclark
Major Dude
(Reviewer)
 
rpeterclark's Avatar
 
Join Date: Aug 2002
Location: South Florida
Posts: 1,387
Frisbee, did you ever find a solution to your problem? I have run into this and have not figured it out yet. Any suggestions?
rpeterclark is offline   Reply With Quote
Old 7th March 2003, 20:50   #12
frisbeemonkey
Major Dude
 
frisbeemonkey's Avatar
 
Join Date: Jun 2002
Posts: 851
No, I never did. The problem was with my SpaceGhost skin, which I ended up abandoning for better things. What you could try is using an AnimatedLayer. onLeftButtonDown go to a pressed Frame, onLeftButtonUp go to the new state's(on or off) Frame. I haven't tested this out, but AnimatedLayers seem to handle updating better. If it is something with an action you can't mimic in MAKI, don't forget you can always just create a dummy Button and leftClick it when you want to perform the action.
Hope this helps,
~FrisbeeMonkey
frisbeemonkey 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