Go Back   Winamp Forums > Skinning and Design > Modern Skins

Reply
Thread Tools Search this Thread Display Modes
Old 3rd November 2002, 04:02   #1
Kan3da
Junior Member
 
Join Date: Sep 2002
Location: Here and there...
Posts: 4
Question n00bie questions

Heyo - brand new to this... but I'm pickin it up semi fast... here's a look at something I already made but I'm having some problems with it I cannot figure out.

Click Here

1. When I right click somewhere on my skin only Main Menu is listed
even though I have a button for the play list (which does come up).

For some reason the EQ button doesn't bring up the EQ (its set to default path
not to one I made...)

One thing I noticed... was when I clicked the play list button and it
came up, it was always blank and I had to reclick Playlist001 in LOADED
Playlists side.

Then when I right click Playlist is sectioned off like Skins is from Exit Winamp
with the horizontal line.

How can I fix this?

2. When I hold down the volume seeker and drag it along it does not display the
volume percentage at the top. Nor does it show where within the track it is when I
use the regular seeker.

3. When I go into perferences and go to the Skins option Winamp3 crashes. I have
a valid screen shot. What could be causing this?


Thanks to anyone who can help.
Kan3da is offline   Reply With Quote
Old 3rd November 2002, 11:25   #2
hammerhead
The Shark
(Forum King)
 
hammerhead's Avatar
 
Join Date: Jul 2002
Posts: 2,537
Send a message via AIM to hammerhead
i think you have to make the container id for the eq equalizer or something like that.
hammerhead is offline   Reply With Quote
Old 3rd November 2002, 16:12   #3
Kan3da
Junior Member
 
Join Date: Sep 2002
Location: Here and there...
Posts: 4
Yeah can't believe I forgot that...

EQ problem solved and fixed.

Only things left are getting the %volume to show up in the info line as well as how far along the track when you hold down the seeker.
Kan3da is offline   Reply With Quote
Old 3rd November 2002, 21:06   #4
Jammy
Junior Member
 
Jammy's Avatar
 
Join Date: Oct 2002
Posts: 46
Send a message via ICQ to Jammy
That's actually done in script in the default skin.

I've included the relevant code below, I think.

You'll need to change the .findObject() calls to have your id's in. If you don't have a seeker ghost then just ignore that one, then compile the code and add to your xml as in the default skin.

code:

/*--------------------------------------------------------------------
Main/Normal player group script.
--------------------------------------------------------------------*/

#include </lib/std.mi>

Function setTempText(String txt);
Function emptyTempText();

Global Text Songticker;
Global Slider Volbar, Seeker, SeekGhost;
Global Int Seeking;

System.onScriptLoaded() {
Group pgroup = System.getScriptGroup();

// Get songticker, Volbar & Seeker
Songticker = pgroup.findObject("Songticker");
if (songticker == null) messagebox("ooch!!", "ooch", 0, "");
Volbar = pgroup.findObject("Volume");
Seeker = pgroup.findObject("Seeker");
SeekGhost = pgroup.findObject("SeekerGhost");

if (SeekGhost != NULL)
SeekGhost.setAlpha(1);

}

Volbar.onSetPosition(int p) {
Float f;
f = p;
f = f / 255 * 100;
setTempText("Volume: " + System.integerToString(f) + "%");
}

Volbar.onSetFinalPosition(int p) {
Songticker.setAlternateText("");
}

Seeker.onSetPosition(int p) {
if (!SeekGhost && seeking) {
Float f;
f = p;
f = f / 255 * 100;
Float len = getPlayItemLength();
if (len != 0) {
int np = len * f / 100;
setTempText("Seek to " + integerToTime(np) + " / " + integerToTime(len) + " (" + integerToString(f) + "%)");
}
}
}

Seeker.onLeftButtonDown(int x, int y) {
seeking = 1;
}

Seeker.onLeftButtonUp(int x, int y) {
seeking = 0;
setTempText("");
}

SeekGhost.onSetPosition(int p) {
if (getalpha() == 1) return;
Float f;
f = p;
f = f / 255 * 100;
Float len = getPlayItemLength();
if (len != 0) {
int np = len * f / 100;
setTempText("Seek to " + integerToTime(np) + " / " + integerToTime(len) + " (" + integerToString(f) + "%)");
}
}

SeekGhost.onLeftButtonDown(int x, int y) {
SeekGhost.setAlpha(128);
}

SeekGhost.onLeftButtonUp(int x, int y) {
SeekGhost.setAlpha(1);
}

Seeker.onSetFinalPosition(int p) {
Songticker.setAlternateText("");
}

SeekGhost.onsetfinalposition(int p) {
Songticker.setAlternateText("");
SeekGhost.setAlpha(1);
}

setTempText(String txt) {
Songticker.setAlternateText(txt);
}

emptyTempText() {
Songticker.setAlternateText("");
}


Last edited by Jammy; 3rd November 2002 at 21:33.
Jammy is offline   Reply With Quote
Old 3rd November 2002, 22:01   #5
ziege
Senior Member
 
ziege's Avatar
 
Join Date: Oct 2002
Location: UK
Posts: 363
Quote:
Quote:
i think you have to make the container id for the eq equalizer or something like that.
Yeah can't believe I forgot that...

EQ problem solved and fixed.
Hey Kan3da I got the same problem, how did you fix it? I thought the EQ container was already defined in the default /xml/eq.xml?

Also I'm lurking on this to find out if anyone can help with your other problems (blank playlist, crash in prefs/skins, etc) those things have been bugging me too.
ziege is offline   Reply With Quote
Old 3rd November 2002, 22:41   #6
Kan3da
Junior Member
 
Join Date: Sep 2002
Location: Here and there...
Posts: 4
Well originally I was using the default EQ and had this line in skin.xml file.

Quote:
<include file="@DEFAULTSKINPATH@xml/eq.xml"/>
so I changed it to

Quote:
<include file="xml/eq.xml"/>
and made my own eq.xml file, defined the elements all the default elements again and the necessary other files following that.

Eventually I got sick of it and re-skined it myself.

Skin with Equalizer

To be totally honest, Im not sure why the default EQ didnt work until I added the files manually. The PL worked without doing that. But oh well...

I'm still seeking an answer on the PL issue. Until then I'm gonna work on adding this script. Thanks for the help so far everyone.
Kan3da is offline   Reply With Quote
Old 3rd November 2002, 23:01   #7
ziege
Senior Member
 
ziege's Avatar
 
Join Date: Oct 2002
Location: UK
Posts: 363
Yep I also had it set to @DEFAULT@ and it wasn't working, but I copied the 8 XML files into my skin like you said and it now works fine

BUT WHY?? I was trying to do it the same as the MAKI skin, that uses the default path and works fine - I used the exact same code and it wouldn't work. Now I've got an extra 8 xml files to go through and sort out, great :/ The thing I don't understand is the default path for the playlist works okay.

Well anyways thanks for that, at least one of my 6000 problems is solved. Now if it would just stop crashing and starting new playlists I'd almost have a use-able skin

[Edit: w00t! I just tried changing *all* the default XMLs to my own copies of them, and it fixes lots of things! Now the playlist works better, all windows can be opened from right-click, and it doesn't even crash when clicking prefs/skins... try it ]

Last edited by ziege; 4th November 2002 at 00:27.
ziege is offline   Reply With Quote
Old 3rd November 2002, 23:09   #8
ziege
Senior Member
 
ziege's Avatar
 
Join Date: Oct 2002
Location: UK
Posts: 363
Quote:
Originally posted by Kan3da
Until then I'm gonna work on adding this script. Thanks for the help so far everyone.
Oh btw this might make things easier with the script, you can copy main.maki from the MAKI skin to ur scripts folder, then add <script id="main" file="scripts/main.maki" /> to your XML and it should show up the volume/seek as you move it (worked for me anyways).
ziege 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