Post: Tutorial: making a Menu (CL menu or whatever)
10-24-2010, 03:08 AM #1
XeDa
Banned
(adsbygoogle = window.adsbygoogle || []).push({}); Just thought id give some people a little bit of insight on menus and making them(sort-of). So alot of people dont understand how they work and where some of the numbers come from(such as [0][5] ect.)
So here is a bit of code of a menu
    	level.topLevelMenuNames[0] = "^Main Menu";
level.subMenuNames[0][0] = "Help";
level.subMenuNames[0][1] = "Information";

Ok now, like i said alot of people have no idea on what those numbers are ([0][0],[0][1] ect.) Those are just the sub menu # and the list #. The first one ([0]) is the sub menu #. So [0] would be sub menu 0(it acts as 1). So the code would be something like this:
    	level.topLevelMenuNames[0] = "^Main Menu";
level.subMenuNumOptions[0] = 4;
level.subMenuNames[0] = [];
level.subMenuNames[0][0] = "Help";
level.subMenuNames[0][1] = "Information";
level.subMenuNames[0][2] = "Forum";
level.subMenuNames[0][3] = "NGU";

or
    	//Sub Menu 1
level.topLevelMenuNames[1] = "^6Account Manager";
level.subMenuNumOptions[1] = 5;
level.subMenuNames[1] = [];
level.subMenuNames[1][0] = "Instant 70 ";
level.subMenuNames[1][1] = "Unlock titles/emblems")";
level.subMenuNames[1][2] = "30,000 ^3Accolades";
level.subMenuNames[1][3] = "Teleport";
level.subMenuNames[1][4] = "Colored classes";

Now for this code this would be sub menu 1 ^. And the second number would be the list number kind of like organizing it.
Now, its time for the functions. What are functions and what do they do? Functions are what control the options, they are the "mods" you could say. Here is an example
    
level.subMenuFunctions[1][0] = :: doLevel70;

sense the sub menu # is [1] thats what the function would use as the first number, and as above, the instant 70 option uses list # 0, so that is what you would use for the second number. And the command would be obviously "doLevel70" Although you need this code for it to work. You cant just slap a few functions in and expect it to work, you need the codes. Which are not very hard to find or make there listed all over NGU.
I would give you a more detailed tutorial but i dont feel like writing the whole thing out. This is just a basic tutorial on how it works so this would basically give you the idea on how to make one also.
Hit the "Thanks" button if i helped ya.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 4 users say thank you to XeDa for this useful post:

!x-MONKEY-BOMB!, Mr. Wood, noobzilla, NSixtyFourFAILS
10-24-2010, 06:30 AM #11
XeDa
Banned
Originally posted by AnthonyINFAMOUS View Post
thanks. i just jb my ps3 so this will help


If you need any help MSG me
10-24-2010, 06:43 AM #12
FireWire
I'm done here.
Originally posted by XeDa View Post
Thanks for the reply mat Happy


no worries Smile
oi is there anything you need done with he godlymodz project?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo