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
01-02-2014, 07:38 PM #20
When mapping for all the clients which '0' do i replace next to the 300?:?:
01-03-2014, 12:31 AM #21
DudeCanMod
I am error
Ok so for example you will see this...
SetIcon(120, IsVerShader(0), 400, 0, 0, 500, 200, 1, 1, 0, 0, 0, 0);
SetIcon(120 = the Icon num
IsVerShader(0) = client number (so change the 0 to 1 and etc)
400 = X Axis
0 = Y Axis
0 = Client number
500 = Hight of Shader
200 = Length of Shader
1 = Sort for Shader
1 = Material for Shader
0 = Color R (RGBA)
0 = Color G (RGBA)
0 = Color B (RGBA)
0 = Color A (RGBA) basicly the Contrast of the Shader

Also idk if im the first to know this but probably not...
So if i am i guess im releasing this but, for the (Sort For Shader) put 255, and for the (Material for Shader) put 40, and the menu shader will be checkerboard! then to make it a different color just edit the Colors R, G, and B !

The following 2 users say thank you to DudeCanMod for this useful post:

JLM, JustBluu
01-10-2014, 07:25 PM #22
MoDzNL
I am error
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!


Whould you insert all client menu in the mine?
01-10-2014, 07:27 PM #23
DudeCanMod
I am error
I sure can!
01-10-2014, 08:49 PM #24
MoDzNL
I am error
Originally posted by Manimal View Post
I sure can!


Thanks hit me up on skype MoDzNL!
01-10-2014, 08:50 PM #25
DudeCanMod
I am error
Ok but I'm not home atm im at a soccer tournement for school. I will add you when i can.
01-10-2014, 09:10 PM #26
MoDzNL
I am error
Originally posted by Manimal View Post
Ok but I'm not home atm im at a soccer tournement for school. I will add you when i can.


Alright! Thanks already! I talk to you soon!
02-28-2014, 04:29 PM #27
Can you not do it yourself its so easy (facepalm)
03-01-2014, 10:33 PM #28
im on 4.50 dex , and when i press start menu nothing appear on my screen o.O , but when i knife i stop moving -. -

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo