mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-26 13:01:52 +00:00
- src/menu contains files for each menu's definitions. - src/menu/transient contains menus which are reused in many places or are separate from Main Menu entirely. File names ending in "-1" are menus which contain a submenu. The suffix is added so that the parent menu sorts before all its children in directory lists. It's also done so Tab completion doesn't stop such that a hyphen (-) would need to be typed. For example (this is how I auto complete file names): "ex" <TAB> completes to "extras" because the choices are "extras.c" or "extras-addons.c" etc. Now you need to reach away from the home row of a keyboard to type a "-" in order to complete any of the submenu file names. VS "ex" <TAB> completes to "extras-". You only need to reach to type a "1" for one menu. There may be more than one submenu and submenu names start with letters, which are closer to the home row.
64 lines
1.9 KiB
C
64 lines
1.9 KiB
C
/// \file menus/options-server-1.c
|
|
/// \brief Server Options
|
|
|
|
#include "../k_menu.h"
|
|
|
|
menuitem_t OPTIONS_Server[] =
|
|
{
|
|
|
|
{IT_STRING | IT_CVAR | IT_CV_STRING, "Server Name", "Change the name of your server.",
|
|
NULL, {.cvar = &cv_servername}, 0, 0},
|
|
|
|
{IT_STRING | IT_CVAR, "Intermission", "Set how long to stay on the result screen.",
|
|
NULL, {.cvar = &cv_inttime}, 0, 0},
|
|
|
|
{IT_STRING | IT_CVAR, "Map Progression", "Set how the next map is chosen.",
|
|
NULL, {.cvar = &cv_advancemap}, 0, 0},
|
|
|
|
{IT_STRING | IT_CVAR, "Vote Timer", "Set how long players have to vote.",
|
|
NULL, {.cvar = &cv_votetime}, 0, 0},
|
|
|
|
|
|
{IT_SPACE | IT_NOTHING, NULL, NULL,
|
|
NULL, {NULL}, 0, 0},
|
|
|
|
{IT_STRING | IT_CVAR, "Maximum Players", "How many players can play at once.",
|
|
NULL, {.cvar = &cv_maxplayers}, 0, 0},
|
|
|
|
{IT_STRING | IT_CVAR, "Maximum Connections", "How many players & spectators can connect to the server.",
|
|
NULL, {.cvar = &cv_maxconnections}, 0, 0},
|
|
|
|
{IT_STRING | IT_CVAR, "Allow Joining", "Sets whether players can connect to your server.",
|
|
NULL, {.cvar = &cv_allownewplayer}, 0, 0},
|
|
|
|
{IT_STRING | IT_CVAR, "Allow Downloads", "Allows joiners to download missing files from you.",
|
|
NULL, {.cvar = &cv_downloading}, 0, 0},
|
|
|
|
{IT_STRING | IT_CVAR, "Pause Permissions", "Sets who can pause the game.",
|
|
NULL, {.cvar = &cv_pause}, 0, 0},
|
|
|
|
{IT_STRING | IT_CVAR, "Mute Chat", "Prevents non-admins from sending chat messages.",
|
|
NULL, {.cvar = &cv_mute}, 0, 0},
|
|
|
|
{IT_SPACE | IT_NOTHING, NULL, NULL,
|
|
NULL, {NULL}, 0, 0},
|
|
|
|
{IT_STRING | IT_SUBMENU, "Advanced...", "Advanced options. Be careful when messing with these!",
|
|
NULL, {.submenu = &OPTIONS_ServerAdvancedDef}, 0, 0},
|
|
|
|
};
|
|
|
|
menu_t OPTIONS_ServerDef = {
|
|
sizeof (OPTIONS_Server) / sizeof (menuitem_t),
|
|
&OPTIONS_MainDef,
|
|
0,
|
|
OPTIONS_Server,
|
|
48, 70, // This menu here is slightly higher because there's a lot of options...
|
|
SKINCOLOR_VIOLET, 0,
|
|
2, 5,
|
|
M_DrawGenericOptions,
|
|
M_OptionsTick,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
};
|