mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-26 21:11:51 +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.
45 lines
1.2 KiB
C
45 lines
1.2 KiB
C
/// \file menus/options-data-1.c
|
|
/// \brief Data Options -- see dopt_e
|
|
|
|
#include "../k_menu.h"
|
|
|
|
// data options menu -- see dopt_e
|
|
menuitem_t OPTIONS_Data[] =
|
|
{
|
|
|
|
{IT_STRING | IT_SUBMENU, "Screenshot Options...", "Set options relative to screenshot and GIF capture.",
|
|
NULL, {.submenu = &OPTIONS_DataScreenshotDef}, 0, 0},
|
|
|
|
{IT_STRING | IT_SUBMENU, "Addon Options...", "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},
|
|
|
|
#ifdef HAVE_DISCORDRPC
|
|
{IT_STRING | IT_SUBMENU, "Discord Options...", "Set options relative to Discord Rich Presence.",
|
|
NULL, {.submenu = &OPTIONS_DataDiscordDef}, 0, 0},
|
|
#endif
|
|
|
|
{IT_SPACE | IT_NOTHING, NULL, NULL,
|
|
NULL, {NULL}, 0, 0},
|
|
|
|
{IT_STRING | IT_SUBMENU, "\x85""Erase Data...", "Erase specific data. Be careful, what's deleted is gone forever!",
|
|
NULL, {.submenu = &OPTIONS_DataEraseDef}, 0, 0},
|
|
|
|
};
|
|
|
|
menu_t OPTIONS_DataDef = {
|
|
sizeof (OPTIONS_Data) / sizeof (menuitem_t),
|
|
&OPTIONS_MainDef,
|
|
0,
|
|
OPTIONS_Data,
|
|
48, 80,
|
|
SKINCOLOR_BLUEBERRY, 0,
|
|
2, 5,
|
|
M_DrawGenericOptions,
|
|
M_OptionsTick,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
};
|