Post: [1.14/C#/Updated With Tutorial] Menu Base v2 Open Source Release | Created By Bo
11-22-2013, 04:34 AM #1
(adsbygoogle = window.adsbygoogle || []).push({});
Hi NGU Needa

Today I'm releasing a menu base for mw2 on the 1.14 update.
You can only use this if you RTE.
The base is coded in C# if you didn't read the title... :p
Yes, this menu has verification(ghetto), and is built to work with ALL clients.

If you don't like how the base looks, you can easily change the GUI.
So don't complain.
Most of the answers to your questions are in the source, but if you need my help you can add my skype. (notarat.exe) :fa:

Make sure you edit the menu in LAN party until you map it for all clients!

Versions:

Menu Version v1:
Release

Menu Version v1.1:
Faster Scrolling
Fixed Hud Elem Spawning Error

Menu Version v2:
New Look
Welcome Message
Faster Scrolling

v1 Video:


Download The v1 Menu Here:
You must login or register to view this content.

v2 Video:


Download The v2 Version Here:
You must login or register to view this content.



How To Add Options And Sub Menus Into This Base:
Step 1: Go To The Function "getMenuString" That is where you edit the options and add other sub menus.
            private string getMenuString(string curSub, int client)
{
if (curSub == "Main")
return getMenu(SubMenu[client], client);
else if (curSub == "Sub Menu 1")
return "Option 1\nOption 2\nOption 3\nOption 4\nOption 5\nOption 6\nOption 7\nOption 8\nOption 9";
else
return "N/A";
}

As you can tell, the first sub menu is done for you.
So, all you need to do is change the options, and that is how you change the text in the sub menu.
Example:
            private string getMenuString(string curSub, int client)
{
if (curSub == "Main")
return getMenu(SubMenu[client], client);
else if (curSub == "Sub Menu 1")
return "Example 1\nExample 2\nExample 3\nExample 4\nExample 5\nExample 6\nExample 7\nExample 8\nExample 9";
else
return "N/A";
}


Adding Functions And Sub Menus:
Go to the function "MenuSelection" and as you know, the first sub menu is done for you.
    if (scrollNum == 0 && Sub == "Main")
{
LoadSub(client, "Sub Menu 1");
}

So that means you make a new set for your menu to execute the options in the first sub menu.
                //Sub Menu 1 
else if (scrollNum == 0 && Sub == "Sub Menu 1")
{
iPrintln(client, "Sub Menu 1: Example Option 1");
}
else if (scrollNum == 1 && Sub == "Sub Menu 1")
{
iPrintln(client, "Sub Menu 1: Example Option 2");
}
else if (scrollNum == 2 && Sub == "Sub Menu 1")
{
iPrintln(client, "Sub Menu 1: Example Option 3");
}
else if (scrollNum == 3 && Sub == "Sub Menu 1")
{
iPrintln(client, "Sub Menu 1: Example Option 4");
}
else if (scrollNum == 4 && Sub == "Sub Menu 1")
{
iPrintln(client, "Sub Menu 1: Example Option 5");
}
else if (scrollNum == 5 && Sub == "Sub Menu 1")
{
iPrintln(client, "Sub Menu 1: Example Option 6");
}
else if (scrollNum == 6 && Sub == "Sub Menu 1")
{
iPrintln(client, "Sub Menu 1: Example Option 7");
}
else if (scrollNum == 7 && Sub == "Sub Menu 1")
{
iPrintln(client, "Sub Menu 1: Example Option 8");
}
else if (scrollNum == 8 && Sub == "Sub Menu 1")
{
iPrintln(client, "Sub Menu 1: Example Option 9");
}

Just add "else if (scrollNum == 0 && Sub == "Sub Menu 1")" under where it says Host Option In the source, like in the picture.
"scrollNum" is basically what option you're scrolled over. Example. "scrollNum == 0" Is scrolled over Example Option 1"
So, in this example under me, you can either put your function. Like iPrintln.
    else if (scrollNum == 0 && Sub == "Sub Menu 1")
{
iPrintln(client, "Sub Menu 1: Example Option 1");
}

Or, you can put something like God Mode. NOTE: This won't actually give you god mode. You need the function for it.
    else if (scrollNum == 0 && Sub == "Sub Menu 1")
{
doGodMode();
}


How To Add A Sub Menu:
Adding a sub menu is pretty easy, all you need to do is go back up to the "getMenuString" function and add a new menu.
    else if (curSub == "Example Sub Menu")
return "Example Sub 1\nExample Sub 2\nExample Sub 3\nExample Sub 4\nExample Sub 5";

So just hit "enter" under the return from the first sub menu.
    return "Example 1\nExample 2\nExample 3\nExample 4\nExample 5\nExample 6\nExample 7\nExample 8\nExample 9";

So it should look something like this.
You must login or register to view this content.

After that, you go to a funtion called "getTitle" to update the Sub Menu Title.
So, you would do that the same way as the sub menu. Just add
                 else if (menu == "Example Sub Menu")
return "Example Menu";


Then, go to a function called "getMaxScroll" This is to add how much you want the scroll in the menu.
Add under where it says "Sub Menu 1" this.
                else if (Submenu == "Example Sub Menu")
return 4;


the Number "4" Means how many times it will scroll down from 0.





Thanks everyone, Bo
(adsbygoogle = window.adsbygoogle || []).push({});

The following 29 users say thank you to Obris for this useful post:

AlexNGU, Ansity., Chip ♞, D3skm, Dannie Fresh, DannyBoiSmith, daswiftguy, DeZiiReHasSwag, Diversify, Esker, Exrone, FusionIsDaName, JLM, HonuCinema, ImPiffHD, ItsMagiicsz, JustBluu, MafiaHackzHD, Mango_Knife, RTM FTW, Saul Soria, Silent Assassin, SnaY, Sticky, tennistalan, xXGoD_Of_MoDzXx, zZHackzZ
03-02-2014, 01:02 AM #29
DudeCanMod
I am error
your not it lan party.... the menu doesnt work in private match because you havent mapped out the clients buddy lol
03-02-2014, 12:06 PM #30
lanaiscool
Bounty hunter
Originally posted by Manimal View Post
I am also currently working on my own menu base that will be compatable with (CEX / DEX) ! I will include all the clients in the menu and try to insert some instructions within the coding :P Also if you would like me to add a Verification Menu (All clients) please let me know!


thank you there is no base out for mw2 cex im really waiting for it soyeah thanks
03-04-2014, 06:20 PM #31
Mx444
Bounty hunter
Nice menu base Smile
03-06-2014, 08:11 PM #32
zZHackzZ
Climbing up the ladder
Originally posted by Hi
Hi NGU Needa

Today I'm releasing a menu base for mw2 on the 1.14 update.
You can only use this if you RTE.
The base is coded in C# if you didn't read the title... :p
Yes, this menu has verification(ghetto), and is built to work with ALL clients.

If you don't like how the base looks, you can easily change the GUI.
So don't complain.
Most of the answers to your questions are in the source, but if you need my help you can add my skype. (notarat.exe) :fa:

Make sure you edit the menu in LAN party until you map it for all clients!

Versions:

Menu Version v1:
Release

Menu Version v1.1:
Faster Scrolling
Fixed Hud Elem Spawning Error

Menu Version v2:
New Look
Welcome Message
Faster Scrolling

v1 Video:


Download The v1 Menu Here:
You must login or register to view this content.

v2 Video:


Download The v2 Version Here:
You must login or register to view this content.



How To Add Options And Sub Menus Into This Base:
Step 1: Go To The Function "getMenuString" That is where you edit the options and add other sub menus.
            private string getMenuString(string curSub, int client)
{
if (curSub == "Main")
return getMenu(SubMenu[client], client);
else if (curSub == "Sub Menu 1")
return "Option 1\nOption 2\nOption 3\nOption 4\nOption 5\nOption 6\nOption 7\nOption 8\nOption 9";
else
return "N/A";
}

As you can tell, the first sub menu is done for you.
So, all you need to do is change the options, and that is how you change the text in the sub menu.
Example:
            private string getMenuString(string curSub, int client)
{
if (curSub == "Main")
return getMenu(SubMenu[client], client);
else if (curSub == "Sub Menu 1")
return "Example 1\nExample 2\nExample 3\nExample 4\nExample 5\nExample 6\nExample 7\nExample 8\nExample 9";
else
return "N/A";
}


Adding Functions And Sub Menus:
Go to the function "MenuSelection" and as you know, the first sub menu is done for you.
    if (scrollNum == 0 && Sub == "Main")
{
LoadSub(client, "Sub Menu 1");
}

So that means you make a new set for your menu to execute the options in the first sub menu.
                //Sub Menu 1 
else if (scrollNum == 0 && Sub == "Sub Menu 1")
{
iPrintln(client, "Sub Menu 1: Example Option 1");
}
else if (scrollNum == 1 && Sub == "Sub Menu 1")
{
iPrintln(client, "Sub Menu 1: Example Option 2");
}
else if (scrollNum == 2 && Sub == "Sub Menu 1")
{
iPrintln(client, "Sub Menu 1: Example Option 3");
}
else if (scrollNum == 3 && Sub == "Sub Menu 1")
{
iPrintln(client, "Sub Menu 1: Example Option 4");
}
else if (scrollNum == 4 && Sub == "Sub Menu 1")
{
iPrintln(client, "Sub Menu 1: Example Option 5");
}
else if (scrollNum == 5 && Sub == "Sub Menu 1")
{
iPrintln(client, "Sub Menu 1: Example Option 6");
}
else if (scrollNum == 6 && Sub == "Sub Menu 1")
{
iPrintln(client, "Sub Menu 1: Example Option 7");
}
else if (scrollNum == 7 && Sub == "Sub Menu 1")
{
iPrintln(client, "Sub Menu 1: Example Option 8");
}
else if (scrollNum == 8 && Sub == "Sub Menu 1")
{
iPrintln(client, "Sub Menu 1: Example Option 9");
}

Just add "else if (scrollNum == 0 && Sub == "Sub Menu 1")" under where it says Host Option In the source, like in the picture.
"scrollNum" is basically what option you're scrolled over. Example. "scrollNum == 0" Is scrolled over Example Option 1"
So, in this example under me, you can either put your function. Like iPrintln.
    else if (scrollNum == 0 && Sub == "Sub Menu 1")
{
iPrintln(client, "Sub Menu 1: Example Option 1");
}

Or, you can put something like God Mode. NOTE: This won't actually give you god mode. You need the function for it.
    else if (scrollNum == 0 && Sub == "Sub Menu 1")
{
doGodMode();
}


How To Add A Sub Menu:
Adding a sub menu is pretty easy, all you need to do is go back up to the "getMenuString" function and add a new menu.
    else if (curSub == "Example Sub Menu")
return "Example Sub 1\nExample Sub 2\nExample Sub 3\nExample Sub 4\nExample Sub 5";

So just hit "enter" under the return from the first sub menu.
    return "Example 1\nExample 2\nExample 3\nExample 4\nExample 5\nExample 6\nExample 7\nExample 8\nExample 9";

So it should look something like this.
You must login or register to view this content.

After that, you go to a funtion called "getTitle" to update the Sub Menu Title.
So, you would do that the same way as the sub menu. Just add
                 else if (menu == "Example Sub Menu")
return "Example Menu";


Then, go to a function called "getMaxScroll" This is to add how much you want the scroll in the menu.
Add under where it says "Sub Menu 1" this.
                else if (Submenu == "Example Sub Menu")
return 4;


the Number "4" Means how many times it will scroll down from 0.





Thanks everyone, Bo

your intro is teh shiit brah Enzo
04-25-2014, 11:43 AM #33
EncepT
I defeated!
Originally posted by Manimal View Post
I sure can!


Can u help me with the client mapping ??(were i have to place 1Cool Man (aka Tustin) and how i can put offsets in it?
If yes add me on skype(herobrinetut it will be showen as AnRiiLiix|Nico something like that^^)
Anyway thanks mate Smile
05-01-2014, 01:28 AM #34
Im Not Boobdidas
Do a barrel roll!
sweg plz
05-12-2014, 09:02 AM #35
Hey man very good but could you make it CCAPI compatible please?
05-12-2014, 05:35 PM #36
Originally posted by Jesse1337 View Post
Hey man very good but could you make it CCAPI compatible please?


Its an open source .
So YOU can make it ccapi compatible Wtf

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo