View Full Version : HELP... Displaying Volume Status?
19th April 2005, 13:32
I've created a 'modern skin' but it's still in the process of becoming usefull, or useless...
Problem... How do I display volume level status in text format and to match font to look like song title and song info but on in a different location on the screen? Is it possible to constantly see volume status? Any one with help?
Also does anyone know of a good scripting site to easily explain how to become an overnight programmer? I have some really good ideas, but I apparently have to use scripting in order to acomplish what I have in mind for my skin...
19th April 2005, 13:45
There are plenty of skinning tutorial sites, some are listed in this thread...
However, non of them will turn you into an overnight scripting guru, to get a basic grasp of MAKI and it's syntax structure takes time, to become even a half decent programmer using it takes even more time, to become uber efficient at it takes even longer.
Skinning is not an overnight skill, can't be done.
19th April 2005, 13:59
OK.. I know it'll take time to completely learn skinning. The scripts are the only thing that scares me... lol, I have created html pages before, about 6 years ago so XML took no time to learn, but I need to know basic display="?????" commands that Winamp 5 uses for things like Volume status, or if it even exists without scripting.
Thanks for the help/// still need to resolve the vol display issue
19th April 2005, 17:08
Hey, I can help you make this function... send me the files you have AND a picture of how you want the skin WITH the volume status and I'll put it in. I'll make this one function for you, if you like.. but only this.
If you zip everything, remember to zip the image "as you want it to look" inside too so you don't have to dualpost to get both uploaded.
You probably need to learn MAKI sooner or later to outcome all your wishes anyway, but this might give you a clue on how to build further..
19th April 2005, 17:31
ok.. I have everything together and compressed, how do I send the file?...
19th April 2005, 17:57
OK... I guess I'll place it in here for everyone to see my mess... lol. It works fine except for a little tweaking, and further skinning. Im more concerned getting things working, then fine tuning the locations of layers will follow.
The skin itself shows where I was wanting the volume status to be... the text 'VOLUME' can be removed and replace if necessary. So I guess itself is the image of what I kinda want it to look like.
19th April 2005, 18:48
One problem is, you've put the volume info and the volume knob two different places, so if I am to use only one .onVolumeChanged(int newVol) I need to move your script to another location, and rather NOT use .getScriptGroup() as this won't find one of them, since they are in two different groups.
I am going to put in strict addresses, and I suggest you do that for everything, else communication between objects can be hard, unless you write hundreds of eventhandlers.
Still working on this, but I'll try be done as soon as possbible.
20th April 2005, 12:45
ok... I thought it may have been too much information, or the text was in a location not able to be seen. Stupid newbies... Thanks for the help, also out of respect for you, you don't have to do anything you don't want to... Like you said I need to learn scripting in ordr to perform functions ourside the norm.
20th April 2005, 16:35
Did you get about what you expected? I replaced the text: Volume with current static Volume info..
20th April 2005, 17:17
That's it... Perfect. I removed the "Volume" text from the layer and placed another text layer above to always say volume above it. I noticed howerer that it will only display volume level after its been adjusted, and nothing unitl then, like when Winamp is first opened or the skin is refreshed... once I adjust volume with my mouse wheel the volume status then shows up, and stays like I wanted. Is that normal?
Thanks a lot for the help!!
20th April 2005, 17:29
just a quick question... I really don't like the vol wheel, even though it looks ok. It needs a little graphic tweaking to look smoother while animating, I just quickly make it ot see how it worked with a gradient map, and frame-by frame. I think it's a little big.
Actually, the whole skin is probably too big... but i plan on using this as a learning tool.
If I decided to use vol up and down buttons instead of a wheel to give the skin a more digital feel rather than analog, could I remove just the frame animation portion of the script to remove the button animation on volume change, then remove the animation layer itself?... I want to keep the work you've done...
20th April 2005, 17:30
Just add the following in the volumebyframe.m within the System.onScriptLoaded()
VolumeInfo.setText(System.integerToString((System.getVolume() * 100) / 255) + "%");
Put it as far down in this section as possible as it needs to find containers and layouts and the objects before it can start manipulating data...
It should display curretnt volume right away.. questions?
Well, the problem with smooth volume sliders, which use FX transistion instead of frames, is that they don't change color when color theme is changed. You have to either close and reopen winamp or refresh the skin by F5 or move the current rotational layer...
My pulsedriver skin (my sig) uses this kinda feature for volume knob, but would say a well-framed volume layer is better.
The Cool Dude
21st April 2005, 07:00
Global text voldis;
group sgrp = getScriptGroup();
voldis = sgrp.findObject("voldis");
there may be a bug or two cause i havent checked it, i wrote it here directly so pls try to fix it urself.
21st April 2005, 15:48
I've already made the function for him, I just forgot to ignitiate the volume status at skin load... so he had to add that line in addition ;)
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.