- What permissions do you give others to modify and/or maintain your submission?
- Modify: YES - Maintain: YES - I give permission for my entire submission to be modified by others or used in their own work. I give permission for my entire submission to be maintained by others as well.
- I made sure my file(s) follow the Submissions Guidelines
- Yes
- I named my file(s) correctly (see Filename Conventions)
- Yes
Behold!
A awesome client-side menu system by Lugent (that's me!).
Features:
If you need a example about how to make your menu, then you can look at example.lua which is totally filled with comments everywhere to guide through.
A awesome client-side menu system by Lugent (that's me!).
Features:
- 100% customizable (header, position, color, behaviour and more).
- Multiple pages on the same menu.
- Custom functions (handler, ticker and drawer).
- No netcode dependent.
Functions and Variables:
-- Exposed Functions:
boolean LM_PressedKey(keyevent_t key, int code) -- checks if a key on keyboard is pressed
boolean LM_ActiveMenu() -- checks if there's an active menu
void LM_GoToPage(int page) -- go to a specific page; works only if there's a menu active
void LM_PrevPage() -- go to the previous menu (if possible); otherwise closes the menu
void LM_OpenMenu(table menu, int page) -- opens a menu with a specified page
void LM_CloseMenu() -- closes the current active menu
-- not mandatory, use this when doing custom rendering for your menus
-- you can actually make your whole item rendering without using these if you wish
void LM_DrawScrollMenu(drawer v, table menu) -- renders the standard menu
void LM_DrawStandardMenu(drawer v, table menu) -- renders the scroll menu
-- Exposed Variables:
lmenu.current -- current menu table; -1 means no menu
lmenu.cursor -- the actual item select
lmenu.page -- the actual page on the menu
-- menu styles
MMT_NORMAL -- SRB2's Vanilla standard menu
MMT_SCROLL -- SRB2's Vanilla scroll menu
MMT_CUSTOM -- User defined rendering menu; makes uses of drawer function
-- item types
MIT_STRING -- normal item
MIT_HEADER -- header item
-- item flags
MIF_DISABLED -- this item is disabled
MIF_FUNCTION -- this item runs a function
MIF_CVAR_STRING -- this item manipulated a cvar; displays it as string
MIF_CVAR_NUMBER -- this item manipulated a cvar; displays it as number
-- keycodes
KEY_UP -- up arrow key
KEY_DOWN -- down arrow key
KEY_LEFT -- left arrow key
KEY_RIGHT -- right arrow key
KEY_ESC -- espace key
KEY_ENTER -- enter key
KEY_CONSOLE -- tilde key
If you need a example about how to make your menu, then you can look at example.lua which is totally filled with comments everywhere to guide through.