View Full Version : XML Help, please
ertmann|CPH
7th October 2001, 07:46
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
7th October 2001, 08:01
ohhh and btw, can i have play and pause as the same button (design issues) :D
Naamloos
7th October 2001, 19:46
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?
ertmann|CPH
7th October 2001, 19:53
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?:confused:
s0be
7th October 2001, 20:05
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
*/
lunarboy1
8th October 2001, 04:41
Heres for the pause button thingie:
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.
Francis
8th October 2001, 05:11
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 :
#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.
ertmann|CPH
8th October 2001, 12:27
hmmm is there a wasabi IRC channel where i can get some help?
Naamloos
8th October 2001, 13:40
there was.... but not visited that often :(
lunarboy1
8th October 2001, 15:56
yea... Francis's would work great too.
ertmann|CPH
8th October 2001, 20:44
just a screenshot of what im working on
http://www.ertmann.net\stefan\files\misseryFX.gif
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 :rolleyes:
what do you think?
Francis
8th October 2001, 22:59
er, I was about to say something and then I realized I didn't need to :)
Francis.
YtseJam
8th October 2001, 23:19
That looks sweet sertmann... Hope it'll work out. :)
Naamloos
9th October 2001, 05:54
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
ertmann|CPH
9th October 2001, 21:18
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
lunarboy1
10th October 2001, 03:14
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 :D
Check ur e-mail.
ertmann|CPH
10th October 2001, 18:34
check your messages lunarboy
ps. you should realy fix that w on that skin of yours :)
YtseJam
10th October 2001, 18:49
Think you could give us something to play with? :)
lunarboy1
11th October 2001, 01:55
....mmmmmmmmmmmmmmmmmmmmmmmm ....... play. :D
ertmann|CPH
11th October 2001, 17:57
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
lunarboy1
11th October 2001, 20:44
coolies sertmann :)
ertmann|CPH
12th October 2001, 15:27
you are welcome to do a fix or perhaps a 1000 :D and mail it back to me :)
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.