GUIOff(1) schaltet ja das Interface meiner GUI aus - ich würde aber gerne das Sie nicht einfach aus ist sondern a) ausgeblendet wird oder nach unten wegrutscht... am besten in slow motion

Code: Alles auswählen
// GLOBAL SCRIPT
function FadeGUIIn() {
int trans;
while(trans<100) {
trans++;
SetGUITransparency(0,trans);
SetGUITransparency(1,trans);
Wait(1);
}
GUIOff(0);
GUIOff(1);
}
function FadeGUIOut() {
GUIOn(0);
GUIOn(1);
int trans=100;
while(trans>0) {
trans--;
SetGUITransparency(0,trans);
SetGUITransparency(1,trans);
Wait(1);
}
}
Code: Alles auswählen
// SCRIPT HEADER
import function FadeGUIOut();
import function FadeGUIIn();