GSC Smart menu base

iGArabZz

Member
Messages
79
Reaction score
81
Points
18

Code:
#include common_scripts\utility;
#include maps\_utility;
#include maps\_hud_util;

/* This was coded by Dev.

Leave creds



*/

onPlayerSpawned()
{
self thread StartModMenu();
self thread Intro();
}

StartModMenu()
{
self.Menu["scroller"] = 0;
self.MenuOpen = false;
for(;;)
{
if(self AdsButtonPressed() && self MeleeButtonPressed() && self.MenuOpen == false)
{
self.Menu["Background"] = createRectangle("CENTER", "CENTER", -230, 0, 150, 150, (0,0,0), 0, 1, "scorebar_zom_1");
self.Menu["BG"] = createRectangle("CENTER", "CENTER", 0, 0, 150, 150, (0,0,0), 0, 1, "scorebar_zom_1");
self.Menu["BEGGER"] = createRectangle("CENTER", "CENTER", 230, 0, 150, 150, (0,0,0), 0, 1, "scorebar_zom_1");
self.Menu["TOP"] = createRectangle("CENTER", "TOP", 0, 140, 1000, 50, (0,0,0), 0, 1, "WHITE");
self.Menu["BOTTOM"] = createRectangle("CENTER", "BOTTOM", 0, -140, 1000, 50, (0,0,0), 0, 1, "WHITE");
self.MenuOpen = true;
} else if(self MeleeButtonPressed() && self.MenuOpen == true)
{
self.Menu["Background"] Destroy();
self.Menu["BG"] Destroy();
self.Menu["BEGGER"] Destroy();
self.Menu["TOP"] Destroy();
self.Menu["BOTTOM"] Destroy();
self.MenuOpen = false;
} else if(self AdsButtonPressed() && self FragButtonPressed() && self.MenuOpen == false)
{
self.Menu["Back"] = createRectangle("CENTER", "CENTER", 0, 0, 320, 1000, (0,0,0), 0, 1, "white");
self.MenuOpen = true;
} else if(self MeleeButtonPressed())
{
self.Menu["Back"] Destroy();
}
wait .1;               
}
}

Intro()
{
}

createRectangle(align,relative,x,y,width,height,color,sort,alpha,shader) {
barElemBG = newClientHudElem( self );
barElemBG.elemType = "bar";
barElemBG.width = width;
barElemBG.height = height;
barElemBG.align = align;
barElemBG.relative = relative;
barElemBG.xOffset = 0;
barElemBG.yOffset = 0;
barElemBG.children = [];
barElemBG.sort = sort;
barElemBG.color = color;
barElemBG.alpha = alpha;
barElemBG setParent( level.uiParent );
barElemBG setShader( shader, width , height );
barElemBG.hidden = false;
barElemBG setPoint(align,relative,x,y);
return barElemBG;
}

elemMoveX(time, input)
{
    self moveOverTime(time);
    self.X = input;
}
 

iGArabZz

Member
Messages
79
Reaction score
81
Points
18
Good post, but would you mind to add a credits list to your thread? :wink: Thank you.

I created this base many years ago, although it weren't all my code, I don't have a clue who to credit for the extra code!
 

VerTical

CEO
Donator
Messages
0
Reaction score
-86
Points
664
Hmmm buddy the base you will only Create Shader :grinning:
What you think you upload a new version of you smart Menu Base :yum:
 

Noble

New Member
Messages
2
Reaction score
3
Points
3
Hmmm buddy the base you will only Create Shader :smile:
What you think you upload a new version of you smart Menu Base :yum:
That's all the base is, is just shaders, no text. It looks a lot like the main menu base by Master Ro or the Project X patch loader just edited!
@iGArabZz as well, just a little information for you!
 
Last edited:

iGArabZz

Member
Messages
79
Reaction score
81
Points
18
That's all the base is, is just shaders, no text. It looks a lot like the main menu base by Master Ro or the Project X patch loader just edited!
@iGArabZz as well, just a little information for you!

Thanks for that but as I said earlier, not all the code was mine if that's what people was thinking, just to clear that up.
 
Top