Post: [CODE] Text Transitioning
02-03-2011, 01:41 AM #1
Blackstorm
Veni. Vidi. Vici.
(adsbygoogle = window.adsbygoogle || []).push({}); Here's another code for text transitioning kind of like EliteMossy's Private patch...

    
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;
}


You can use these to your advantage for example..

    
display[i] transitionSlideOut(1,"right");



you don't need to add those functions since they are already in _hud_util, but I included the code in case anyone wants to modify it to their liking.. Enjoy
(adsbygoogle = window.adsbygoogle || []).push({});

The following 27 users say thank you to Blackstorm for this useful post:

-SprayzZz-, BuC-ShoTz, cjmurder123, d7w7z, Demmonnixx, esquinera, FrozN, HowsMySHOOTING, icemantom95, IVIaGiiC_IVIoDs, Ju1cy, Kitty=^.^=, legitmod, LINUX♥, LordsOfChaos, Mabez96, maxrox, Morphia, Mw2Freak13, N3G6, Neff, CHAOZ, RusterG, Scrumilation, ViiZiiKz, xCoD_I3eAsT, Zombie
02-05-2011, 01:42 AM #47
pcfreak30
>> PCFreak30.com Happy<<
UPDATE: i am not using your function, but i took what they had and used it. So thanks still. menu options are going to fly in and leaving a menu will cause the menu to fade out.

It will probably feel like a PowerPoint presentation!
02-05-2011, 01:45 AM #48
dahmn8tr
Pokemon Trainer
thanks for this code.
02-05-2011, 02:08 AM #49
Blackstorm
Veni. Vidi. Vici.
Originally posted by pcfreak30 View Post
UPDATE: i am not using your function, but i took what they had and used it. So thanks still. menu options are going to fly in and leaving a menu will cause the menu to fade out.

It will probably feel like a PowerPoint presentation!


Yeah i modified the code myself to slide in diagonally from the bottom Smile
02-05-2011, 01:49 PM #50
Originally posted by MecAj View Post
Yeah i modified the code myself to slide in diagonally from the bottom Smile


you could add this as well ...

display flashThread();

simple but nice..
02-05-2011, 01:55 PM #51
EliteMossy
TheDigitalBoard.com
Originally posted by x View Post
you could add this as well ...

display flashThread();

simple but nice..

My menu now explodes lol

The following user thanked EliteMossy for this useful post:

Mw2Freak13
02-05-2011, 01:56 PM #52
Originally posted by TheEliteMossy View Post
My menu now explodes lol


ha, im guessing pulsefx and moveovertime combined ?
02-05-2011, 07:33 PM #53
Blackstorm
Veni. Vidi. Vici.
Originally posted by x View Post
you could add this as well ...

display flashThread();

simple but nice..


Actually, I tried that, BUT, the menu overlaps. ://
02-05-2011, 07:43 PM #54
FrozN
Look up my Patch Edits :P
Originally posted by MecAj View Post
Here's another code for text transitioning kind of like EliteMossy's Private patch...

    
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;
}


You can use these to your advantage for example..

    
display[i] transitionSlideOut(1,"right");



you don't need to add those functions since they are already in _hud_util, but I included the code in case anyone wants to modify it to their liking.. Enjoy


Cant seem to get it to work right. :/ Nice find though. But i cant find the hud_util in my .ff viewer? Happy
02-05-2011, 07:48 PM #55
Blackstorm
Veni. Vidi. Vici.
Originally posted by FrozN View Post
Cant seem to get it to work right. :/ Nice find though. But i cant find the hud_util in my .ff viewer? Happy


Remember those GSC's DEREKTROTTER Released? Look in those, also look at the top of your GSC's where it says #include =D

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo