Transitional texte By Elite Mossy Effet de zoom au chamgement des menu

Love

Dieu Reality
Ancien staff
Inscription
28 FĂ©vrier 2011
Messages
1 514
J'aimes
574
Points
8 048
#1
K-BRIZZEL :
Salut ,
Voici le code du transitional texte que vous pouvez voir sur les video du Elite Mossy Private Patch v2. Sa faisait un moment quont me le demander.. donc voila . C'est un effet de zoom entre chaque changement de menu .

CODE OPRIMISER:


Code a ajouter dans ----------> DrawMenu();

Code:
display[i] transitionSlideOut(1,"right");
Le MEME CODE NON OPTIMSER:

( Si vous voullez le modifier a votre guise, "Par contre il faudra le reOptimiser" pour le reutiliser )

Code:
transitionZoomIn( duration )
{
switch ( self.elemType )
{
case "font":
case "timer":
self.fontScale = 6.3;
self changeFontScaleOverTime( duration );
self.fontScale = self.baseFontScale;
break;
case "icon":
self setShader( self.shader, self.width * 6, self.height * 6 );
self scaleOverTime( duration, self.width, self.height );
break;
}
}


transitionPulseFXIn( inTime, duration )
{
transTime = int(inTime)*1000;
showTime = int(duration)*1000;

switch ( self.elemType )
{
case "font":
case "timer":
self setPulseFX( transTime+250, showTime+transTime, transTime+250 );
break;
default:
break;
}
}


transitionSlideIn( duration, direction )
{
if ( !isDefined( direction ) )
direction = "left";

switch ( direction )
{
case "left":
self.x += 1000;
break;
case "right":
self.x -= 1000;
break;
case "up":
self.y -= 1000;
break;
case "down":
self.y += 1000;
break; 
}
self moveOverTime( duration );
self.x = self.xOffset;
self.y = self.yOffset;
}


transitionSlideOut( duration, direction )
{
if ( !isDefined( direction ) )
direction = "left";

gotoX = self.xOffset;
gotoY = self.yOffset;

switch ( direction )
{
case "left":
gotoX += 1000;
break;
case "right":
gotoX -= 1000;
break;
case "up":
gotoY -= 1000;
break;
case "down":
gotoY += 1000;
break; 
}

self.alpha = 1;

self moveOverTime( duration );
self.x = gotoX;
self.y = gotoY;
}


transitionZoomOut( duration )
{
switch ( self.elemType )
{
case "font":
case "timer":
self changeFontScaleOverTime( duration );
self.fontScale = 6.3;
case "icon":
self scaleOverTime( duration, self.width * 6, self.height * 6 );
break;
}
}


transitionFadeIn( duration )
{
self fadeOverTime( duration );
if ( isDefined( self.maxAlpha ) )
self.alpha = self.maxAlpha;
else
self.alpha = 1;
}


transitionFadeOut( duration )
{
self fadeOverTime( 0.15 );
self.alpha = 0;
}
Enjoy , merci K-BRIZZEL
 

Axelouche

Ancien Super-Modérateur
Ancien staff
Inscription
15 Mars 2011
Messages
644
J'aimes
92
Points
3 908
#4
Merci , mais un tuto pour le RĂ©Optimiser serait la bienvenue .
 


Haut