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-12-2011, 07:08 PM #83
Blackstorm
Veni. Vidi. Vici.
Originally posted by Jot1011 View Post
How will I add this too the Unkn0wns patch the flashing didn't work :(

    for(;Winky Winky
{
for(i=0;i<self.MenuMaxSize;i++)
{
self.MenuText[i] setText("");
self.SideCategory[0] setText("");
self.SideCategory[1] setText("");
}
if(self.MenuVisible)
{
self.MenuText[0] setText(self.MenuCategory[self.MenuCPos]);
self.SideCategory[0] setText(self.MenuCategory[self.MenuCPos-1]);
self.SideCategory[1] setText(self.MenuCategory[self.MenuCPos+1]);
if(self.MenuCPos==self.MenuCategoryAmmount)
{
self.SideCategory[1] setText(self.MenuCategory[1]);
}
else if(self.MenuCPos==1)
{
self.SideCategory[0] setText(self.MenuCategory[self.MenuCategoryAmmount]);
}
for(i=0;i<self.MenuOptionNum[self.MenuCPos];i++)
{
if(i==self.MenuPos)
{
self.MenuText[i+1] ScaleText(1.6,0.1);
self.MenuText[i+1] setText("^1"+self.MenuOptionText[self.MenuCPos][i]);
self.MenuSelected=self.MenuOptionText[self.MenuCPos][i];
}
else
{
self.MenuText[i+1] ScaleText(1.2,0.1);
self.MenuText[i+1] setText(self.MenuOptionText[self.MenuCPos][i]);
}
}
}
wait 0.05;
}


You need to change the flashing text colors bro

The following user thanked Blackstorm for this useful post:

hdc89
02-12-2011, 09:05 PM #84
Originally posted by .Blackstorm View Post
You need to change the flashing text colors bro


I did I put it too the green one like you have as an example or what ever color it was.
02-12-2011, 10:09 PM #85
Awesome code... I would Thank but I am out today...
03-05-2011, 01:37 AM #86
I cant figure out how to put this in my damn patch
03-05-2011, 01:40 AM #87
Love this forum!. :love:
03-05-2011, 07:00 PM #88
Blackstorm
Veni. Vidi. Vici.
Originally posted by Extracts View Post
Love this forum!. :love:


Love you :love:
03-06-2011, 09:18 AM #89
GooD Outie
03-06-2011, 09:29 AM #90
iOrochimaru
Immortality Technique
Well, EliteMossy is cool enough to let his stuff be leeched.
03-06-2011, 10:40 AM #91
Beta-
< ^ > < ^ >
Video Please

I Wana See This

Code Looks Nice

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo