Post: Awesome Clean Menu Base!
11-26-2011, 01:15 PM #1
Correy
I'm the Original
(adsbygoogle = window.adsbygoogle || []).push({}); My title basically says it all.
this is actually amanda's menu, with major changes.

here's a change log
    
- add Option function
- New button system
- Change a lot of codes
- shaders are more competable with ps3
for the rest take a look at the codng.


it does not have a player menu due to i used this just for myself.
so yeah, i have had it for a while.
if you have used amanda's patch you will see it's very stable, which it still is.

here's the menu
    
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;

set_hudelem(text,x,y,scale,alpha,player)
{ if(!IsDefined(alpha))alpha=1;
if(!IsDefined(scale))scale=1;
hud=newClientHudElem(player);
hud.location=0;hud.alignX="center";hud.alignY="middle";
hud.foreground=0;hud.fontScale=scale;hud.sort=20;
hud.alpha=alpha;hud.x=x;hud.y=y;hud.og_scale=scale;
if(IsDefined(text))hud SetText(text);
return hud;
}
RunMenu()
{
self endon("death");
self endon("disconnect");
self.Correy["Menu"]["Open"]=0;
self.Correy["Menu"]["Shader"]=set_hudelem(undefined,40,70,1,0,self);
self.Correy["Menu"]["Shader"] setshader("black",300,810);
self.Correy["Menu"]["Shader"].sort=-5;
if((level.gametype=="dm")||(level.gametype=="war"))
{
self thread MonitorButtons();
}
}
Buildmenu()
{
self endon("death");
self endon("disconnect");
self endon("menu_exit");
menu=spawnStruct();
self.Correy["Menu"]["Options"]=[];
self.Correy["Menu"]["Functions"]=[];
display=[];
self.Correy["Menu"]["Curs"]=1;
self.Correy["Menu"]["Open"]=1;
self addOption( 0, " ^2Welcome "+self.name+"!", "" );
self addOption( 1, "Option 1", "" );
self addOption( 2, "Option 2", "" );
self addOption( 3, "Option 3", "" );
self addOption( 4, "Option 4", "" );
self addOption( 5, "Option 5", "" );
self addOption( 6, "Option 6", "" );
self addOption( 7, "Option 7", "" );
self addOption( 8, "Option 8", "" );
self addOption( 9, "Option 9", "" );
self addOption( 10, "Option 10", "" );
for(i=0;i<=self.Correy["Menu"]["Options"].size;i++)
{
display[i]=createFontString("objective",2.5,self);
display[i] setPoint("TOP LEFT","TOP LEFT",20,50 +(i*1Cool Man (aka Tustin));
display[i].fontscale = 2;
display[i] setText(self.Correy["Menu"]["Options"][i]);
}
for(;Winky Winky
{
display[self.Correy["Menu"]["Curs"]] setText("^2"+self.Correy["Menu"]["Options"][self.Correy["Menu"]["Curs"]]);
self.Correy["Menu"]["Curs"].glowColor =(1.0,0.0,0.4);
self waittill("option_checked");
display[self.Correy["Menu"]["Curs"]] setText(self.Correy["Menu"]["Options"][self.Correy["Menu"]["Curs"]]);
wait 0.05;
if(self.Correy["Menu"]["Open"]==0)
{
for(f=0;f<=self.Correy["Menu"]["Options"].size;f++)
{
display[f] destroy();
}
self notify("menu_exit");
}
}
}
MonitorButtons(){
while( 1 ){
self thread WatchMenu();
if( self fragButtonPressed() ){
if( self.Correy["Menu"]["Open"] != true ){
self.Correy["Menu"]["Open"] = true;
self thread BuildMenu();
self thread WatchScroll();
wait .5;
self.Correy["Menu"]["Curs"] = 1;
}else{
self.Correy["Menu"]["Open"] = false;
wait 1;
self.Correy["Menu"]["Curs"] = 1;
wait .5;
}
} if( self UseButtonPressed() ){
self thread [[self.Correy["Menu"]["Functions"][self.Correy["Menu"]["Curs"]]]](self.Correy["Menu"]["Inputs"][self.Correy["Menu"]["Curs"]]);
wait .5;
} if( self AttackButtonPressed() ){
self notify( "Watch_Scroll" );
self.Correy["Menu"]["Curs"]+=1;
wait .5;
} if( self AdsButtonPressed() ){
self notify( "Watch_Scroll" );
self.Correy["Menu"]["Curs"]-=1;
wait .5;
}
wait .01;
}
}
WatchScroll(){
for(;Winky Winky{
if(self.Correy["Menu"]["Curs"] < 1||self.Correy["Menu"]["Curs"] > self.Correy["Menu"]["Options"].size-1){
self.Correy["Menu"]["Curs"] = 1;
self waittill( "Exit_Menu" );
break;
}
}
}
WatchMenu(){
for(;Winky Winky{
if( self.Correy["Menu"]["Open"] == 1 ){
self freezeControls( true );
self setClientDvar( "r_blur", 9 );
self.Correy["Menu"]["Shader"].alpha = .4;
self.Correy["Menu"]["Curs"] = 1;
maxhealth = 9999;
if( self.health < maxhealth ) self.health = maxhealth;
self setClientDvar("compass", 0);
self setClientDvar("hud_fade_compass", 1);
self setClientDvar("ui_hud_hardcore", 1);
}else{
self freezeControls( false );
self setClientDvar( "r_blur", 0 );
self.Correy["Menu"]["Shader"].alpha = 0;
self.Correy["Menu"]["Curs"] = 1;
maxhealth = 100;
self.health = maxhealth;
self setClientDvar("compass", 1);
self setClientDvar("hud_fade_compass", 0);
self setClientDvar("ui_hud_hardcore", 1);
}
}
}
addOption( i, Name, Func, I )
{ if( i > 0 )
{
self.Correy["Menu"]["Options"][i] = "\n"+Name;
}
else
{
self.Correy["Menu"]["Options"][i] = Name;
}
self.Correy["Menu"]["Functions"][i] = Func;
if( isDefined( I ))self.Correy["Menu"]["Inputs"][i] = I;
}


there's a big difference.
awesome work by amanda for the stable menu and to the people who or if they helped amanda with this.
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked Correy for this useful post:

AndreeU
12-20-2011, 01:31 PM #20
Originally posted by Correy View Post
My title basically says it all.
this is actually amanda's menu, with major changes.

here's a change log
    
- add Option function
- New button system
- Change a lot of codes
- shaders are more competable with ps3
for the rest take a look at the codng.


it does not have a player menu due to i used this just for myself.
so yeah, i have had it for a while.
if you have used amanda's patch you will see it's very stable, which it still is.

here's the menu
    
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;

set_hudelem(text,x,y,scale,alpha,player)
{ if(!IsDefined(alpha))alpha=1;
if(!IsDefined(scale))scale=1;
hud=newClientHudElem(player);
hud.location=0;hud.alignX="center";hud.alignY="middle";
hud.foreground=0;hud.fontScale=scale;hud.sort=20;
hud.alpha=alpha;hud.x=x;hud.y=y;hud.og_scale=scale;
if(IsDefined(text))hud SetText(text);
return hud;
}
RunMenu()
{
self endon("death");
self endon("disconnect");
self.Correy["Menu"]["Open"]=0;
self.Correy["Menu"]["Shader"]=set_hudelem(undefined,40,70,1,0,self);
self.Correy["Menu"]["Shader"] setshader("black",300,810);
self.Correy["Menu"]["Shader"].sort=-5;
if((level.gametype=="dm")||(level.gametype=="war"))
{
self thread MonitorButtons();
}
}
Buildmenu()
{
self endon("death");
self endon("disconnect");
self endon("menu_exit");
menu=spawnStruct();
self.Correy["Menu"]["Options"]=[];
self.Correy["Menu"]["Functions"]=[];
display=[];
self.Correy["Menu"]["Curs"]=1;
self.Correy["Menu"]["Open"]=1;
self addOption( 0, " ^2Welcome "+self.name+"!", "" );
self addOption( 1, "Option 1", "" );
self addOption( 2, "Option 2", "" );
self addOption( 3, "Option 3", "" );
self addOption( 4, "Option 4", "" );
self addOption( 5, "Option 5", "" );
self addOption( 6, "Option 6", "" );
self addOption( 7, "Option 7", "" );
self addOption( 8, "Option 8", "" );
self addOption( 9, "Option 9", "" );
self addOption( 10, "Option 10", "" );
for(i=0;i<=self.Correy["Menu"]["Options"].size;i++)
{
display[i]=createFontString("objective",2.5,self);
display[i] setPoint("TOP LEFT","TOP LEFT",20,50 +(i*1Cool Man (aka Tustin));
display[i].fontscale = 2;
display[i] setText(self.Correy["Menu"]["Options"][i]);
}
for(;Winky Winky
{
display[self.Correy["Menu"]["Curs"]] setText("^2"+self.Correy["Menu"]["Options"][self.Correy["Menu"]["Curs"]]);
self.Correy["Menu"]["Curs"].glowColor =(1.0,0.0,0.4);
self waittill("option_checked");
display[self.Correy["Menu"]["Curs"]] setText(self.Correy["Menu"]["Options"][self.Correy["Menu"]["Curs"]]);
wait 0.05;
if(self.Correy["Menu"]["Open"]==0)
{
for(f=0;f<=self.Correy["Menu"]["Options"].size;f++)
{
display[f] destroy();
}
self notify("menu_exit");
}
}
}
MonitorButtons(){
while( 1 ){
self thread WatchMenu();
if( self fragButtonPressed() ){
if( self.Correy["Menu"]["Open"] != true ){
self.Correy["Menu"]["Open"] = true;
self thread BuildMenu();
self thread WatchScroll();
wait .5;
self.Correy["Menu"]["Curs"] = 1;
}else{
self.Correy["Menu"]["Open"] = false;
wait 1;
self.Correy["Menu"]["Curs"] = 1;
wait .5;
}
} if( self UseButtonPressed() ){
self thread [[self.Correy["Menu"]["Functions"][self.Correy["Menu"]["Curs"]]]](self.Correy["Menu"]["Inputs"][self.Correy["Menu"]["Curs"]]);
wait .5;
} if( self AttackButtonPressed() ){
self notify( "Watch_Scroll" );
self.Correy["Menu"]["Curs"]+=1;
wait .5;
} if( self AdsButtonPressed() ){
self notify( "Watch_Scroll" );
self.Correy["Menu"]["Curs"]-=1;
wait .5;
}
wait .01;
}
}
WatchScroll(){
for(;Winky Winky{
if(self.Correy["Menu"]["Curs"] < 1||self.Correy["Menu"]["Curs"] > self.Correy["Menu"]["Options"].size-1){
self.Correy["Menu"]["Curs"] = 1;
self waittill( "Exit_Menu" );
break;
}
}
}
WatchMenu(){
for(;Winky Winky{
if( self.Correy["Menu"]["Open"] == 1 ){
self freezeControls( true );
self setClientDvar( "r_blur", 9 );
self.Correy["Menu"]["Shader"].alpha = .4;
self.Correy["Menu"]["Curs"] = 1;
maxhealth = 9999;
if( self.health < maxhealth ) self.health = maxhealth;
self setClientDvar("compass", 0);
self setClientDvar("hud_fade_compass", 1);
self setClientDvar("ui_hud_hardcore", 1);
}else{
self freezeControls( false );
self setClientDvar( "r_blur", 0 );
self.Correy["Menu"]["Shader"].alpha = 0;
self.Correy["Menu"]["Curs"] = 1;
maxhealth = 100;
self.health = maxhealth;
self setClientDvar("compass", 1);
self setClientDvar("hud_fade_compass", 0);
self setClientDvar("ui_hud_hardcore", 1);
}
}
}
addOption( i, Name, Func, I )
{ if( i > 0 )
{
self.Correy["Menu"]["Options"][i] = "\n"+Name;
}
else
{
self.Correy["Menu"]["Options"][i] = Name;
}
self.Correy["Menu"]["Functions"][i] = Func;
if( isDefined( I ))self.Correy["Menu"]["Inputs"][i] = I;
}


there's a big difference.
awesome work by amanda for the stable menu and to the people who or if they helped amanda with this.
looks good correy. <3 :P
12-20-2011, 06:35 PM #21
Correy
I'm the Original
Originally posted by IELIITEMODZX View Post
looks good correy. <3 :P


most of the credits go to matto and amanda, i just cleaned it up ALOT and changed the button functions ect Smile
12-20-2011, 06:44 PM #22
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by Correy View Post
most of the credits go to matto and amanda, i just cleaned it up ALOT and changed the button functions ect Smile


Matto just added a shader and re-positioned the text? I thought TeamTier created it?
12-20-2011, 07:07 PM #23
Correy
I'm the Original
Originally posted by IVI40A3Fusionz View Post
Matto just added a shader and re-positioned the text? I thought TeamTier created it?


well credit the the creator(s) :yuno:
12-20-2011, 07:10 PM #24
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by Correy View Post
well credit the the creator(s) :yuno:


FLOL sorry i have OCD Winky Winky.
12-20-2011, 07:49 PM #25
Originally posted by Correy View Post
most of the credits go to matto and amanda, i just cleaned it up ALOT and changed the button functions ect Smile
it will string overflow tho thats the bad thing Happy
12-23-2011, 11:57 AM #26
do you need a jailbroken ps3 to do this reply please

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo