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-03-2011, 01:56 AM #11
Blackstorm
Veni. Vidi. Vici.
Originally posted by ITheFallenI View Post
Still, there's a reason why Mossy didn't release it.


Thread deleted Dancing
02-03-2011, 01:56 AM #12
Zombie
I defeated!
Originally posted by ITheFallenI View Post
dude please take down the flashing text!! That's the only thing that makes our patches different from the rest


Why so selfish? This is a community. Leechers will leech.
02-03-2011, 01:57 AM #13
Blackstorm
Veni. Vidi. Vici.
Originally posted by LegendaryGrape View Post
Why so selfish? This is a community. Leechers will leech.


Actually i just had that thread deleted.. it was a bit ifffy but w/e
02-03-2011, 01:59 AM #14
TheFallen
Former Dark Night
Originally posted by MecAj View Post
Thread deleted Dancing


Thank you Happy

---------- Post added at 06:59 PM ---------- Previous post was at 06:57 PM ----------

Originally posted by LegendaryGrape View Post
Why so selfish? This is a community. Leechers will leech.


Because he spent time (so did I but he gave me hints) on figuring this out and why let the leechers leech if you can avoide it.

The following user thanked TheFallen for this useful post:

ViiZiiKz
02-03-2011, 02:03 AM #15
LINUX♥
The Best OS By Far
Originally posted by MecAj View Post
Thread deleted Dancing


copied and pasted into notepad my friend Winky Winky lmao EVERYTHING!
im not going to release it again im not a leech :p
Going to make myself a private patch with this stuff on Outie
02-03-2011, 02:06 AM #16
Blackstorm
Veni. Vidi. Vici.
Originally posted by THEDUBMAN101 View Post
copied and pasted into notepad my friend Winky Winky lmao EVERYTHING!
im not going to release it again im not a leech :p
Going to make myself a private patch with this stuff on Outie


Thanks.. Also give credit to me if you do use the flashing text.. Thanks
02-03-2011, 02:11 AM #17
LINUX♥
The Best OS By Far
Originally posted by MecAj View Post
Thanks.. Also give credit to me if you do use the flashing text.. Thanks


Yea Sure, You, Mossy, And TheFallen Smile going to try and figure out how to use these now :black: get myself a nice private patch Smile Cheers Mate Cool Man (aka Tustin)
02-03-2011, 02:23 AM #18
firefox7
XBOX 360 SUCKS
uh i was going to put this in dt patchs um can u put it back?
02-03-2011, 02:26 AM #19
Blackstorm
Veni. Vidi. Vici.
Originally posted by firefox7 View Post
uh i was going to put this in dt patchs um can u put it back?


Sorry but no bro.. Look at some original GSC's. That's how i figured it out Winky Winky

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo