Post: [TUT]Very Stable Mod Menu
02-17-2011, 12:54 AM #1
d7w7z
Bounty hunter
(adsbygoogle = window.adsbygoogle || []).push({}); Im getting bored of Modding MW2 so Im gonna release this.

When you scroll up/down on your mod menu all the text on your screen is destroyed and is re-made, This means that a large amount of setText is used. When to much setText is used the game crashes, An unstable patch has alot of setText called in it. Using flashing text to change the colour of your text without destroying it can make your mod menu ALOT more stable.

You will need to add this to your functions for Cycling left/right. The functions will be called something like cycleRight and cycleLeft
    self notify("Cycle");

Add this to both of the functions.


Now you want to find your scroll functions. They will be called something along the lines of scrollUp and scrollDown

Remove the following from both functions.
    drawMenu( self.cycle, self.scroll );


Now place this code where the code you just removed was.
    self notify("scroll");



Now go to your drawMenu function. Go down to the bottom of the function and alter it to look something like this.
    for( i = 0; i < menu[cycle].name.size; i++ ){
if(i < 1)
display[i] = self createFontString( "objective", 1.2 );
else
display[i] = self createFontString( "objective", 1.2 );
display[i] setPoint( "CENTER", "TOP", 0, i*14 );
display[i] setText( menu[cycle].name[i] ); // Here and below are the important parts!
if (i == scroll) { self thread UpdateFlash( display[i] ); }
self thread flashingText( display[i], i );
self thread destroyOnAny( display[i], "dpad_right", "dpad_left","button_square", "death" );
} }



Now once you have that done all you need to do is add the code below and you should be good to go.
    UpdateFlash( BlackStorm ) {
self endon("StopFlash");
self endon("Cycle");
for(;Winky Winky {
BlackStorm fadeOverTime(.4);
BlackStorm.color = ((255/255),(0/255),(0/255));
wait 0.31;
BlackStorm fadeOverTime(.3);
BlackStorm.color = ((155/255),(0/255),(0/255));
wait 0.31;
} }
flashingText( F, ID ) {
self endon("Cycle");
for(;Winky Winky {
self waittill("scroll");
self notify("StopFlash");
wait .01;
if(ID != self.scroll) { F.color = ((255/255),(255/255),(255/255)); }
if (self.scroll == ID) {
self thread UpdateFlash( F );
} } }


Now text is not destroyed when you scroll up/down. This makes the menu ALOT more stable, though it can be more stable.

Any problems quote me.

Credits to BlackStorm for releasing the flashing text and to EliteMossy because he gave me hints on how to make the menu more stable and was also the first person to come up with the idea.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 9 users say thank you to d7w7z for this useful post:

Blackstorm, Correy, emsp, iJokaa, JordyPordy, N3G6, ProxiesAreFtw, ViiZiiKz, xT4sSin
02-20-2011, 04:37 AM #20
Capture
Cloud 9
pretty beast

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo