mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-02 22:22:55 +00:00
All backgrounds are now handled by a seperate routine.
This will allow more fine handling without a ton of special cases everywhere.
Creates an absolutely nasty diff because all menu_t have been updated in one blast 🥹
For the things that DO need to draw outside of GS_MENU (M_DrawOptionsCogs, the Wrongwarp), the behaviourflag MBF_DRAWBGWHILEPLAYING has also been added.
67 lines
2 KiB
C
67 lines
2 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,
|
|
MBF_DRAWBGWHILEPLAYING,
|
|
NULL,
|
|
2, 5,
|
|
M_DrawGenericOptions,
|
|
M_DrawOptionsCogs,
|
|
M_OptionsTick,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
};
|