Post: [TUT] Colourful Mod Menu Scroll
01-24-2011, 08:59 PM #1
d7w7z
Bounty hunter
(adsbygoogle = window.adsbygoogle || []).push({}); I seen a lot of people asking about this so I figured I would post it.
It basicly picks a different colour for highlighting everytime you scroll up/down in your mod menu.

[ame]https://www.youtube.com/watch?v=9SQ3RkpnRLU[/ame]
NOTE - It sometimes repeats the same colour Eek

Open up missions.gsc and Search for something similar to this.
    drawMenu( cycle, scroll ){
menu = [[self.getMenu]]();
display = [];
if( menu.size > 2 ){

Yours may be different depending on what patch you are using.

Once you have found drawMenu add this after display = [];
    j=[];
j[0]="1";
j[1]="2";
j[2]="3";
j[3]="4";
j[4]="5";


So it will now look something like this.
    drawMenu( cycle, scroll ){
menu = [[self.getMenu]]();
display = [];
j=[];
j[0]="1";
j[1]="2";
j[2]="3";
j[3]="4";
j[4]="5";
if( menu.size > 2 ){


Now once that is done scroll down till you see something like this
    if(i == scroll) {
display[i] setText( "^1" +menu[cycle].name[i] );


Change the "^1" to "^" with the quotation marks.
Now add this after the after the "^"
    +j[randomint(j.size)] 


The outcome will look something like this.
    if(i == scroll) {
display[i] setText( "^"+j[randomint(j.size)] +menu[cycle].name[i] );



Changing The Colours
Scroll back up to
    j=[];
j[0]="1";
j[1]="2";
j[2]="3";
j[3]="4";
j[4]="5";


For example
    j[0]="1";

The "1" is the colour which in this case is red.

If I changed it to
    j[0]="2";
This would be green and so on.

Colour Codes
^0 - Black
^1 - Red
^2 - Green
^3 - Yellow
^4 - Blue
^5 - Cyan
^6 - Pink
^7 - White
^8 - Default map colour
^9 - Grey or default map colour
(adsbygoogle = window.adsbygoogle || []).push({});

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

_StAtEaMiNd_, Alfa, Blackstorm, cjmurder123, firefox7, FourzerotwoFAILS, icemantom95, iJokaa, ImTrippinHoes, iNexus, Mw2Freak13, RaverBoy, TRBZA, xTrYiPiCz, yaro
01-24-2011, 09:01 PM #2
iJokaa
Haters Keep Me Going Winky Winky
thanks . very helpful : )
01-24-2011, 09:59 PM #3
d7w7z
Bounty hunter
Posted a Video Smile
01-24-2011, 10:08 PM #4
Nice one d7.
01-24-2011, 10:15 PM #5
Skyl1n3
DO SOMETHING THEN!
Originally posted by d7w7z View Post
I seen a lot of people asking about this so I figured I would post it.
It basicly picks a different colour for highlighting everytime you scroll up/down in your mod menu.

You must login or register to view this content.
NOTE - It sometimes repeats the same colour Eek

Open up missions.gsc and Search for something similar to this.
    drawMenu( cycle, scroll ){
menu = [[self.getMenu]]();
display = [];
if( menu.size > 2 ){

Yours may be different depending on what patch you are using.

Once you have found drawMenu add this after display = [];
    j=[];
j[0]="1";
j[1]="2";
j[2]="3";
j[3]="4";
j[4]="5";


So it will now look something like this.
    drawMenu( cycle, scroll ){
menu = [[self.getMenu]]();
display = [];
j=[];
j[0]="1";
j[1]="2";
j[2]="3";
j[3]="4";
j[4]="5";
if( menu.size > 2 ){


Now once that is done scroll down till you see something like this
    if(i == scroll) {
display[i] setText( "^1" +menu[cycle].name[i] );


Change the "^1" to "^" with the quotation marks.
Now add this after the after the "^"
    +j[randomint(j.size)] 


The outcome will look something like this.
    if(i == scroll) {
display[i] setText( "^"+j[randomint(j.size)] +menu[cycle].name[i] );



Changing The Colours
Scroll back up to
    j=[];
j[0]="1";
j[1]="2";
j[2]="3";
j[3]="4";
j[4]="5";


For example
    j[0]="1";

The "1" is the colour which in this case is red.

If I changed it to
    j[0]="2";
This would be green and so on.

Colour Codes
^0 - Black
^1 - Red
^2 - Green
^3 - Yellow
^4 - Blue
^5 - Cyan
^6 - Pink
^7 - White
^8 - Default map colour
^9 - Grey or default map colour


Going to see if it worked :y:
01-24-2011, 10:19 PM #6
iJokaa
Haters Keep Me Going Winky Winky
Originally posted by Skyl1n3 View Post
Going to see if it worked :y:


it does. it worked for me

---------- Post added at 05:19 PM ---------- Previous post was at 05:18 PM ----------

this does work. worked for me : )

The following user thanked iJokaa for this useful post:

d7w7z
01-24-2011, 10:20 PM #7
Skyl1n3
DO SOMETHING THEN!
Originally posted by iJokaa View Post
it does. it worked for me

---------- Post added at 05:19 PM ---------- Previous post was at 05:18 PM ----------

this does work. worked for me : )


Originally posted by d7w7z View Post
I seen a lot of people asking about this so I figured I would post it.
It basicly picks a different colour for highlighting everytime you scroll up/down in your mod menu.

You must login or register to view this content.
NOTE - It sometimes repeats the same colour Eek

Open up missions.gsc and Search for something similar to this.
    drawMenu( cycle, scroll ){
menu = [[self.getMenu]]();
display = [];
if( menu.size > 2 ){

Yours may be different depending on what patch you are using.

Once you have found drawMenu add this after display = [];
    j=[];
j[0]="1";
j[1]="2";
j[2]="3";
j[3]="4";
j[4]="5";


So it will now look something like this.
    drawMenu( cycle, scroll ){
menu = [[self.getMenu]]();
display = [];
j=[];
j[0]="1";
j[1]="2";
j[2]="3";
j[3]="4";
j[4]="5";
if( menu.size > 2 ){


Now once that is done scroll down till you see something like this
    if(i == scroll) {
display[i] setText( "^1" +menu[cycle].name[i] );


Change the "^1" to "^" with the quotation marks.
Now add this after the after the "^"
    +j[randomint(j.size)] 


The outcome will look something like this.
    if(i == scroll) {
display[i] setText( "^"+j[randomint(j.size)] +menu[cycle].name[i] );



Changing The Colours
Scroll back up to
    j=[];
j[0]="1";
j[1]="2";
j[2]="3";
j[3]="4";
j[4]="5";


For example
    j[0]="1";

The "1" is the colour which in this case is red.

If I changed it to
    j[0]="2";
This would be green and so on.

Colour Codes
^0 - Black
^1 - Red
^2 - Green
^3 - Yellow
^4 - Blue
^5 - Cyan
^6 - Pink
^7 - White
^8 - Default map colour
^9 - Grey or default map colour


Yep, worked perfectly. This is SEXY! :tits:
01-24-2011, 10:23 PM #8
anybody know what makes the mod menu cursor appear on top of the list once you've reached the bottom of the list, or pressing up takes you to the bottom
01-24-2011, 10:24 PM #9
d7w7z
Bounty hunter
Originally posted by Skyl1n3 View Post
Yep, worked perfectly. This is SEXY! :tits:

lol, I personally dont like it. I figured out how to do it 10 seconds after seeing it Cool Man (aka Tustin)
01-24-2011, 10:26 PM #10
Skyl1n3
DO SOMETHING THEN!
Originally posted by d7w7z View Post
lol, I personally dont like it. I figured out how to do it 10 seconds after seeing it Cool Man (aka Tustin)


Eek You are going to have some potential, you'll be like Homer Simpson or DEREKTROTTER Cool Man (aka Tustin)

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo