PDA

View Full Version : Skinning/Scripting Tips and Tricks


Lucas
12th November 2001, 15:37
How to make a volume control, the easy way.

There's been some questions about how to make a vertical volume slider and how to do a mute function. I wrote a volume library that does it all and you can even take it for almost any progressive volume bar.

So I made a very simple and basic skin to illustrate how to work around with it. If you use the lib included with this skin, let me know, credits in your skin would be appreciated but not necessary.

Updated

Added a drawer.m script with graphics as a simple drawer example.

Download, ~13kb file, scripts compiled to work with Winamp 3 beta 2
http://lucas.blorp.com/demoskin.wal

P.S. You can access playlist and components using the context menu.

Cheers,
Luc

kingo'mountain
22nd February 2002, 07:01
hello mods... youre free to edit my post for your taste!

skining mini FAQ

i want to skin, where should i start?
first, examine other skins by renaming them to *.zip
and open them. youll see many files divided to folders.
graphics and code, see how a skin is built.


ok, i saw it, now what?
follow this link to my friend's site,
it has very basic tut... right from scratch
(no prev knowledge needed)
go here (http://pixelpusher.freeservers.com/Winamp/tutorials/scratch.htm)


basics are good, i wanna do leet shit!
after you created a basic skin, go back to
pixelpusher's site (above) and open the alpha channel tut.
read it carefully... and create a nice background
and buttons using this tut

[mods, enter more stuff here, or above]

[mod entry] you suck :p [/mod entry]

kingo'mountain
24th February 2002, 22:53
some basic but important tips:

1.) its important that you put xml in the right place
the skin.xml should not be in the xml folder,
it should be at your most upper one (with the
directories > player, xml, scripts etc.

2.) be sure to link files and file ID's correctly!
if you dont... componets (graphics) will be missing
or an error will show up

3.) when making a freeform background, watch your canvas,
even if you have white (transparent) corners, they will
always be your coordinates starting point for layout
(see attachment)

DJGrenola
8th August 2002, 03:42
Never place a // comment after a MAKI #define statement, on the same line. The results can be very ugly to debug.

Bizzeh
9th August 2002, 02:28
http://lucas.blorp.com/demoskin.wal <<< dead link