Dear visitor, welcome to Skin Consortium. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


I have a fade script which i want to use for when the menu is activated i haven't edit anything from it yet just thought you could look at it and see if it will work for what i need.|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
#include "lib/std.mi"
Global Container MainContainer;
Global Layout layoutMainNormal;
Global Group Normal, Equalizer;
Global Button eqbtn, norbtn;
Global Int fadestatus;
Global layer stuff;
System.onScriptLoaded() {
MainContainer = getContainer("main");
layoutMainNormal = MainContainer.getLayout("normal");
Group grp = layoutMainNormal.getObject("lcd");
Normal = grp.getObject("lcd.normal");
Equalizer = grp.getObject("lcd.eq");
stuff = grp.getObject("lcd.fade");
eqbtn = Equalizer.getObject("eq.button");
norbtn = Normal.getObject("normal.button");
stuff.setAlpha(0);
Equalizer.hide();
}
norbtn.onLeftButtonUp(int x, int y) {
stuff.setTargetA(255);
stuff.setTargetSpeed(0.5);
stuff.gotoTarget();
fadestatus=1;
}
eqbtn.onLeftButtonUp(int x, int y) {
stuff.setTargetA(255);
stuff.setTargetSpeed(0.5);
stuff.gotoTarget();
fadestatus=2;
}
stuff.onTargetReached(){
if(fadestatus==1){
Normal.hide();
equalizer.show();
stuff.setTargetA(0);
stuff.setTargetSpeed(0.5);
stuff.gotoTarget();
}
if(fadestatus==2){
Equalizer.hide();
Normal.show();
stuff.setTargetA(0);
stuff.setTargetSpeed(0.5);
stuff.gotoTarget();
}
}
|

when pressed the menu fades in and displays text for example music (media library) playlist, radio (opens add url dialog) and shuffle, repeat well pretty much what you wrote.