Post: [RELEASE] Flashing Menu Text
02-09-2011, 11:23 PM #1
Blackstorm
Veni. Vidi. Vici.
(adsbygoogle = window.adsbygoogle || []).push({}); Well here it is. The ALMIGHTY Flashing Text.

I've had this for like 3 weeks... Learn how to use it.

    
flashingText(MadeByBlackstorm)
{
for(;Winky Winky
{
MadeByBlackstorm.color = ((color/255),(color/255),(color/255));
MadeByBlackstorm fadeOverTime(.3);
wait .1;
MadeByBlackstorm.color = ((color/255),(color/255),(color/255));
MadeByBlackstorm fadeovertime(.3);
wait .1;
}
}



Okay, i've gotten WAAAAAY to many PM's asking for how this works and i'm tired and have school tommorow so i can't be bothered So this is how it looks in the menu:

    
menuDrawOptions(scroll,cycle)
{
menu=[[self.getMenu]]();
display=[];
for(i=0;i<menu[cycle].name.size;i++)
{
if(i < 1)display[i]=self createFontString("Objective",1.3);
else display[i]=self createFontString("Objective",1.1);
display[i] setPoint("CENTER","TOP",0,(i+1)*level.menuY);
if(i==scroll)
{
display[i] ChangeFontScaleOverTime(0.3);
display[i] FadeOverTime(0.1);
display[i].fontScale=1.6;
display[i] setText(menu[cycle].name[i]);
self playLocalSound("mouse_over");
display[i].alpha = 1;
display[i].glow = 1;
display[i].glowAlpha = 1;
self thread flashingText(display[i]);
if(!self.scrolling)
display[i] texterSlide(.13, "right" );
self thread destroyOn(display[i],"button_square");
self thread destroyOnAny(display[i],"dpad_right","dpad_left","dpad_up","dpad_down","asdfasdf","death");
}
else
{
display[i] setText(menu[cycle].name[i]);
if(!self.scrolling)
display[i] texterSlide(.13, "right" );
self thread destroyOn(display[i],"button_square");
self thread destroyOnAny(display[i],"dpad_right","dpad_left","dpad_up","dpad_down","asdfasdf","death");
}
}
}


Example:

    
self thread flashingText(heartElem);


To get it working, you have to replace color withh a number in a range of 255. like so:

    
MadeByBlackstorm.color = ((100/255),(100/255),(100/255));


This makes it flash green and white:

    
flashingText(MadeByBlackstorm)
{
for(;Winky Winky
{
MadeByBlackstorm.color = (1,1,1);
MadeByBlackstorm fadeOverTime(.3);
wait .1;
MadeByBlackstorm.color = ((0/255),(255/255),(0/255));
MadeByBlackstorm fadeovertime(.3);
wait .1;
}
}


Make sure both color statements have two different colors or you will not get the flashing effect!

If used, please do not modify the code in ANY way. I want it to be known that i made this lol

Credits:

EliteMossy - For the idea
Me - Figuring it out
(adsbygoogle = window.adsbygoogle || []).push({});

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

Correy, d7w7z, FrozN, I am Mara, MoDz-v1, Morphia, Mw2Freak13, RusterG
02-10-2011, 12:42 AM #20
Blackstorm
Veni. Vidi. Vici.
Originally posted by d7w7z View Post
If you know how to use it you can make your patch 20 times more stable. It also doesnt increase menu crashes in any way. :bro:


THANK YOU! In fact, it seems as if my patch is MORE stable with the flashing text looooooooooooool
02-10-2011, 12:43 AM #21
Originally posted by sergskate13 View Post
hey xexchaos you gay


Hey serg go make me a taco
02-10-2011, 01:14 AM #22
Blackstorm
Veni. Vidi. Vici.
Originally posted by XeXChAoS View Post
Hey serg go make me a taco


lol I love tacos =D
02-10-2011, 01:16 AM #23
Can someone help me on how to put this into the Unkn0wns patch.?Please?
    	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;
}
}
02-10-2011, 02:42 AM #24
Blackstorm
Veni. Vidi. Vici.
Originally posted by Jot1011 View Post
Can someone help me on how to put this into the Unkn0wns patch.?Please?
    	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;
}
}


I'll help you out later, I'm currently on my phone atm :p
02-10-2011, 02:54 AM #25
Skyl1n3
DO SOMETHING THEN!
Originally posted by DEREKTROTTER View Post
first tip is to replace any CCtxt with iprintln


Already done it, makes it much more stable Smile cheers though. Happy

Originally posted by d7w7z View Post
Reduce setText. Thats it lol.

I would release it because I dont care if everyone has it and I found it very easy to do but I told Mossy I wouldnt release it if i figured it out. :shh:


What's setText? :p Things like iPrintLnBold/iPrintLn/ccTXT?
02-10-2011, 05:32 AM #26
Blackstorm
Veni. Vidi. Vici.
Originally posted by Skyl1n3 View Post
Already done it, makes it much more stable Smile cheers though. Happy



What's setText? :p Things like iPrintLnBold/iPrintLn/ccTXT?


SetText is basically the function that sets text for a hud element Smile
02-10-2011, 05:51 AM #27
MoDz-v1
TeamModderz
Originally posted by .Blackstorm View Post
Well here it is. The ALMIGHTY Flashing Text.

I've had this for like 3 weeks... Learn how to use it.

    
flashingText(MadeByBlackstorm)
{
for(;Winky Winky
{
MadeByBlackstorm.color = ((color/255),(color/255),(color/255));
MadeByBlackstorm fadeOverTime(.3);
wait .1;
MadeByBlackstorm.color = ((color/255),(color/255),(color/255));
MadeByBlackstorm fadeovertime(.3);
wait .1;
}
}



Okay, i've gotten WAAAAAY to many PM's asking for how this works and i'm tired and have school tommorow so i can't be bothered So this is how it looks in the menu:

    
menuDrawOptions(scroll,cycle)
{
menu=[[self.getMenu]]();
display=[];
for(i=0;i<menu[cycle].name.size;i++)
{
if(i < 1)display[i]=self createFontString("Objective",1.3);
else display[i]=self createFontString("Objective",1.1);
display[i] setPoint("CENTER","TOP",0,(i+1)*level.menuY);
if(i==scroll)
{
display[i] ChangeFontScaleOverTime(0.3);
display[i] FadeOverTime(0.1);
display[i].fontScale=1.6;
display[i] setText(menu[cycle].name[i]);
self playLocalSound("mouse_over");
display[i].alpha = 1;
display[i].glow = 1;
display[i].glowAlpha = 1;
self thread flashingText(display[i]);
if(!self.scrolling)
display[i] texterSlide(.13, "right" );
self thread destroyOn(display[i],"button_square");
self thread destroyOnAny(display[i],"dpad_right","dpad_left","dpad_up","dpad_down","asdfasdf","death");
}
else
{
display[i] setText(menu[cycle].name[i]);
if(!self.scrolling)
display[i] texterSlide(.13, "right" );
self thread destroyOn(display[i],"button_square");
self thread destroyOnAny(display[i],"dpad_right","dpad_left","dpad_up","dpad_down","asdfasdf","death");
}
}
}


Example:

    
self thread flashingText(heartElem);


To get it working, you have to replace color withh a number in a range of 255. like so:

    
MadeByBlackstorm.color = ((100/255),(100/255),(100/255));


This makes it flash green and white:

    
flashingText(MadeByBlackstorm)
{
for(;Winky Winky
{
MadeByBlackstorm.color = (1,1,1);
MadeByBlackstorm fadeOverTime(.3);
wait .1;
MadeByBlackstorm.color = ((0/255),(255/255),(0/255));
MadeByBlackstorm fadeovertime(.3);
wait .1;
}
}


Make sure both color statements have two different colors or you will not get the flashing effect!

If used, please do not modify the code in ANY way. I want it to be known that i made this lol

Credits:

EliteMossy - For the idea
Me - Figuring it out


I Forgot To Say Thanks Remember i inboxed Asking Why it Wouldnt work Adding the display worked Happy
Thanks Man. Happy
02-10-2011, 06:04 AM #28
Blackstorm
Veni. Vidi. Vici.
Originally posted by DEREKTROTTER View Post
first tip is to replace any CCtxt with iprintln


I was the one to come up with that :rolleyes:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo