Old 7th October 2001, 08:46   #1
ertmann|CPH
Forum Viking
(Forum King)
 
ertmann|CPH's Avatar
 
Join Date: Jan 2001
Location: The North
Posts: 3,541
Question XML Help, please

regredebly im an idiot at coding xml/wa3 so i need some help here:

im making a skin with a menu on the right side with links to
Playlist, Equalizer, Media Libary, AVS VIS and Shoutcast - I want them all to open in a main window when clicked, with the coordinates:
x="47" y="60" h="284" w="314"

could somebody help me out by wrinting the code for it in this post

best Regards, Stefan
ertmann|CPH is offline   Reply With Quote
Old 7th October 2001, 09:01   #2
ertmann|CPH
Forum Viking
(Forum King)
 
ertmann|CPH's Avatar
 
Join Date: Jan 2001
Location: The North
Posts: 3,541
ohhh and btw, can i have play and pause as the same button (design issues)
ertmann|CPH is offline   Reply With Quote
Old 7th October 2001, 20:46   #3
Naamloos
Forum King
 
Naamloos's Avatar
 
Join Date: Mar 2001
Location: irc.tehflap.org/*******
Posts: 3,085
search in the default skin the PL button which toggles the PL and then find in your .wac dir for the right names for the others....
now copy these and edit their names

for the play/pause thingy, you have to use a script but in this script i have one big bug and that is when you (re)load the skin when its playing it will display the wrong button... Wanna have it?
Naamloos is offline   Reply With Quote
Old 7th October 2001, 20:53   #4
ertmann|CPH
Forum Viking
(Forum King)
 
ertmann|CPH's Avatar
 
Join Date: Jan 2001
Location: The North
Posts: 3,541
noname: yup, give it to me!

got the Playlist, AVS and Media Libary working, cant seem to figure out how to get the equalizer and the shoutcast list working

oh and a new qustion how can i change the font from green to light blue?
ertmann|CPH is offline   Reply With Quote
Old 7th October 2001, 21:05   #5
s0be
Major Dude
 
s0be's Avatar
 
Join Date: Jun 2001
Location: melbourne Posts: First
Posts: 1,313
Send a message via ICQ to s0be Send a message via AIM to s0be Send a message via Yahoo to s0be
Quote:
Originally posted by no*name
for the play/pause thingy, you have to use a script but in this script i have one big bug and that is when you (re)load the skin when its playing it will display the wrong button... Wanna have it?
If you use a system.onload function, you can have it check to see if it's playing and decide which button it should show. ALthough there might be a bug in WA3 that it doesn't always run system.onload. oh well

/*
S0Be
*/

And On that day, the Lords of the land said unto their Master Architect, "The temple you have made to the gods of Wasabi and Maki has brought us no great prosperity" and they sent out him into the lands.

As he traveled to a far off land, he found he wasn't traveling alone, but that he had gained companions, and when they found their new land, they started work on a new temple, one that would be OPEN to all who wanted to worship.

from The Book of Wasabi C 12 Vs 09 (pg 2003)
s0be is offline   Reply With Quote
Old 8th October 2001, 05:41   #6
lunarboy1
Forum King
 
lunarboy1's Avatar
 
Join Date: Dec 2000
Location: Somewhere, USA
Posts: 2,233
Heres for the pause button thingie:

code:


Global Timer pausecheck;
Global Int before, after;

System.onScriptLoaded()
{
pausecheck.setDelay( 20 );
before = system.getPosition();
pausecheck.start();
}

pausecheck.onTimer()
{
after = system.getPosition();
if( after == before )
{
playbutton.show();
pausebutton.hide();
}
else
{
pausebutton.show();
playbutton.hide();
}
}




Thats the general gist of it. Not the exact script, but i think i got the important stuff.
lunarboy1 is offline   Reply With Quote
Old 8th October 2001, 06:11   #7
Francis
French Admin
 
Join Date: Nov 2000
Posts: 329
Don't forget that you need to instantiate your timers with 'new' and delete them with 'delete' (in system.onscriptunloading).

Here is one with no timer :

code:

#include "lib/std.mi"

Function updatePausePlay();
Global Button playButton, pauseButton;

System.onScriptLoaded() {
Layout yourlayout = getContainer("Main").getLayout("Normal");
playButton = yourlayout.getObject("play");
pauseButton = yourlayout.getObject("pause");
updatePausePlay();
}

System.onPlay() {
updatePausePlay();
}

System.onPause() {
updatePausePlay();
}

System.onResume() {
updatePausePlay();
}

System.onStop() {
updatePausePlay();
}

updatePausePlay() {
if (getPlayItemString() == "") {
playButton.show();
pauseButton.hide();
} else {
pauseButton.show();
playButton.hide();
}
}



All you need then is to put your play and pause buttons overlap in the xml.

Francis.

Bluemars - Music For The Space Traveller
Francis is offline   Reply With Quote
Old 8th October 2001, 13:27   #8
ertmann|CPH
Forum Viking
(Forum King)
 
ertmann|CPH's Avatar
 
Join Date: Jan 2001
Location: The North
Posts: 3,541
hmmm is there a wasabi IRC channel where i can get some help?
ertmann|CPH is offline   Reply With Quote
Old 8th October 2001, 14:40   #9
Naamloos
Forum King
 
Naamloos's Avatar
 
Join Date: Mar 2001
Location: irc.tehflap.org/*******
Posts: 3,085
there was.... but not visited that often
Naamloos is offline   Reply With Quote
Old 8th October 2001, 16:56   #10
lunarboy1
Forum King
 
lunarboy1's Avatar
 
Join Date: Dec 2000
Location: Somewhere, USA
Posts: 2,233
yea... Francis's would work great too.
lunarboy1 is offline   Reply With Quote
Old 8th October 2001, 21:44   #11
ertmann|CPH
Forum Viking
(Forum King)
 
ertmann|CPH's Avatar
 
Join Date: Jan 2001
Location: The North
Posts: 3,541
just a screenshot of what im working on



graphics by deaddreamer - i just decided to make a skin of some
urealesed interface from his page:
http://www.deaddreamer.com/v10/job/pics/winterlabs1.jpg
Hoping for his permission to release it

what do you think?
ertmann|CPH is offline   Reply With Quote
Old 8th October 2001, 23:59   #12
Francis
French Admin
 
Join Date: Nov 2000
Posts: 329
er, I was about to say something and then I realized I didn't need to

Francis.

Bluemars - Music For The Space Traveller
Francis is offline   Reply With Quote
Old 9th October 2001, 00:19   #13
YtseJam
Forum King
 
YtseJam's Avatar
 
Join Date: Dec 2000
Location: Israel
Posts: 2,399
Send a message via ICQ to YtseJam Send a message via AIM to YtseJam
That looks sweet sertmann... Hope it'll work out.

YtseJam is offline   Reply With Quote
Old 9th October 2001, 06:54   #14
Naamloos
Forum King
 
Naamloos's Avatar
 
Join Date: Mar 2001
Location: irc.tehflap.org/*******
Posts: 3,085
Wow! amazing!!
well just some tips :
Make the AVS with regions, so it will be there next to those winshade close buttons etc.. (for example look at LB1's Winique)
Next to the on off the volume?
Crossfade and those others need to be skinned ask that guy if he can do them too
The vis buttons toggles from AVS to VIS? good luck with that...
Next to the song info a posbar and the volume? Can you make it only posbar
And skin the song info + Posbar too....

good luck! it looks quite cool already
Naamloos is offline   Reply With Quote
Old 9th October 2001, 22:18   #15
ertmann|CPH
Forum Viking
(Forum King)
 
ertmann|CPH's Avatar
 
Join Date: Jan 2001
Location: The North
Posts: 3,541
top buttons fixed - lights when enabled/pressed looks very cool.

menu buttons fixed - lights when enabled/pressed looks very cool.

AVS VIS = AVS VISualisation - no toggleling here! working as planned

Id love to have the volume knob at the "wheel" by the on/off light
dont know how to do that yet - it will come eventualy

progressbar will be skinned when i get that far

ill change the text to light blue when i get that far

cant get that play/pause working - will fix that too

loooots of work to be done - but im working on it
progress will hopefully get faster once i get the hand
of that XML thing
ertmann|CPH is offline   Reply With Quote
Old 10th October 2001, 04:14   #16
lunarboy1
Forum King
 
lunarboy1's Avatar
 
Join Date: Dec 2000
Location: Somewhere, USA
Posts: 2,233
If you need any help, just drop me a line. I got a pretty good handle on the stuff your trying to do. And hell, I might learn a few things in the process which is cool too.

Thanks for mentioning me No*name! Atleast somebody knows i exist
Check ur e-mail.
lunarboy1 is offline   Reply With Quote
Old 10th October 2001, 19:34   #17
ertmann|CPH
Forum Viking
(Forum King)
 
ertmann|CPH's Avatar
 
Join Date: Jan 2001
Location: The North
Posts: 3,541
check your messages lunarboy

ps. you should realy fix that w on that skin of yours
ertmann|CPH is offline   Reply With Quote
Old 10th October 2001, 19:49   #18
YtseJam
Forum King
 
YtseJam's Avatar
 
Join Date: Dec 2000
Location: Israel
Posts: 2,399
Send a message via ICQ to YtseJam Send a message via AIM to YtseJam
Think you could give us something to play with?

YtseJam is offline   Reply With Quote
Old 11th October 2001, 02:55   #19
lunarboy1
Forum King
 
lunarboy1's Avatar
 
Join Date: Dec 2000
Location: Somewhere, USA
Posts: 2,233
....mmmmmmmmmmmmmmmmmmmmmmmm ....... play.
lunarboy1 is offline   Reply With Quote
Old 11th October 2001, 18:57   #20
ertmann|CPH
Forum Viking
(Forum King)
 
ertmann|CPH's Avatar
 
Join Date: Jan 2001
Location: The North
Posts: 3,541
im not sure if i can release it, as i didnt do the original graphics myself. Also it would require you to do some work, as its not quite finished. but what the hell.....ill upload

http://www.ertmann.net/stefan/files/Misery.zip
ertmann|CPH is offline   Reply With Quote
Old 11th October 2001, 21:44   #21
lunarboy1
Forum King
 
lunarboy1's Avatar
 
Join Date: Dec 2000
Location: Somewhere, USA
Posts: 2,233
coolies sertmann
lunarboy1 is offline   Reply With Quote
Old 12th October 2001, 16:27   #22
ertmann|CPH
Forum Viking
(Forum King)
 
ertmann|CPH's Avatar
 
Join Date: Jan 2001
Location: The North
Posts: 3,541
you are welcome to do a fix or perhaps a 1000 and mail it back to me
ertmann|CPH 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