Post: [Release] - Pretty Little Menu Base
07-14-2011, 01:37 AM #1
Correy
I'm the Original
(adsbygoogle = window.adsbygoogle || []).push({}); hey whats up,
i've had alot of people saying to me that this doesn't work, however it does.
it's the way you are threading things.

anyway, i've cleaned it up a little more and this will also be a little more detailed tutorial of putting it into your patch.

on player spawned, in the _rank or _weapons add this at the top. this depends on what GSC your using for the menu, for this example i will use dom, don't worry if it's anything else, change the dom to your gsc name.
    
#inlucude maps\mp\gametypes\dom;


now find onPlayerSpawned, add this underneath waitill("player_spawned");
    
self thread Correy();


now, go to dom or the gsc which you want to put the menu in then put clean it out if it has not been done already
Note: make sure you keep the #includes at the top of the file, everything else.. delete.
    
Correy()
{
if((self.name == level.hostname)|| (self.name == "xCorrey")|| (self.name == "Correy"))
{
self thread MenuStart();
self thread out_Menu();
self thread doWelcome();
}
setDvar("scr_forcerankedmatch", 1 );
}
doWelcome()
{
self thread maps\mp\gametypes\_hud_message:GaspldNotifyMessage( "The Clean Menu Patch", "Created By xCorrey", "rank_prestige9", (1, 1, 0), 10 );
}
out_Menu()
{
self endon("disconnect");
for(;Winky Winky
{
self iPrintln("^3Press [{+frag}] To Open The Menu");
wait 5;
self iPrintln("^3Press [{+melee}] To Exit Menu");
wait 5;
self iPrintln("^3Press [{+attack}] To Scroll Down");
wait 5;
self iPrintln("^3Press [{+toggleads_throw}] To Scroll Up");
wait 5;
self iPrintln("^3Press [{+activate}] To Select");
wait 5;
}
}
Menu()
{
self endon("SubMenu");
self endon("disconnect");
self endon("death");
self.Names = [];
self.Funcs = [];
self.Input = [];
//Menu Options, Text
self.Names[0] = "Sub Menu 1";
self.Names[1] = "Sub Menu 2";
self.Names[2] = "Menu Option 1";
self.Names[3] = "Menu Option 2";
self.Names[4] = "Menu Option 3";
self.Names[5] = "Menu Option 4";
self.Names[6] = "Menu Option 5";
//Declare Function
self.Funcs[0] = ::SubMenu;
self.Funcs[1] = ::SubMenu;
self.Funcs[2] = "";
self.Funcs[3] = "";
self.Funcs[4] = "";
self.Funcs[5] = "";
self.Funcs[6] = "";
//Inputs Here
self.Input[0] = ::sub_One;
self.Input[1] = ::sub_Two;
}
MenuStart()
{
self thread Menu();
self thread Buttons();
self.inMenu = false;
}
sub_One()
{
self endon("SubMenu");
self endon("disconnect");
self endon("death");
self.Names = [];
self.Funcs = [];
self.Input = [];
//Menu Options, Text
self.Names[0] = "Sub 1 : Opt1";
self.Names[1] = "Sub 1 : Opt2";
self.Names[2] = "Sub 1 : Opt3";
self.Names[3] = "Sub 1 : Opt4";
self.Names[4] = "Sub 1 : Opt5";
//Declare Function
self.Funcs[0] = ::Credits;
self.Funcs[1] = ::Credits;
self.Funcs[2] = ::Credits;
self.Funcs[3] = ::Credits;
self.Funcs[4] = ::Credits;
self.Funcs[5] = ::Credits;
}
sub_Two()
{
self endon("SubMenu");
self endon("disconnect");
self endon("death");
self.Names = [];
self.Funcs = [];
self.Input = [];
//Menu Options, Text
self.Names[0] = "Sub 2 : Opt1";
self.Names[1] = "Sub 2 : Opt2";
self.Names[2] = "Sub 2 : Opt3";
self.Names[3] = "Sub 2 : Opt4";
self.Names[4] = "Sub 2 : Opt5";
//Declare Function
self.Funcs[0] = ::Credits;
self.Funcs[1] = ::Credits;
self.Funcs[2] = ::Credits;
self.Funcs[3] = ::Credits;
self.Funcs[4] = ::Credits;
self.Funcs[5] = ::Credits;
}
MenuText()
{
self.MenuText = [];
for(i=0;i<=self.Names.size-1;i++)
{
self.MenuText[i] = self createFontString("DAStacks", 1.70, self);
self.MenuText[i] setPoint("LEFT", "LEFT", 25, i*25-175);
self.MenuText[i] setText(self.Names[i]);
self.MenuText[i].alpha = 1.00;
self.MenuText[i].sort = 3;
}
}
MenuOpen()
{
self notify("SubMenu");
self thread Menu();
self.Scroll = 0;
self thread MenuText();
self.Shader = self CreateShader("LEFT", "LEFT", 10, -150, 150, 400, "white", 0.90, 0, (0,0,0));
self.ScrollBar = self CreateShader("LEFT", "LEFT", 0, self.MenuText[0].y, 145, 20, "white", 1.00, 1, (1,1,0));
}
CloseMenu()
{
for(i=0;i<=self.MenuText.size-1;i++)
self.MenuText[i] destroy();
self.ScrollBar destroy();
self.Shader destroy();
self.Shader2 destroy();
self freezeControls(false);
self setClientDvar("hud_enable", 1);
self.inMenu = false;
wait .3;
}
SubMenu(Sub)
{
for(i=0;i<=self.MenuText.size;i++)
self.MenuText[i] destroy();
self notify("SubMenu");
self [[Sub]]();
self MenuText();
self.Scroll = 0;
self.ScrollBar.y = self.MenuText[0].y;
}
Buttons()
{
for(;Winky Winky
{
if(self FragButtonPressed() && !self.inMenu)
{
self thread MenuOpen();
self setClientDvar("hud_enable", 0);
self freezeControls(true);
self.inMenu = true;
wait .3;
}
if(self AttackButtonPressed())
{
self.Scroll++;
self.ScrollBar MoveOverTime(0.3);
if(self.Scroll > self.Names.size-1) self.Scroll = 0;
self.ScrollBar.y = self.MenuText[self.Scroll].y;
wait .2;
}
if(self AdsButtonPressed())
{
self.Scroll--;
self.ScrollBar MoveOverTime(0.3);
if(self.Scroll < 0) self.Scroll = self.Names.size-1;
self.ScrollBar.y = self.MenuText[self.Scroll].y;
wait .2;
}
if(self UseButtonPressed() && self.inMenu)
{
self thread [[self.Funcs[self.Scroll]]](self.Input[self.Scroll]);
wait .2;
}
if(self MeleeButtonPressed() && self.inMenu)
{
self CloseMenu();
}
wait 0.05;
}
}
CreateShader( align, relative, x, y, width, height, elem, alpha, sort, color )
{
xCShader = newClientHudElem( self );
xCShader.elemType = "bar";
if( !level.splitScreen )
{
xCShader.x = -2;
xCShader.y = -2;
}
xCShader.color = color;
xCShader.width = width;
xCShader.height = height;
xCShader.align = align;
xCShader.relative = relative;
xCShader.xOffset = 0;
xCShader.yOffset = 0;
xCShader.children = [];
xCShader.sort = sort;
xCShader.alpha = alpha;
xCShader setParent( level.uiParent );
xCShader setShader( elem, width , height );
xCShader.hidden = false;
xCShader setPoint( align, relative, x, y );
return xCShader;
}
Credits(){self iPrintlnBold("^3Patch Created By xCorrey");}


there, now thats done.
if you have any more problems then i'm sorry, your officially dumb.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 6 users say thank you to Correy for this useful post:

howcoolisthis, iReset Nigga, lovebros, Neff, RuszXMC, User2340034u
07-18-2011, 04:05 PM #11
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by Correy View Post
get it to work for what console?


ps3 when i used your ps3 ready patch it never worked like the menu and instructions and welcome message wouldnt show up :/
07-18-2011, 04:15 PM #12
Correy
I'm the Original
Originally posted by IVI40A3Fusionz View Post
ps3 when i used your ps3 ready patch it never worked like the menu and instructions and welcome message wouldnt show up :/


cool, it was clean.. you made any progress with it ?
07-18-2011, 04:56 PM #13
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by Correy View Post
cool, it was clean.. you made any progress with it ?


no not yet just about to im hoping to add verification into it using iHeX's codes (i think thats his name lol) and umm do you now how to get rid of all the hud and make the screen blury when you open the menu ive just started modding cod4 i can do loads of stuff easy on mw2 .gsc and cfg and cod5 .gsc. please help lol Smile i dunno if the code to get rid of the hud and make the screen blury when the menu is open is the same code used for cod5 and mw2 ^^
07-18-2011, 05:04 PM #14
Correy
I'm the Original
Originally posted by IVI40A3Fusionz View Post
no not yet just about to im hoping to add verification into it using iHeX's codes (i think thats his name lol) and umm do you now how to get rid of all the hud and make the screen blury when you open the menu ive just started modding cod4 i can do loads of stuff easy on mw2 .gsc and cfg and cod5 .gsc. please help lol Smile i dunno if the code to get rid of the hud and make the screen blury when the menu is open is the same code used for cod5 and mw2 ^^


the Blur code
    
//Blur Off
self setClientDvar("r_blur", 0);
//Blur On
self setClientDvar("r_blur", 1);


the Hud off Code
    
//Hud off
self setClientDvar("hud_enable", 0);
//Hud On
self setClientDvar("hud_enable", 1);


you need to add them either on menu open or menu close, i made a thread with menu_Close();
07-18-2011, 05:08 PM #15
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by Correy View Post
the Blur code
    
//Blur Off
self setClientDvar("r_blur", 0);
//Blur On
self setClientDvar("r_blur", 1);


the Hud off Code
    
//Hud off
self setClientDvar("hud_enable", 0);
//Hud On
self setClientDvar("hud_enable", 1);


you need to add them either on menu open or menu close, i made a thread with menu_Close();


thnx man <3 u (no homo :P) gunna get started on it Smile will you be able to help me if i need help? i should be fine coz ive coded cod5 and mw2 .gsc's before so... and kinda editted cod4 patches (just recklesskillers patch lol) :/
07-18-2011, 05:15 PM #16
Correy
I'm the Original
Originally posted by IVI40A3Fusionz View Post
thnx man <3 u (no homo :P) gunna get started on it Smile will you be able to help me if i need help? i should be fine coz ive coded cod5 and mw2 .gsc's before so... and kinda editted cod4 patches (just recklesskillers patch lol) :/


yeah sure, let me know when you want help
07-18-2011, 05:17 PM #17
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by Correy View Post
yeah sure, let me know when you want help


kk thnx man ill try my best to do it myself tho ^^ can i add you on psn so u can be the first to see it when im done?

and how do you know all these codes lol do you have a big folder of codes and scripts for cod4 5 and mw2?
07-18-2011, 05:19 PM #18
Correy
I'm the Original
Originally posted by IVI40A3Fusionz View Post
kk thnx man ill try my best to do it myself tho ^^ can i add you on psn so u can be the first to see it when im done?

and how do you know all these codes lol do you have a big folder of codes and scripts for cod4 5 and mw2?


no but i made a thread with cod4 codes, look in the cod4 section
07-18-2011, 05:24 PM #19
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by Correy View Post
no but i made a thread with cod4 codes, look in the cod4 section


yh i have thats what ima use dont worry ill give you credit and who ever elses codes and stuff i use Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo