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-17-2011, 02:06 AM #2
Blackstorm
Veni. Vidi. Vici.
lol pretty smart d7w7 =D I'm very impressed Smile
02-17-2011, 02:09 AM #3
d7w7z
Bounty hunter
Originally posted by .Blackstorm View Post
lol pretty smart d7w7 =D I'm very impressed Smile

This is nothing, I had this done 2 minutes after you released the flashing text Outie
02-17-2011, 02:34 AM #4
Pretty cool too bad all this getting patched.

The following user thanked shishir for this useful post:

ProxiesAreFtw
02-17-2011, 02:43 AM #5
Amanda
Can’t trickshot me!
XMB style menus are even more stable and easy to navigate. These menus are included in Mossy's latest versions. If you try to open submenus there are more chances of getting a fontstring overflow error than hover left and right in an XMB menu.
02-17-2011, 12:53 PM #6
iJokaa
Haters Keep Me Going Winky Winky
Originally posted by Amanda View Post
XMB style menus are even more stable and easy to navigate. These menus are included in Mossy's latest versions. If you try to open submenus there are more chances of getting a fontstring overflow error than hover left and right in an XMB menu.


whats an xmb style menu ? "/
02-17-2011, 06:44 PM #7
TRBZA
Vault dweller
Originally posted by iJokaa View Post
whats an xmb style menu ? "/


One where each different section has its own part not a sub menu on a master menu, like It has Admin up and theres an option on each side of it example

Host-----[/size]Admin[/color]-----VIP[/color]
02-17-2011, 07:09 PM #8
EliteMossy
TheDigitalBoard.com
This is one way to achieve what i did (not 100% the same as mine), but it is ok. You could have done it a lot more simpler and add even more stability to the patch.
02-17-2011, 07:29 PM #9
Originally posted by EliteMossy View Post
This is one way to achieve what i did (not 100% the same as mine), but it is ok. You could have done it a lot more simpler and add even more stability to the patch.


how about a tut? =D
02-17-2011, 07:34 PM #10
d7w7z
Bounty hunter
Originally posted by EliteMossy View Post
This is one way to achieve what i did (not 100% the same as mine), but it is ok. You could have done it a lot more simpler and add even more stability to the patch.


You always say I could of done things better Happy

Also now you got me interested in making programs :rolleyes:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo