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
11-27-2011, 05:03 PM #11
Correy
I'm the Original
Originally posted by IVI40A3Fusionz View Post
I have no idea i put it into a clean patch (with some .gscs cleaned out) thread RunMenu(); to onplayerspawned then when i spawn it freezes instantly Eek


um, i dont know why.. i'll have to look later, but pc its fine
11-27-2011, 05:08 PM #12
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by Correy View Post
um, i dont know why.. i'll have to look later, but pc its fine


I might try and make my own little menu base, :/ might be a challenge though but like i always say you gotta do stuff for yourself if you wanna have any chance in succeeding. You got any useful tips on making menus?

The following user thanked IVI40A3Fusionz for this useful post:

oO-GKUSH-Oo
11-27-2011, 05:14 PM #13
Correy
I'm the Original
Originally posted by IVI40A3Fusionz View Post
I might try and make my own little menu base, :/ might be a challenge though but like i always say you gotta do stuff for yourself if you wanna have any chance in succeeding. You got any useful tips on making menus?


erm, yeah..
make it easy for yourself
11-27-2011, 09:33 PM #14
oO-GKUSH-Oo
< ^ > < ^ >
Originally posted by IVI40A3Fusionz View Post
Thanks bro! Smile Doesn't look that good TBH i was kinda hoping it had a scrollbar :/, i couldn't test it as it would freeze my PS3 as soon as i spawned.

Yea so it wasnt just my pc after all lol.
11-29-2011, 01:43 AM #15
Correy
I'm the Original
Originally posted by 9484
Yea so it wasnt just my pc after all lol.


um, i dont see why.. its fine for me, let me look at the threading
12-19-2011, 06:44 PM #16
AndreeU
+cM TeamCM GFX 4 Lifee<3
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.

could i use this for W@W because i cant seem to find a W@W clean base menu ....
12-19-2011, 06:45 PM #17
AndreeU
+cM TeamCM GFX 4 Lifee<3
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.

could i use this for W@W because i cant seem to find a W@W clean base menu ....
12-19-2011, 08:39 PM #18
Correy
I'm the Original
Originally posted by zFakieHDz View Post
could i use this for W@W because i cant seem to find a W@W clean base menu ....


yes you can Smile
12-19-2011, 08:47 PM #19
AndreeU
+cM TeamCM GFX 4 Lifee<3
Originally posted by Correy View Post
yes you can Smile


yes awesome then ima work on a W@W because theres verly no patches there also once im done with the script in what file directory do i put it ...
[ATTACH=CONFIG]14262[/ATTACH]
im talking about the left columm in which one does it go in because all of them has something inside

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo