Go Back   Winamp Forums > Skinning and Design > Modern Skins

Reply
Thread Tools Search this Thread Display Modes
Old 11th April 2002, 05:54   #1
GNinnes
Junior Member
 
Join Date: Apr 2002
Posts: 4
Question HELP ME (please) in getting a toggle button working

I am really feeling my way through the dark with this, so please, any assistance you could offer would be greatly appreciated.

I am just trying to load a simple toggle button, it loads the graphics beautifly, but they don't do anything. Oh, you can press them as much as you like, but they have little effect on winamp.

I was lead to believe I had to load this script file:

<scripts>
<script id="Spank me" file="scripts/sysfunc.maki"/>
</scripts>

This was the code I used to initiate the toggle button:

<togglebutton id="Shuffle" image="player.shuff" activeimage="player.shuff.down" downimage="player.shuff.hvr" x="44" y="16" rectrgn="1" tooltip="Shuffle"/>


If anyone could help me, it woudl be massively appreciated.

Thankyou.
GNinnes is offline   Reply With Quote
Old 11th April 2002, 06:24   #2
Hollow
Major Dude
 
Hollow's Avatar
 
Join Date: Oct 2001
Location: Baker Lab, Ithaca NY
Posts: 1,128
Send a message via AIM to Hollow
the sysfunc script takes shuffle and other buttons that are in the main container, normal layout, if yours are somewhere else you need to a.) move them there or b.) (the better choice) edit sysfunc.m and recompile it to point to the right place.

The moon is made of cheese.
Oh for some tasty moon cheese.
www.redtetrahedron.org
Hollow is offline   Reply With Quote
Old 11th April 2002, 07:08   #3
GNinnes
Junior Member
 
Join Date: Apr 2002
Posts: 4
Talking Thankyou so much

Fantastic. It works now. Thankyou thankyou.

I edited the script fil so that it pointed to the container with the toggles in it. Now the toggles do what they are meant to. But i have somehow intorduced a new error.

There is still some sort of red error message that appears for a brief moment:

Script error , null pointer

I can only imagine that this has something to do with my complete lack of knowledge with handling those scripting files. Is there something extra in the script file I should have changed?

Thanks
Gerard
GNinnes is offline   Reply With Quote
Old 11th April 2002, 13:21   #4
Gonzotek
Gunslinger
 
Gonzotek's Avatar
 
Join Date: May 2000
Location: Terminus
Posts: 4,693
There's probably other buttons/objects variables in the sysfunc script that now point your layout (used to point to Main, Normal). If they don't physically exist in the xml of your skin, then the sysfunc script would hit a null object error at some point. Go through the global variable names near the top of sysfunc.m and see if you have the matching objects in your xml.

As before you can either edit the script to match the skin or the skin to match the script.

Good luck,
-=Gonzotek=-

I was away for a while.
But I'm feeling much better now.
Gonzotek 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