Old 9th May 2003, 11:19   #1
-=RoNtZ=-
Major Dude
 
-=RoNtZ=-'s Avatar
 
Join Date: Feb 2002
Location: Universe > Milkyway > Sol > Earth > Europe > Germany > Bavaria > Near Nuremberg
Posts: 1,346
Send a message via ICQ to -=RoNtZ=- Send a message via AIM to -=RoNtZ=- Send a message via Yahoo to -=RoNtZ=-
drawer/slider problem

hey guys!

i've problems with a script i'm making at the moment.
that's the way i want it to work:
on my mainwindow, i've got a button, with wich i toggle the drawer. that's no problem, so far.
but on this drawer, there are two more togglebuttons, wich should make two more drawers sliding out of the first drawer.
i think the problem is, getting the objects, as they have to be in different groups and layouts .
btw: i'm using joshuatrees drawerscript.i'm afraid i can't post the script, but it's on another computer, (without internetconnection) and this pc 's got no floppy drive

Frozen skins: Gravestone Betaskins: Mushroom ::-:: The Claw
In development: TechnodropFinished: Draculas Helmet (<-- still waiting for some color themes!) ::-:: Hal's eye
-=RoNtZ=- is offline   Reply With Quote
Old 10th May 2003, 19:59   #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 use a group in a group, correct? make sure your script tags are appropriatly positioned, and you have called your objects correctly.
hammerhead is offline   Reply With Quote
Old 11th May 2003, 16:54   #3
-=RoNtZ=-
Major Dude
 
-=RoNtZ=-'s Avatar
 
Join Date: Feb 2002
Location: Universe > Milkyway > Sol > Earth > Europe > Germany > Bavaria > Near Nuremberg
Posts: 1,346
Send a message via ICQ to -=RoNtZ=- Send a message via AIM to -=RoNtZ=- Send a message via Yahoo to -=RoNtZ=-
yes. exactly that's it! but i think i tried everything, and i didn't get it working.i'll try to post the script and xml in the next few days

Frozen skins: Gravestone Betaskins: Mushroom ::-:: The Claw
In development: TechnodropFinished: Draculas Helmet (<-- still waiting for some color themes!) ::-:: Hal's eye
-=RoNtZ=- is offline   Reply With Quote
Old 14th May 2003, 10:08   #4
-=RoNtZ=-
Major Dude
 
-=RoNtZ=-'s Avatar
 
Join Date: Feb 2002
Location: Universe > Milkyway > Sol > Earth > Europe > Germany > Bavaria > Near Nuremberg
Posts: 1,346
Send a message via ICQ to -=RoNtZ=- Send a message via AIM to -=RoNtZ=- Send a message via Yahoo to -=RoNtZ=-
ok... here the script:

code:

#include ../../../lib/std.mi

Global Button leftBtn,rightseektoggle,rightvoltoggle;
Global Boolean leftDown,leftDown1,leftDown2;
Global Group slide,seekdrawer,voldrawer;

System.onScriptLoaded()
{
slide = System.getContainer("main").getLayout("right").getObject("dr.r");
seekdrawer = System.getContainer("main").getLayout("right").getObject("dr.seek.r");
voldrawer = System.getContainer("main").getLayout("right").getObject("dr.vol.r");

leftBtn = System.getContainer("main").getLayout("right").getObject("drawer.right.toggle.map");
rightseektoggle = System.getContainer("main").getLayout("right").getObject("seek.tg");
rightvoltoggle = System.getContainer("main").getLayout("right").getObject("vol.tg");

leftDown = 0;
leftDown1 = 0;
leftDown2 = 0;

}

leftBtn.Onleftclick()
{
If (leftDown) { //Checks if it's slided in or out
leftDown = 0; //Set as if it's in
slide.setTargetX(162); //The X where it should go to
slide.setTargetY(93); //The Y where it should go to
slide.setTargetSpeed(1); //The speed
slide.gotoTarget(); //The action
} else {
leftDown = 1; //Set as if it's out
slide.setTargetX(1); //The X where it should start
slide.setTargetY(93); //The Y where it should start
slide.setTargetSpeed(1); //The speed
slide.gotoTarget(); //The action
}
}

rightseektoggle.Onleftclick()
{
If (leftDown1) { //Checks if it's slided in or out
leftDown1 = 0; //Set as if it's in
seekdrawer.setTargetX(21); //The X where it should go to
seekdrawer.setTargetY(12); //The Y where it should go to
seekdrawer.setTargetSpeed(1); //The speed
seekdrawer.gotoTarget(); //The action
} else {
leftDown1 = 1; //Set as if it's out
seekdrawer.setTargetX(21); //The X where it should start
seekdrawer.setTargetY(-17); //The Y where it should start
seekdrawer.setTargetSpeed(1); //The speed
seekdrawer.gotoTarget(); //The action
}
}

rightvoltoggle.Onleftclick()
{
If (leftDown2) { //Checks if it's slided in or out
leftDown2 = 0; //Set as if it's in
voldrawer.setTargetX(21); //The X where it should go to
voldrawer.setTargetY(12); //The Y where it should go to
voldrawer.setTargetSpeed(1); //The speed
voldrawer.gotoTarget(); //The action
} else {
leftDown2 = 1; //Set as if it's out
voldrawer.setTargetX(21); //The X where it should start
voldrawer.setTargetY(41); //The Y where it should start
voldrawer.setTargetSpeed(1); //The speed
voldrawer.gotoTarget(); //The action
}
}



and here the xml:

code:

<layout id="normal" background="bg" desktopalpha="1" width="486" height="276">

<groupdef id="dr.seek.r">

<layer
id="seek.dr.r"
image="seek.dr.bg"
x="0" y="0"
/>

</groupdef>

<groupdef id="dr.vol.r">

<layer
id="vol.dr.r"
image="vol.dr.bg"
x="0" y="0"
/>

</groupdef>

<groupdef id="dr.r">

<layer
id="dr.bg"
image="dr.bg"
x="0" y="0"
/>

<group id="dr.vol.r" x="21" y="29"/>

<group id="dr.seek.r" x="21" y="29"/>

<layer
id="dr.cv"
image="dr.cv"
x="21" y="29"
/>

<layer
id="disp.mn"
image="disp.mn"
x="8" y="25"
/>

<text id="songticker"
ticker="1"
display="songname"
default=""
showlen="1"
x="10" y="26"
w="122" h="15"
font="verdana"
fontsize="14"
antialias="1"
align="center"
color="255,255,255"
/>

<text id="time"
display="time"
x="12" y="45"
w="25" h="15"
font="verdana"
fontsize="12"
antialias="1"
align="right"
color="255,255,255"
/>

<layer
id="disp.bd"
image="disp.bd"
x="5" y="22"
ghost="1"
/>

<layer
id="disp.bd"
image="disp.bd"
x="5" y="22"
ghost="1"
/>

<layer
id="disp.gl"
image="disp.gl"
x="9" y="26"
ghost="1"
/>

<layer
id="disp.gl"
image="disp.gl"
x="10" y="27"
ghost="1"
/>


<togglebutton
id="seek.tg"
image="seek.dr.bt.up"
activeImage="seek.dr.bt.dn"
x="139" y="25"
tooltip="Toggle Seekbar"
/>

<togglebutton
id="vol.tg"
image="vol.dr.bt.dn"
activeImage="vol.dr.bt.up"
x="149" y="25"
tooltip="Toggle Volumebar"
/>

</groupdef>

</layout>

<layout id="right" background="bg.r" desktopalpha="1" width="210" height="282">

<group id="dr.r" x="162" y="93"/>
</layout>



That's just the necessary things, or it would be too huge.
btw: want a screenshot of the skin? i think it's my best yet.

Frozen skins: Gravestone Betaskins: Mushroom ::-:: The Claw
In development: TechnodropFinished: Draculas Helmet (<-- still waiting for some color themes!) ::-:: Hal's eye
-=RoNtZ=- is offline   Reply With Quote
Old 18th May 2003, 20:46   #5
DirtyLowMoFo
Member
 
Join Date: Aug 2002
Posts: 58
Rontz..

Dont know if you've figured it out yet but i think it should look something like this..

code
------------------------------------------------

System.onScriptLoaded()
{
slide = System.getContainer("main").getLayout("right").findObject("dr.r");
seekdrawer = slide.findObject("dr.seek.r");
voldrawer = slide.findObject("dr.vol.r");

leftBtn = ////couldnt find it!!!!!!
rightseektoggle = slide.findObject("seek.tg");
rightvoltoggle = slide.findObject("vol.tg");

blah blah blah
--------------------------------------------------------
I haven't done any MAKI for a while but from what I remember it should work.
DirtyLowMoFo is offline   Reply With Quote
Old 19th May 2003, 21:05   #6
-=RoNtZ=-
Major Dude
 
-=RoNtZ=-'s Avatar
 
Join Date: Feb 2002
Location: Universe > Milkyway > Sol > Earth > Europe > Germany > Bavaria > Near Nuremberg
Posts: 1,346
Send a message via ICQ to -=RoNtZ=- Send a message via AIM to -=RoNtZ=- Send a message via Yahoo to -=RoNtZ=-
thx a lot, but found that out myself two days ago!
that group was killing me, hehehehe
and as u weren't sure: it really works this way

Frozen skins: Gravestone Betaskins: Mushroom ::-:: The Claw
In development: TechnodropFinished: Draculas Helmet (<-- still waiting for some color themes!) ::-:: Hal's eye
-=RoNtZ=- 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