mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +00:00
menubehaviourflags_t / (menu_t).behaviourflags
- MBF_UD_LR_FLIPPED
- Genericisation of the control flip for PAUSE_PlaybackMenuDef
- MBF_SOUNDLESS
- Do not create sound for default menu actions
This commit is contained in:
parent
a0fa45bcec
commit
42cc95f6ed
40 changed files with 65 additions and 8 deletions
11
src/k_menu.h
11
src/k_menu.h
|
|
@ -129,6 +129,12 @@ void M_HandlePauseMenuGametype(INT32 choice);
|
||||||
// MENU TYPEDEFS
|
// MENU TYPEDEFS
|
||||||
//
|
//
|
||||||
|
|
||||||
|
typedef enum
|
||||||
|
{
|
||||||
|
MBF_UD_LR_FLIPPED = 1, // flip up-down and left-right axes
|
||||||
|
MBF_SOUNDLESS = 2, // do not play base menu sounds
|
||||||
|
} menubehaviourflags_t;
|
||||||
|
|
||||||
struct menuitem_t
|
struct menuitem_t
|
||||||
{
|
{
|
||||||
UINT16 status; // show IT_xxx
|
UINT16 status; // show IT_xxx
|
||||||
|
|
@ -154,6 +160,7 @@ struct menu_t
|
||||||
|
|
||||||
INT16 x, y; // x, y of menu
|
INT16 x, y; // x, y of menu
|
||||||
INT16 extra1, extra2; // Can be whatever really! Options menu uses extra1 for bg colour.
|
INT16 extra1, extra2; // Can be whatever really! Options menu uses extra1 for bg colour.
|
||||||
|
INT16 behaviourflags; // menubehaviourflags_t
|
||||||
const char *music; // Track to play in M_PlayMenuJam. NULL for default, "." to stop
|
const char *music; // Track to play in M_PlayMenuJam. NULL for default, "." to stop
|
||||||
|
|
||||||
INT16 transitionID; // only transition if IDs match
|
INT16 transitionID; // only transition if IDs match
|
||||||
|
|
@ -1204,6 +1211,8 @@ boolean M_StatisticsInputs(INT32 ch);
|
||||||
0,\
|
0,\
|
||||||
source,\
|
source,\
|
||||||
x, y,\
|
x, y,\
|
||||||
|
0, 0,\
|
||||||
|
0,\
|
||||||
NULL,\
|
NULL,\
|
||||||
0, 0,\
|
0, 0,\
|
||||||
M_DrawGenericMenu,\
|
M_DrawGenericMenu,\
|
||||||
|
|
@ -1222,6 +1231,7 @@ boolean M_StatisticsInputs(INT32 ch);
|
||||||
source,\
|
source,\
|
||||||
0, 0,\
|
0, 0,\
|
||||||
0, 0,\
|
0, 0,\
|
||||||
|
0,\
|
||||||
NULL,\
|
NULL,\
|
||||||
1, 5,\
|
1, 5,\
|
||||||
M_DrawKartGamemodeMenu,\
|
M_DrawKartGamemodeMenu,\
|
||||||
|
|
@ -1239,6 +1249,7 @@ boolean M_StatisticsInputs(INT32 ch);
|
||||||
source,\
|
source,\
|
||||||
0, 0,\
|
0, 0,\
|
||||||
0, 0,\
|
0, 0,\
|
||||||
|
0,\
|
||||||
"EXTRAS",\
|
"EXTRAS",\
|
||||||
1, 5,\
|
1, 5,\
|
||||||
M_DrawImageDef,\
|
M_DrawImageDef,\
|
||||||
|
|
|
||||||
|
|
@ -902,8 +902,7 @@ static void M_HandleMenuInput(void)
|
||||||
lr = menucmd[pid].dpad_lr;
|
lr = menucmd[pid].dpad_lr;
|
||||||
ud = menucmd[pid].dpad_ud;
|
ud = menucmd[pid].dpad_ud;
|
||||||
|
|
||||||
// If we ever add a second horizontal menu, make it a menu_t property, not an extra check.
|
if (currentMenu->behaviourflags & MBF_UD_LR_FLIPPED)
|
||||||
if (currentMenu == &PAUSE_PlaybackMenuDef)
|
|
||||||
{
|
{
|
||||||
ud = menucmd[pid].dpad_lr;
|
ud = menucmd[pid].dpad_lr;
|
||||||
lr = -menucmd[pid].dpad_ud;
|
lr = -menucmd[pid].dpad_ud;
|
||||||
|
|
@ -916,14 +915,14 @@ static void M_HandleMenuInput(void)
|
||||||
// Keys usable within menu
|
// Keys usable within menu
|
||||||
if (ud > 0)
|
if (ud > 0)
|
||||||
{
|
{
|
||||||
if (M_NextOpt())
|
if (M_NextOpt() && !(currentMenu->behaviourflags & MBF_SOUNDLESS))
|
||||||
S_StartSound(NULL, sfx_s3k5b);
|
S_StartSound(NULL, sfx_s3k5b);
|
||||||
M_SetMenuDelay(pid);
|
M_SetMenuDelay(pid);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (ud < 0)
|
else if (ud < 0)
|
||||||
{
|
{
|
||||||
if (M_PrevOpt())
|
if (M_PrevOpt() && !(currentMenu->behaviourflags & MBF_SOUNDLESS))
|
||||||
S_StartSound(NULL, sfx_s3k5b);
|
S_StartSound(NULL, sfx_s3k5b);
|
||||||
M_SetMenuDelay(pid);
|
M_SetMenuDelay(pid);
|
||||||
return;
|
return;
|
||||||
|
|
@ -933,7 +932,8 @@ static void M_HandleMenuInput(void)
|
||||||
if (routine && ((currentMenu->menuitems[itemOn].status & IT_TYPE) == IT_ARROWS
|
if (routine && ((currentMenu->menuitems[itemOn].status & IT_TYPE) == IT_ARROWS
|
||||||
|| (currentMenu->menuitems[itemOn].status & IT_TYPE) == IT_CVAR))
|
|| (currentMenu->menuitems[itemOn].status & IT_TYPE) == IT_CVAR))
|
||||||
{
|
{
|
||||||
S_StartSound(NULL, sfx_s3k5b);
|
if (!(currentMenu->behaviourflags & MBF_SOUNDLESS))
|
||||||
|
S_StartSound(NULL, sfx_s3k5b);
|
||||||
routine(0);
|
routine(0);
|
||||||
M_SetMenuDelay(pid);
|
M_SetMenuDelay(pid);
|
||||||
}
|
}
|
||||||
|
|
@ -945,7 +945,8 @@ static void M_HandleMenuInput(void)
|
||||||
if (routine && ((currentMenu->menuitems[itemOn].status & IT_TYPE) == IT_ARROWS
|
if (routine && ((currentMenu->menuitems[itemOn].status & IT_TYPE) == IT_ARROWS
|
||||||
|| (currentMenu->menuitems[itemOn].status & IT_TYPE) == IT_CVAR))
|
|| (currentMenu->menuitems[itemOn].status & IT_TYPE) == IT_CVAR))
|
||||||
{
|
{
|
||||||
S_StartSound(NULL, sfx_s3k5b);
|
if (!(currentMenu->behaviourflags & MBF_SOUNDLESS))
|
||||||
|
S_StartSound(NULL, sfx_s3k5b);
|
||||||
routine(1);
|
routine(1);
|
||||||
M_SetMenuDelay(pid);
|
M_SetMenuDelay(pid);
|
||||||
}
|
}
|
||||||
|
|
@ -959,7 +960,8 @@ static void M_HandleMenuInput(void)
|
||||||
|
|
||||||
if (routine)
|
if (routine)
|
||||||
{
|
{
|
||||||
S_StartSound(NULL, sfx_s3k5b);
|
if (!(currentMenu->behaviourflags & MBF_SOUNDLESS))
|
||||||
|
S_StartSound(NULL, sfx_s3k5b);
|
||||||
|
|
||||||
if (((currentMenu->menuitems[itemOn].status & IT_TYPE) == IT_CALL
|
if (((currentMenu->menuitems[itemOn].status & IT_TYPE) == IT_CALL
|
||||||
|| (currentMenu->menuitems[itemOn].status & IT_TYPE) == IT_SUBMENU)
|
|| (currentMenu->menuitems[itemOn].status & IT_TYPE) == IT_SUBMENU)
|
||||||
|
|
@ -1014,7 +1016,8 @@ static void M_HandleMenuInput(void)
|
||||||
return;
|
return;
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
S_StartSound(NULL, sfx_s3k5b);
|
if (!(currentMenu->behaviourflags & MBF_SOUNDLESS))
|
||||||
|
S_StartSound(NULL, sfx_s3k5b);
|
||||||
|
|
||||||
routine(-1);
|
routine(-1);
|
||||||
M_SetMenuDelay(pid);
|
M_SetMenuDelay(pid);
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ menu_t EXTRAS_MainDef = {
|
||||||
EXTRAS_Main,
|
EXTRAS_Main,
|
||||||
0, 0,
|
0, 0,
|
||||||
0, 0,
|
0, 0,
|
||||||
|
0,
|
||||||
"EXTRAS",
|
"EXTRAS",
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawExtras,
|
M_DrawExtras,
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ menu_t MISC_AddonsDef = {
|
||||||
MISC_AddonsMenu,
|
MISC_AddonsMenu,
|
||||||
50, 28,
|
50, 28,
|
||||||
0, 0,
|
0, 0,
|
||||||
|
0,
|
||||||
"EXTRAS",
|
"EXTRAS",
|
||||||
0, 0,
|
0, 0,
|
||||||
M_DrawAddons,
|
M_DrawAddons,
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ menu_t MISC_ChallengesDef = {
|
||||||
MISC_ChallengesStatsDummyMenu,
|
MISC_ChallengesStatsDummyMenu,
|
||||||
BASEVIDWIDTH/2, 30,
|
BASEVIDWIDTH/2, 30,
|
||||||
0, 0,
|
0, 0,
|
||||||
|
0,
|
||||||
"EXTRAS",
|
"EXTRAS",
|
||||||
98, 0,
|
98, 0,
|
||||||
M_DrawChallenges,
|
M_DrawChallenges,
|
||||||
|
|
@ -38,6 +39,7 @@ menu_t MISC_StatisticsDef = {
|
||||||
MISC_ChallengesStatsDummyMenu,
|
MISC_ChallengesStatsDummyMenu,
|
||||||
280, 185,
|
280, 185,
|
||||||
0, 0,
|
0, 0,
|
||||||
|
0,
|
||||||
"EXTRAS",
|
"EXTRAS",
|
||||||
98, 0,
|
98, 0,
|
||||||
M_DrawStatistics,
|
M_DrawStatistics,
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ menu_t EXTRAS_ReplayHutDef =
|
||||||
EXTRAS_ReplayHut,
|
EXTRAS_ReplayHut,
|
||||||
30, 80,
|
30, 80,
|
||||||
0, 0,
|
0, 0,
|
||||||
|
0,
|
||||||
"REPLAY",
|
"REPLAY",
|
||||||
41, 1,
|
41, 1,
|
||||||
M_DrawReplayHut,
|
M_DrawReplayHut,
|
||||||
|
|
@ -59,6 +60,7 @@ menu_t EXTRAS_ReplayStartDef =
|
||||||
EXTRAS_ReplayStart,
|
EXTRAS_ReplayStart,
|
||||||
27, 80,
|
27, 80,
|
||||||
0, 0,
|
0, 0,
|
||||||
|
0,
|
||||||
"REPLAY",
|
"REPLAY",
|
||||||
41, 1,
|
41, 1,
|
||||||
M_DrawReplayStartMenu,
|
M_DrawReplayStartMenu,
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ menu_t MAIN_ProfilesDef = {
|
||||||
MAIN_Profiles,
|
MAIN_Profiles,
|
||||||
32, 80,
|
32, 80,
|
||||||
SKINCOLOR_ULTRAMARINE, 0,
|
SKINCOLOR_ULTRAMARINE, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawProfileSelect,
|
M_DrawProfileSelect,
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@ menu_t OPTIONS_MainDef = {
|
||||||
OPTIONS_Main,
|
OPTIONS_Main,
|
||||||
0, 0,
|
0, 0,
|
||||||
SKINCOLOR_SLATE, 0,
|
SKINCOLOR_SLATE, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawOptions,
|
M_DrawOptions,
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ menu_t OPTIONS_DataDef = {
|
||||||
OPTIONS_Data,
|
OPTIONS_Data,
|
||||||
48, 80,
|
48, 80,
|
||||||
SKINCOLOR_BLUEBERRY, 0,
|
SKINCOLOR_BLUEBERRY, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawGenericOptions,
|
M_DrawGenericOptions,
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ menu_t OPTIONS_DataAddonDef = {
|
||||||
OPTIONS_DataAddon,
|
OPTIONS_DataAddon,
|
||||||
48, 80,
|
48, 80,
|
||||||
SKINCOLOR_BLUEBERRY, 0,
|
SKINCOLOR_BLUEBERRY, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawGenericOptions,
|
M_DrawGenericOptions,
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ menu_t OPTIONS_DataDiscordDef = {
|
||||||
OPTIONS_DataDiscord,
|
OPTIONS_DataDiscord,
|
||||||
48, 80,
|
48, 80,
|
||||||
SKINCOLOR_BLUEBERRY, 0,
|
SKINCOLOR_BLUEBERRY, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawGenericOptions,
|
M_DrawGenericOptions,
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@ menu_t OPTIONS_DataEraseDef = {
|
||||||
OPTIONS_DataErase,
|
OPTIONS_DataErase,
|
||||||
48, 80,
|
48, 80,
|
||||||
SKINCOLOR_BLACK, 0,
|
SKINCOLOR_BLACK, 0,
|
||||||
|
0,
|
||||||
"SHWDN2", // Danger.
|
"SHWDN2", // Danger.
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawGenericOptions,
|
M_DrawGenericOptions,
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ menu_t OPTIONS_DataProfileEraseDef = {
|
||||||
OPTIONS_DataProfileErase,
|
OPTIONS_DataProfileErase,
|
||||||
48, 80,
|
48, 80,
|
||||||
SKINCOLOR_BLACK, 0,
|
SKINCOLOR_BLACK, 0,
|
||||||
|
0,
|
||||||
"SHWDN2", // Danger.
|
"SHWDN2", // Danger.
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawProfileErase,
|
M_DrawProfileErase,
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ menu_t OPTIONS_DataReplayDef = {
|
||||||
OPTIONS_DataReplay,
|
OPTIONS_DataReplay,
|
||||||
48, 80,
|
48, 80,
|
||||||
SKINCOLOR_BLUEBERRY, 0,
|
SKINCOLOR_BLUEBERRY, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawGenericOptions,
|
M_DrawGenericOptions,
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@ menu_t OPTIONS_DataScreenshotDef = {
|
||||||
OPTIONS_DataScreenshot,
|
OPTIONS_DataScreenshot,
|
||||||
48, 80,
|
48, 80,
|
||||||
SKINCOLOR_BLUEBERRY, 0,
|
SKINCOLOR_BLUEBERRY, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawGenericOptions,
|
M_DrawGenericOptions,
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,7 @@ menu_t OPTIONS_GameplayDef = {
|
||||||
OPTIONS_Gameplay,
|
OPTIONS_Gameplay,
|
||||||
48, 80,
|
48, 80,
|
||||||
SKINCOLOR_SCARLET, 0,
|
SKINCOLOR_SCARLET, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawGenericOptions,
|
M_DrawGenericOptions,
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,7 @@ menu_t OPTIONS_GameplayItemsDef = {
|
||||||
OPTIONS_GameplayItems,
|
OPTIONS_GameplayItems,
|
||||||
14, 40,
|
14, 40,
|
||||||
SKINCOLOR_SCARLET, 0,
|
SKINCOLOR_SCARLET, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawItemToggles,
|
M_DrawItemToggles,
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,7 @@ menu_t OPTIONS_HUDDef = {
|
||||||
OPTIONS_HUD,
|
OPTIONS_HUD,
|
||||||
48, 80,
|
48, 80,
|
||||||
SKINCOLOR_SUNSLAM, 0,
|
SKINCOLOR_SUNSLAM, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawGenericOptions,
|
M_DrawGenericOptions,
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,7 @@ menu_t OPTIONS_HUDOnlineDef = {
|
||||||
OPTIONS_HUDOnline,
|
OPTIONS_HUDOnline,
|
||||||
48, 80,
|
48, 80,
|
||||||
SKINCOLOR_SUNSLAM, 0,
|
SKINCOLOR_SUNSLAM, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawGenericOptions,
|
M_DrawGenericOptions,
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ menu_t OPTIONS_ProfilesDef = {
|
||||||
OPTIONS_Profiles,
|
OPTIONS_Profiles,
|
||||||
32, 80,
|
32, 80,
|
||||||
SKINCOLOR_ULTRAMARINE, 0,
|
SKINCOLOR_ULTRAMARINE, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawProfileSelect,
|
M_DrawProfileSelect,
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ menu_t OPTIONS_EditProfileDef = {
|
||||||
OPTIONS_EditProfile,
|
OPTIONS_EditProfile,
|
||||||
32, 80,
|
32, 80,
|
||||||
SKINCOLOR_ULTRAMARINE, 0,
|
SKINCOLOR_ULTRAMARINE, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawEditProfile,
|
M_DrawEditProfile,
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,7 @@ menu_t OPTIONS_ProfileControlsDef = {
|
||||||
OPTIONS_ProfileControls,
|
OPTIONS_ProfileControls,
|
||||||
32, 80,
|
32, 80,
|
||||||
SKINCOLOR_ULTRAMARINE, 0,
|
SKINCOLOR_ULTRAMARINE, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
3, 5,
|
3, 5,
|
||||||
M_DrawProfileControls,
|
M_DrawProfileControls,
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,7 @@ menu_t OPTIONS_ServerDef = {
|
||||||
OPTIONS_Server,
|
OPTIONS_Server,
|
||||||
48, 70, // This menu here is slightly higher because there's a lot of options...
|
48, 70, // This menu here is slightly higher because there's a lot of options...
|
||||||
SKINCOLOR_VIOLET, 0,
|
SKINCOLOR_VIOLET, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawGenericOptions,
|
M_DrawGenericOptions,
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@ menu_t OPTIONS_ServerAdvancedDef = {
|
||||||
OPTIONS_ServerAdvanced,
|
OPTIONS_ServerAdvanced,
|
||||||
48, 70, // This menu here is slightly higher because there's a lot of options...
|
48, 70, // This menu here is slightly higher because there's a lot of options...
|
||||||
SKINCOLOR_VIOLET, 0,
|
SKINCOLOR_VIOLET, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawGenericOptions,
|
M_DrawGenericOptions,
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,7 @@ menu_t OPTIONS_SoundDef = {
|
||||||
OPTIONS_Sound,
|
OPTIONS_Sound,
|
||||||
48, 80,
|
48, 80,
|
||||||
SKINCOLOR_THUNDER, 0,
|
SKINCOLOR_THUNDER, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawGenericOptions,
|
M_DrawGenericOptions,
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,7 @@ menu_t OPTIONS_VideoDef = {
|
||||||
OPTIONS_Video,
|
OPTIONS_Video,
|
||||||
32, 80,
|
32, 80,
|
||||||
SKINCOLOR_PLAGUE, 0,
|
SKINCOLOR_PLAGUE, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawGenericOptions,
|
M_DrawGenericOptions,
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,7 @@ menu_t OPTIONS_VideoOGLDef = {
|
||||||
OPTIONS_VideoOGL,
|
OPTIONS_VideoOGL,
|
||||||
32, 80,
|
32, 80,
|
||||||
SKINCOLOR_PLAGUE, 0,
|
SKINCOLOR_PLAGUE, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawGenericOptions,
|
M_DrawGenericOptions,
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ menu_t OPTIONS_VideoModesDef = {
|
||||||
OPTIONS_VideoModes,
|
OPTIONS_VideoModes,
|
||||||
48, 80,
|
48, 80,
|
||||||
SKINCOLOR_PLAGUE, 0,
|
SKINCOLOR_PLAGUE, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawVideoModes,
|
M_DrawVideoModes,
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ menu_t PLAY_CharSelectDef = {
|
||||||
PLAY_CharSelect,
|
PLAY_CharSelect,
|
||||||
0, 0,
|
0, 0,
|
||||||
0, 0,
|
0, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
0, 0,
|
0, 0,
|
||||||
M_DrawCharacterSelect,
|
M_DrawCharacterSelect,
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ menu_t PLAY_RaceDifficultyDef = {
|
||||||
PLAY_RaceDifficulty,
|
PLAY_RaceDifficulty,
|
||||||
0, 0,
|
0, 0,
|
||||||
0, 0,
|
0, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
1, 5,
|
1, 5,
|
||||||
M_DrawRaceDifficulty,
|
M_DrawRaceDifficulty,
|
||||||
|
|
|
||||||
|
|
@ -73,6 +73,7 @@ menu_t PLAY_TimeAttackDef = {
|
||||||
PLAY_TimeAttack,
|
PLAY_TimeAttack,
|
||||||
0, 0,
|
0, 0,
|
||||||
0, 0,
|
0, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawTimeAttack,
|
M_DrawTimeAttack,
|
||||||
|
|
@ -115,6 +116,7 @@ menu_t PLAY_TAReplayDef = {
|
||||||
PLAY_TAReplay,
|
PLAY_TAReplay,
|
||||||
0, 0,
|
0, 0,
|
||||||
0, 0,
|
0, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawTimeAttack,
|
M_DrawTimeAttack,
|
||||||
|
|
@ -159,6 +161,7 @@ menu_t PLAY_TAReplayGuestDef = {
|
||||||
PLAY_TAReplayGuest,
|
PLAY_TAReplayGuest,
|
||||||
0, 0,
|
0, 0,
|
||||||
0, 0,
|
0, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawTimeAttack,
|
M_DrawTimeAttack,
|
||||||
|
|
@ -198,6 +201,7 @@ menu_t PLAY_TAGhostsDef = {
|
||||||
PLAY_TAGhosts,
|
PLAY_TAGhosts,
|
||||||
0, 0,
|
0, 0,
|
||||||
0, 0,
|
0, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawTimeAttack,
|
M_DrawTimeAttack,
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ menu_t PLAY_MP_OptSelectDef = {
|
||||||
PLAY_MP_OptSelect,
|
PLAY_MP_OptSelect,
|
||||||
0, 0,
|
0, 0,
|
||||||
0, 0,
|
0, 0,
|
||||||
|
0,
|
||||||
"NETMD2",
|
"NETMD2",
|
||||||
-1, 1,
|
-1, 1,
|
||||||
M_DrawMPOptSelect,
|
M_DrawMPOptSelect,
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ menu_t PLAY_MP_HostDef = {
|
||||||
PLAY_MP_Host,
|
PLAY_MP_Host,
|
||||||
0, 0,
|
0, 0,
|
||||||
0, 0,
|
0, 0,
|
||||||
|
0,
|
||||||
"NETMD2",
|
"NETMD2",
|
||||||
-1, 1, // 1 frame transition.... This is really just because I don't want the black fade when we press esc, hehe
|
-1, 1, // 1 frame transition.... This is really just because I don't want the black fade when we press esc, hehe
|
||||||
M_DrawMPHost,
|
M_DrawMPHost,
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ menu_t PLAY_MP_JoinIPDef = {
|
||||||
PLAY_MP_JoinIP,
|
PLAY_MP_JoinIP,
|
||||||
0, 0,
|
0, 0,
|
||||||
0, 0,
|
0, 0,
|
||||||
|
0,
|
||||||
"NETMD2",
|
"NETMD2",
|
||||||
-1, 1, // 1 frame transition.... This is really just because I don't want the black fade when we press esc, hehe
|
-1, 1, // 1 frame transition.... This is really just because I don't want the black fade when we press esc, hehe
|
||||||
M_DrawMPJoinIP,
|
M_DrawMPJoinIP,
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ menu_t PLAY_MP_RoomSelectDef = {
|
||||||
PLAY_MP_RoomSelect,
|
PLAY_MP_RoomSelect,
|
||||||
0, 0,
|
0, 0,
|
||||||
0, 0,
|
0, 0,
|
||||||
|
0,
|
||||||
"NETMD2",
|
"NETMD2",
|
||||||
0, 0,
|
0, 0,
|
||||||
M_DrawMPRoomSelect,
|
M_DrawMPRoomSelect,
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ menu_t PLAY_MP_ServerBrowserDef = {
|
||||||
PLAY_MP_ServerBrowser,
|
PLAY_MP_ServerBrowser,
|
||||||
32, 36,
|
32, 36,
|
||||||
0, 0,
|
0, 0,
|
||||||
|
0,
|
||||||
"NETMD2",
|
"NETMD2",
|
||||||
0, 0,
|
0, 0,
|
||||||
M_DrawMPServerBrowser,
|
M_DrawMPServerBrowser,
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ menu_t PLAY_CupSelectDef = {
|
||||||
PLAY_CupSelect,
|
PLAY_CupSelect,
|
||||||
0, 0,
|
0, 0,
|
||||||
0, 0,
|
0, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawCupSelect,
|
M_DrawCupSelect,
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ menu_t PLAY_LevelSelectDef = {
|
||||||
PLAY_LevelSelect,
|
PLAY_LevelSelect,
|
||||||
0, 0,
|
0, 0,
|
||||||
0, 0,
|
0, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
2, 5,
|
2, 5,
|
||||||
M_DrawLevelSelect,
|
M_DrawLevelSelect,
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,7 @@ menu_t PAUSE_MainDef = {
|
||||||
PAUSE_Main,
|
PAUSE_Main,
|
||||||
0, 0,
|
0, 0,
|
||||||
0, 0,
|
0, 0,
|
||||||
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
1, 10, // For transition with some menus!
|
1, 10, // For transition with some menus!
|
||||||
M_DrawPause,
|
M_DrawPause,
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ menu_t PAUSE_PlaybackMenuDef = {
|
||||||
PAUSE_PlaybackMenu,
|
PAUSE_PlaybackMenu,
|
||||||
BASEVIDWIDTH/2 - 88, 2,
|
BASEVIDWIDTH/2 - 88, 2,
|
||||||
0, 0,
|
0, 0,
|
||||||
|
MBF_UD_LR_FLIPPED,
|
||||||
NULL,
|
NULL,
|
||||||
0, 0,
|
0, 0,
|
||||||
M_DrawPlaybackMenu,
|
M_DrawPlaybackMenu,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue