mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Menus/Data Options: move Replay and Discord settings into drawers on main Data Options menu
This commit is contained in:
parent
9df8dd2bc0
commit
471f97bd58
5 changed files with 37 additions and 94 deletions
17
src/k_menu.h
17
src/k_menu.h
|
|
@ -339,11 +339,18 @@ typedef enum
|
|||
{
|
||||
dopt_screenshot = 0,
|
||||
dopt_addon,
|
||||
dopt_spacer1,
|
||||
dopt_replay,
|
||||
dopt_rprecord,
|
||||
dopt_rpsync,
|
||||
#ifdef HAVE_DISCORDRPC
|
||||
dopt_discord,
|
||||
dopt_drp,
|
||||
dopt_drpstreamer,
|
||||
dopt_drpjoins,
|
||||
dopt_drpinvites,
|
||||
#endif
|
||||
dopt_spacer,
|
||||
dopt_spacer2,
|
||||
dopt_erase,
|
||||
} dopt_e;
|
||||
|
||||
|
|
@ -431,14 +438,6 @@ extern menu_t OPTIONS_DataScreenshotDef;
|
|||
extern menuitem_t OPTIONS_DataAddon[];
|
||||
extern menu_t OPTIONS_DataAddonDef;
|
||||
|
||||
extern menuitem_t OPTIONS_DataReplay[];
|
||||
extern menu_t OPTIONS_DataReplayDef;
|
||||
|
||||
#ifdef HAVE_DISCORDRPC
|
||||
extern menuitem_t OPTIONS_DataDiscord[];
|
||||
extern menu_t OPTIONS_DataDiscordDef;
|
||||
#endif
|
||||
|
||||
extern menuitem_t OPTIONS_DataErase[];
|
||||
extern menu_t OPTIONS_DataEraseDef;
|
||||
|
||||
|
|
|
|||
|
|
@ -11,10 +11,8 @@ target_sources(SRB2SDL2 PRIVATE
|
|||
options-1.c
|
||||
options-data-1.c
|
||||
options-data-addons.c
|
||||
options-data-discord.c
|
||||
options-data-erase-1.c
|
||||
options-data-erase-profile.c
|
||||
options-data-replays.c
|
||||
options-data-screenshots.c
|
||||
options-gameplay-1.c
|
||||
options-gameplay-item-toggles.c
|
||||
|
|
|
|||
|
|
@ -2,26 +2,48 @@
|
|||
/// \brief Data Options -- see dopt_e
|
||||
|
||||
#include "../k_menu.h"
|
||||
#include "../discord.h" // discord rpc cvars
|
||||
|
||||
// data options menu -- see dopt_e
|
||||
menuitem_t OPTIONS_Data[] =
|
||||
{
|
||||
|
||||
{IT_STRING | IT_SUBMENU, "Media Options...", "Set options relative to screenshot and movie capture.",
|
||||
{IT_STRING | IT_SUBMENU, "Video Recording...", "Set options relative to screenshot and movie capture.",
|
||||
NULL, {.submenu = &OPTIONS_DataScreenshotDef}, 0, 0},
|
||||
|
||||
{IT_STRING | IT_SUBMENU, "Addon Options...", "Set options relative to the addons menu.",
|
||||
{IT_STRING | IT_SUBMENU, "Addons...", "Set options relative to the addons menu.",
|
||||
NULL, {.submenu = &OPTIONS_DataAddonDef}, 0, 0},
|
||||
|
||||
{IT_STRING | IT_SUBMENU, "Replay Options...", "Set options relative to replays.",
|
||||
NULL, {.submenu = &OPTIONS_DataReplayDef}, 0, 0},
|
||||
{IT_SPACE | IT_NOTHING, NULL, NULL,
|
||||
NULL, {NULL}, 0, 0},
|
||||
|
||||
{IT_HEADER, "Replays...", NULL,
|
||||
NULL, {NULL}, 0, 0},
|
||||
|
||||
{IT_STRING | IT_CVAR, "Record Replays", "Select when to save replays.",
|
||||
NULL, {.cvar = &cv_recordmultiplayerdemos}, 0, 0},
|
||||
|
||||
{IT_STRING | IT_CVAR, "Net Consistency Quality", "For filesize, how often do we write position data in online replays?",
|
||||
NULL, {.cvar = &cv_netdemosyncquality}, 0, 0},
|
||||
|
||||
#ifdef HAVE_DISCORDRPC
|
||||
{IT_STRING | IT_SUBMENU, "Discord Options...", "Set options relative to Discord Rich Presence.",
|
||||
NULL, {.submenu = &OPTIONS_DataDiscordDef}, 0, 0},
|
||||
{IT_HEADER, "Discord Rich Presence...", NULL,
|
||||
NULL, {NULL}, 0, 0},
|
||||
|
||||
{IT_STRING | IT_CVAR, "Rich Presence", "Allow Discord to display game info on your status.",
|
||||
NULL, {.cvar = &cv_discordrp}, 0, 0},
|
||||
|
||||
{IT_STRING | IT_CVAR, "Streamer Mode", "Prevents the logging of some account information such as your tag in the console.",
|
||||
NULL, {.cvar = &cv_discordstreamer}, 0, 0},
|
||||
|
||||
{IT_STRING | IT_CVAR, "Allow Ask to Join", "Allow other people to request joining your game from Discord.",
|
||||
NULL, {.cvar = &cv_discordasks}, 0, 0},
|
||||
|
||||
{IT_STRING | IT_CVAR, "Allow Invites", "Set who is allowed to generate Discord invites to your game.",
|
||||
NULL, {.cvar = &cv_discordinvites}, 0, 0},
|
||||
#endif
|
||||
|
||||
{IT_SPACE | IT_NOTHING, NULL, NULL,
|
||||
{IT_SPACE | IT_DYBIGSPACE, NULL, NULL,
|
||||
NULL, {NULL}, 0, 0},
|
||||
|
||||
{IT_STRING | IT_SUBMENU, "\x85""Erase Data...", "Erase specific data. Be careful, what's deleted is gone forever!",
|
||||
|
|
|
|||
|
|
@ -1,45 +0,0 @@
|
|||
/// \file menus/options-data-discord.c
|
||||
/// \brief Discord Rich Presence Options
|
||||
|
||||
#include "../k_menu.h"
|
||||
#include "../discord.h" // discord rpc cvars
|
||||
|
||||
menuitem_t OPTIONS_DataDiscord[] =
|
||||
{
|
||||
{IT_STRING | IT_CVAR, "Rich Presence", "Allow Discord to display game info on your status.",
|
||||
NULL, {.cvar = &cv_discordrp}, 0, 0},
|
||||
|
||||
{IT_SPACE | IT_NOTHING, NULL, NULL,
|
||||
NULL, {NULL}, 0, 0},
|
||||
|
||||
{IT_HEADER, "RICH PRESENCE SETTINGS", NULL,
|
||||
NULL, {NULL}, 0, 0},
|
||||
|
||||
{IT_STRING | IT_CVAR, "Streamer Mode", "Prevents the logging of some account information such as your tag in the console.",
|
||||
NULL, {.cvar = &cv_discordstreamer}, 0, 0},
|
||||
|
||||
{IT_STRING | IT_CVAR, "Allow Ask to Join", "Allow other people to request joining your game from Discord.",
|
||||
NULL, {.cvar = &cv_discordasks}, 0, 0},
|
||||
|
||||
{IT_STRING | IT_CVAR, "Allow Invites", "Set who is allowed to generate Discord invites to your game.",
|
||||
NULL, {.cvar = &cv_discordinvites}, 0, 0},
|
||||
|
||||
};
|
||||
|
||||
menu_t OPTIONS_DataDiscordDef = {
|
||||
sizeof (OPTIONS_DataDiscord) / sizeof (menuitem_t),
|
||||
&OPTIONS_DataDef,
|
||||
0,
|
||||
OPTIONS_DataDiscord,
|
||||
48, 80,
|
||||
SKINCOLOR_BLUEBERRY, 0,
|
||||
MBF_DRAWBGWHILEPLAYING,
|
||||
NULL,
|
||||
2, 5,
|
||||
M_DrawGenericOptions,
|
||||
M_DrawOptionsCogs,
|
||||
M_OptionsTick,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
};
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
/// \file menus/options-data-replays.c
|
||||
/// \brief Replay Options
|
||||
|
||||
#include "../k_menu.h"
|
||||
|
||||
menuitem_t OPTIONS_DataReplay[] =
|
||||
{
|
||||
{IT_STRING | IT_CVAR, "Record Replays", "Select when to save replays.",
|
||||
NULL, {.cvar = &cv_recordmultiplayerdemos}, 0, 0},
|
||||
|
||||
{IT_STRING | IT_CVAR, "Net Consistency Quality", "For filesize, how often do we write position data in online replays?",
|
||||
NULL, {.cvar = &cv_netdemosyncquality}, 0, 0},
|
||||
};
|
||||
|
||||
menu_t OPTIONS_DataReplayDef = {
|
||||
sizeof (OPTIONS_DataReplay) / sizeof (menuitem_t),
|
||||
&OPTIONS_DataDef,
|
||||
0,
|
||||
OPTIONS_DataReplay,
|
||||
48, 80,
|
||||
SKINCOLOR_BLUEBERRY, 0,
|
||||
MBF_DRAWBGWHILEPLAYING,
|
||||
NULL,
|
||||
2, 5,
|
||||
M_DrawGenericOptions,
|
||||
M_DrawOptionsCogs,
|
||||
M_OptionsTick,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
};
|
||||
Loading…
Add table
Reference in a new issue