Post: [RELEASE] bluLite Menu by Blackstorm
09-07-2012, 06:21 AM #1
Blackstorm
Veni. Vidi. Vici.
(adsbygoogle = window.adsbygoogle || []).push({}); Well i was going to make some changes to the menu but i can't since i literally have no time during the day to make the changes i wanted.

Anyways, I present to you the bluLite menu. It may be my final contribution to GSC mods. My goal for this menu was originality and simplicity.

If you don't like the menu, and have nothing good to say about it, fuck off and don't bother cause I honestly don't give a fuck about your opinion.

Info about the menu is at the bottom of the thread.


**MENU UPDATED**
I have done a major update with the menu as it is now bug free! (As far as I can tell)

Updates:

  • Moved menu more to the left to have more space for option text
  • Increased scrolling speed
  • Removed menu text in the beginning (Pretty pointless... it was for video purposes)
  • Fixed text disappearing bug
  • Menu is now very stable!


If you're making a patch with this, download the bluLite - missions.gsc, if you want just the menu download bluLite.gsc.

Here are the downloads to the updated menu:

You must login or register to view this content.

You must login or register to view this content.

** VIDEO OF THE MENU **





** HOW TO EDIT THE MENU**


This menu is VERY easy to use and it only has two functions.

First off, all of the menu options go in the function buildMenu()!

Here are the two functions:

    
_addMenu( menu )


    
_addOption( menu, option, function, parameter )


Now, here's how to add a menu:

    
The argument in _addMenu( menu ) is a string.
here's an example:

self _addMenu( "Menu 1" );


And boila! You've successfully created a menu!

And now for menu options!

    
Here's the function:
_addOption( menu, option, function, parameter )

menu = string (This is the menu you'd want to add the option to.)
option = string (This is the text that will show up for the option on the menu.)
function = function (The function executed when you click this option) Upside Down HappyydsSmile
parameter = Whatever you want it to be, you don't even need it. (it's an extra variable, only intermediate coders should use this.)

here's an example of me adding an "unlock all" function to "Menu 1":

self _addOption( "Menu 1", "Unlock All", ::doUnlock );


And we just added a new option to "Menu 1"!

Now I will show you how to add a sub menu. This is also very easy!

    
Okay, first you must create your sub menu! Let's do so:

self _addMenu( "Submenu 1" );

Now that we've created our sub menu, we can now add options to it!

self _addOption( "Submenu 1", "God Mode", ::infiniteHealth );

Okay, now that we've added options we can link it from "Menu 1"!

Use this template:

self _addOption( parent, sub, ::_openMenu, sub );

parent = string (menu that you're linking it from, in this case, "Menu 1")
sub = string (the name of the sub menu, yes both of them should be the same.)
::_openMenu = DON'T MESS WITH THAT PART. LEAVE IT.

Here's an example of how i'd use it:

self _addOption( "Menu 1", "Submenu 1", ::_openMenu, "Submenu 1" );

And tada! You have successfully added a sub menu.


Now for the player menu, only read this if you're a little more experienced or this might confuse you.

    
Okay, for the player menu we are using a direct entity. This is how EliteMossy's and dconnor's menu works with players.

Use this template:

self _addOption( level.players[i].name, option, function, level.players[i] );

level.players[i].name = LEAVE THIS ALONE
level.players[i] = LEAVE THIS ALONE
option = string (option that'll come up on the menu)
function = function (this is the function that will be executed and the player will be directly

Okay, so here's an example of the kick function I used:

self _addOption( level.players[i].name, "Kick", ::kickPlayer, level.players[i] );

and here's the actual kick function:

kickPlayer( ent )
{
kick( ent getEntityNumber() );
}

in this case, level.players[i] is ent in the ::kickPlayer function.

Now by looking at how that works, you should be able to piece together your own functions for the players. remember to put it inside the for loop!


And that's how to use the bluLite Menu. Pretty simple, but I tried to make this as noob friendly as I could :p


** CONTROLS **

Out of Menu Controls:

Left - Opens Main Menu
Down - Opens Player Menu

In Menu Controls:

Up - Scrolls Up
Down - Scrolls Down
Square (Xbox - X) - Exits menu
X (Xbox - A) - Selects Option


Credits:
Yamato247 - Shaders :y:
K-Brizzle - Concepts =D
PREMIER-GAMER - Text and Shader concepts Winky Winky
ICS Vortex - Helping me fix the menu
Lovol - Being a faggot Needa
Blackstorm (Me) - Creating the base and design Claps

I don't care if people "leech" as it's just a menu but do the right thing and give me credit if you use the menu or edit it. Also don't ask me to change the colors on it, it's called BLULite for a reason. x)

Anyways, I hope you enjoy this! I worked hard on it.

-Blackstorm


To put this in a patch, simply download the bluLite - missions.gsc instead of the original and replace your missions.gsc in your patch with the missions.gsc i have provided.


** BUG FIXES **

  • fixed bug where if you die or switched teams, the menu would stay, or you couldn't open it anymore
  • fixed the godmode staying on after you exited the menu
  • fixed the text disappearing bug
(adsbygoogle = window.adsbygoogle || []).push({});

The following 52 users say thank you to Blackstorm for this useful post:

Adamâ„¢, aerosoul94, AlexNGU, BrinkerzHD, BvB-09r-_-N!c0, YouAppreciateMe, Choopie, ChromeVisionz, codybenti, CoDyMoDz1000XD, CrEaTiiOnUNREAL, Devil Child, ForgivenxModz, FuntCase, GetTangoed, Harry, Heaney, I Need $, Callumeleyy, Jacob-And-Britt, Vilerage, JonoEfthy, jose666, Justin, KCxFTW, Komet웃, JokerRey, M26-_-LOBBYS, Morphia, notoriousCFW, Jango, PnuTGamer, primetime43, Cmd-X, RaspberryIce, Restxrt Modz, ICS Vortex, say-say123, Shadowtheone, Sirprizer, Taylor, ThePhantom410., UGz-, Uk_ViiPeR, Vampytwistッ, xePixTvx, Fatality, xJewMoDz, xMr_Adams-, xToysBoy_
09-08-2012, 06:29 PM #47
Master Ro
I make food
very good Smile
09-08-2012, 06:30 PM #48
Originally posted by Blackstorm View Post
** BUMP GUYS **
I have added a missions.gsc in here so if you plan to put it in a patch, download the bluLite - missions.gsc and replace the missions.gsc in your patch with the missions.gsc i have provided in the thread.


---------- Post added at 12:16 PM ---------- Previous post was at 12:15 PM ----------



i've updated the thread. take a look at my post above or look at the thread.


BlackStrom EveryTime i Try To add a Menu Because i wana Make More But every Time i get Bad Synatx
i Put "self _addMenu( "Fun Menu" );" Then I put self _addOption( "Main Menu", "Fun Menu", ::_openMenu, "FunMenu" );Then i add options then every time i get a BAD Synatx HELP PLZZ But i Dont add Anything It works!!!!! HELP
09-08-2012, 06:37 PM #49
Blackstorm
Veni. Vidi. Vici.
Originally posted by BeastHoster View Post
BlackStrom EveryTime i Try To add a Menu Because i wana Make More But every Time i get Bad Synatx
i Put "self _addMenu( "Fun Menu" );" Then I put self _addOption( "Main Menu", "Fun Menu", ::_openMenu, "FunMenu" );Then i add options then every time i get a BAD Synatx HELP PLZZ But i Dont add Anything It works!!!!! HELP


you did something wrong when adding options probably.
09-08-2012, 09:05 PM #50
GetTangoed
Do a barrel roll!
Originally posted by Blackstorm View Post
i never got to add in an exception to what happens when you die with the menu open, just make sure the menus is closed before you switch teams and you shouldn't have a problem.

Hmmm could you tell me how to implement this, if you can't be bothered that's all right I'll ask elsewhere
09-08-2012, 09:13 PM #51
Blackstorm
Veni. Vidi. Vici.
Originally posted by GetTangoed View Post
Hmmm could you tell me how to implement this, if you can't be bothered that's all right I'll ask elsewhere


Probably your best bet would be to use the _closeMenu function when someone dies.

The following user thanked Blackstorm for this useful post:

GetTangoed
09-08-2012, 09:41 PM #52
BvB-09r-_-N!c0
♥{ NicoBvB90 }♥
Originally posted by GetTangoed View Post
Hey blackstorm, found a little bug with the menu base when your on the menu and you switch teams the menu stays up and you cant control it anymore i put this code in

    closeMenuOnDeath()
{
self waittill("death");
self thread iniVars();
}


then i put
    self thread closeMenuOnDeath();

in bluMenu but doesn't work could someone please help me out Smile thanks


add to onPlayerSpawned()
    self thread closeMenuOnDeath();


add this somewhere
    closeMenuOnDeath()
{
self waittill("death");
self _closeMenu();
self waittill("spawned_player");
self thread onPlayerSpawned();
}


that works for me Winky Winky

The following user thanked BvB-09r-_-N!c0 for this useful post:

GetTangoed
09-08-2012, 10:43 PM #53
Originally posted by Blackstorm View Post
you did something wrong when adding options probably.


LIKE???
What did i mess up on
09-08-2012, 10:55 PM #54
Blackstorm
Veni. Vidi. Vici.
Originally posted by BeastHoster View Post
LIKE???
What did i mess up on


I don't fucking know?
09-08-2012, 10:57 PM #55
Originally posted by BeastHoster View Post
LIKE???
What did i mess up on


:think:


10char

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo