Old 3rd June 2005, 13:16   #1
fsk
Senior Member
 
fsk's Avatar
 
Join Date: Aug 2002
Location: right around the corner
Posts: 223
a few questions

hi

i am new to skining and have a coule of questions i cant seem to find answers for.

how do you make a custom component resizable

is it posible to toggle a custom component the same way as the eq and pl... (how do you get the guid)

is it posible to remove a custom component from the main popup menu component list

any info on this would be grately appreciated

I hate signatures!!
*bangs his head on the keyboard in hope of getting an idea*
Ufihreevf43n98pevfr
fsk is offline   Reply With Quote
Old 3rd June 2005, 13:36   #2
Mr Jones
Nothing to say...
 
Mr Jones's Avatar
 
Join Date: Sep 2000
Location: UK
Posts: 23,064
By component I presume you mean any other window that's not part of the default winamp installation , like video or playlist or something...?

In order...
1)A resizer would probably work...
code:

<layer
id="Resizer"
scale="bottomright"
x="278" y="283"
h="7" w="7"
tooltip="RESIZE"
/>



2) Simply toggle the container name.
code:

<button
id="Somebutton"
action="TOGGLE" param="somecontainer"
x="170" y="299"
image="blah"
downImage="blah"
activeImage="blah"
rectrgn="1"
tooltip="Toggle "
/>



3) I think you can add dynamic="0" to your container tag to remove the entry out of the main window, however I think you would then have problems toggling it or accessing it with any other scripts, been a while since I tried that, I also don't think it totaly removes it anyhow, leaves a blank line where it used to be. You could give your container a blank name , but that would also then show up as a blank line in the context menu.
Mr Jones is offline   Reply With Quote
Old 3rd June 2005, 14:01   #3
Michgelsen
Major Dude
 
Michgelsen's Avatar
 
Join Date: Oct 2003
Location: Netherlands
Posts: 1,416
3) use nomenu="1" in the <container ... > tag.
Michgelsen is offline   Reply With Quote
Old 3rd June 2005, 19:04   #4
fsk
Senior Member
 
fsk's Avatar
 
Join Date: Aug 2002
Location: right around the corner
Posts: 223
thx guys

the second and the third question solved.
the resizer thing is ok but its not what i was thinking about.
i meant to resize it like playlist and such where the corners dont strech.

id like to make something that looks like the default modern shaded playlist. where you have that slider and you can strech it horizontaly only

I hate signatures!!
*bangs his head on the keyboard in hope of getting an idea*
Ufihreevf43n98pevfr
fsk is offline   Reply With Quote
Old 5th June 2005, 13:23   #5
Michgelsen
Major Dude
 
Michgelsen's Avatar
 
Join Date: Oct 2003
Location: Netherlands
Posts: 1,416
Oh yeah I noticed that in jones' example but forgot to tell you: scale="bottomright" should be resize="topleft" or ="topright" or "left" or something like that to get the pledit idea.
Michgelsen is offline   Reply With Quote
Old 5th June 2005, 14:15   #6
rohan_pwln
Major Dude
 
rohan_pwln's Avatar
 
Join Date: Aug 2002
Location: 18 inches from hell
Posts: 736
just a michgelsen said, but if you do not want the corners to stretch, you need to make grid for the overall layout and the grid should have an attribute fitparent="1".

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 5th June 2005, 14:33   #7
hammerhead
The Shark
(Forum King)
 
hammerhead's Avatar
 
Join Date: Jul 2002
Posts: 2,537
Send a message via AIM to hammerhead
Use relatw="1", then use minus values for the width.. for example if your layouts width is 200 and your sliders w value is -10, your sliders width will be 200-10, 190. this will change every time the layout is resized.
hammerhead is offline   Reply With Quote
Old 5th June 2005, 15:36   #8
fsk
Senior Member
 
fsk's Avatar
 
Join Date: Aug 2002
Location: right around the corner
Posts: 223
I did it! well almost:/
im haveing this problem with minimal width. I want it to be 48 but it wants to be 96 have no clue why, heres the code if anyone can spot anything.


Quote:
<groupdef id="normal.resize.group" w="0" h="48" relatw="1">

<layer id="normal.resizeleft" x="0" y="0" w="4" h="48" image="normal.backgroundleft" sysregion="1" resize="left" tooltip="RESIZE"/>
<layer id="normal.resizemidle" x="4" y="0" w="-4" h="48" relatw="1" image="normal.backgroundmidle" sysregion="1" />
<layer id="normal.resizeright" x="-4" y="0" w="4" h="48" relatx="1" image="normal.backgroundright" sysregion="1" resize="right" tooltip="RESIZE"/>

</groupdef>

<layout
id="normal"
w="48"
h="48"
minimum_w="48"
droptarget="pldr">

<group id="normal.resize.group" x="0" y="0" h="48" w="0" relatw="1"/>


</layout>

I hate signatures!!
*bangs his head on the keyboard in hope of getting an idea*
Ufihreevf43n98pevfr
fsk is offline   Reply With Quote
Old 5th June 2005, 20:58   #9
fsk
Senior Member
 
fsk's Avatar
 
Join Date: Aug 2002
Location: right around the corner
Posts: 223
5 hours later and i still cant figure out the minimalwidth thig. im sure its something so damn stupid im gonna cry when i find out what it is.

I hate signatures!!
*bangs his head on the keyboard in hope of getting an idea*
Ufihreevf43n98pevfr
fsk is offline   Reply With Quote
Old 5th June 2005, 21:06   #10
Michgelsen
Major Dude
 
Michgelsen's Avatar
 
Join Date: Oct 2003
Location: Netherlands
Posts: 1,416
Understandable, because by adding relatx="1" you kind of reverse the values, so now x="4" means what is normally x="-4": therefore it's now outside your layout.
Michgelsen is offline   Reply With Quote
Old 5th June 2005, 21:07   #11
fsk
Senior Member
 
fsk's Avatar
 
Join Date: Aug 2002
Location: right around the corner
Posts: 223
heh figured it out right after i posted (i edited the post because of it )

I hate signatures!!
*bangs his head on the keyboard in hope of getting an idea*
Ufihreevf43n98pevfr
fsk is offline   Reply With Quote
Old 5th June 2005, 21:08   #12
Michgelsen
Major Dude
 
Michgelsen's Avatar
 
Join Date: Oct 2003
Location: Netherlands
Posts: 1,416
Ah I see the posting times now
Michgelsen 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