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
09-05-2011, 05:07 PM #56
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by Advisable View Post
just did that and still got nothing, would you be able to just send me the working one? cuz im apparently to retarded to get this


Here:
You must login or register to view this content.

but what i wanna know is you make some of the best cod4 non menu patches but you couldnt do this :S.
09-05-2011, 05:18 PM #57
Jeremy
Former Staff
Originally posted by IVI40A3Fusionz View Post
Here:
You must login or register to view this content.

but what i wanna know is you make some of the best cod4 non menu patches but you couldnt do this :S.
ive never worked on menus, and i made simpler scrolling menus, but yah..lol

---------- Post added at 12:18 PM ---------- Previous post was at 12:11 PM ----------

Originally posted by IVI40A3Fusionz View Post
Here:
You must login or register to view this content.

but what i wanna know is you make some of the best cod4 non menu patches but you couldnt do this :S.

could you upload that to mediafire? every time i click download it says downloading but never shows up on my computer :(
09-05-2011, 05:26 PM #58
Originally posted by IVI40A3Fusionz View Post
Here:
You must login or register to view this content.

but what i wanna know is you make some of the best cod4 non menu patches but you couldnt do this :S.


He didn't make those other patches, his friends did. But it's good that he is trying to learn for himself now ...

---------- Post added at 06:26 PM ---------- Previous post was at 06:25 PM ----------

Originally posted by Advisable View Post
ive never worked on menus, and i made simpler scrolling menus, but yah..lol

---------- Post added at 12:18 PM ---------- Previous post was at 12:11 PM ----------


could you upload that to mediafire? every time i click download it says downloading but never shows up on my computer :(


This menu is useless anyway, it isn't stable on PS3. You should use Karoolus's menu instead..
09-05-2011, 05:31 PM #59
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by Advisable View Post
ive never worked on menus, and i made simpler scrolling menus, but yah..lol

---------- Post added at 12:18 PM ---------- Previous post was at 12:11 PM ----------


could you upload that to mediafire? every time i click download it says downloading but never shows up on my computer :(


You must login or register to view this content.

---------- Post added at 12:31 PM ---------- Previous post was at 12:28 PM ----------

Originally posted by x. View Post
He didn't make those other patches, his friends did. But it's good that he is trying to learn for himself now ...

---------- Post added at 06:26 PM ---------- Previous post was at 06:25 PM ----------



This menu is useless anyway, it isn't stable on PS3. You should use Karoolus's menu instead..


oh kk and yeah your right about the unstable part.
09-05-2011, 06:26 PM #60
Jeremy
Former Staff
Originally posted by IVI40A3Fusionz View Post
You must login or register to view this content.

---------- Post added at 12:31 PM ---------- Previous post was at 12:28 PM ----------



oh kk and yeah your right about the unstable part.
ill be doing an edit of Karoolus menu later but this is to just so i can get use to working with mod menus

---------- Post added at 12:50 PM ---------- Previous post was at 12:36 PM ----------

Originally posted by IVI40A3Fusionz View Post
You must login or register to view this content.

---------- Post added at 12:31 PM ---------- Previous post was at 12:28 PM ----------



oh kk and yeah your right about the unstable part.
the patch you sent me didnt work either :\

---------- Post added at 01:26 PM ---------- Previous post was at 12:50 PM ----------

Originally posted by lovebros View Post
Okay, so i tried you ps3 ready patch, and the game loaded, but the menu didn't. Is there some code or something that i have to put in to make it load?

EDITOkay, so i moved some things around in the patch, and i got it to work, do you want it? Just ask, but now the problem i have found is that the map is in the way of like 3 options lol. is there a way to move the map or put the menu infront?
can you send me a mediafire link to the working menu base?

i did what correy said and it still didnt work
09-05-2011, 06:45 PM #61
Originally posted by Advisable View Post
ill be doing an edit of Karoolus menu later but this is to just so i can get use to working with mod menus

---------- Post added at 12:50 PM ---------- Previous post was at 12:36 PM ----------

the patch you sent me didnt work either :\

---------- Post added at 01:26 PM ---------- Previous post was at 12:50 PM ----------

can you send me a mediafire link to the working menu base?

i did what correy said and it still didnt work


Why don't you start with a working menu patch from the modified patches section and make small changes and learn that way? I looked at your patch, it has more than one error..
09-05-2011, 06:46 PM #62
Jeremy
Former Staff
Originally posted by x. View Post
He didn't make those other patches, his friends did. But it's good that he is trying to learn for himself now ...

---------- Post added at 06:26 PM ---------- Previous post was at 06:25 PM ----------



This menu is useless anyway, it isn't stable on PS3. You should use Karoolus's menu instead..
i just tried doing what correy said again and now the game doesnt start i just get ""Awaiting Challenge....1..."
09-05-2011, 07:04 PM #63
Originally posted by Advisable View Post
i just tried doing what correy said again and now the game doesnt start i just get ""Awaiting Challenge....1..."


It will do. like I said, it has more than one error.. ^^Read my last post..
09-05-2011, 07:06 PM #64
Jeremy
Former Staff
Originally posted by x. View Post
It will do. like I said, it has more than one error.. ^^Read my last post..
i cant find any good menus that i like

ex: Karoolus's mod menu has every mod i can think of and theres a few bugs that i always run into while using it

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo