mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-28 05:11:34 +00:00
Make join requests options on pause menu selectable even if you're already in the menu
This commit is contained in:
parent
805fb01df9
commit
89ba08a376
3 changed files with 18 additions and 3 deletions
|
@ -276,6 +276,7 @@ static void DRPC_HandleJoinRequest(const DiscordUser *requestUser)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
discordRequestList = newRequest;
|
discordRequestList = newRequest;
|
||||||
|
M_RefreshPauseMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Made it to the end, request was valid, so play the request sound :)
|
// Made it to the end, request was valid, so play the request sound :)
|
||||||
|
|
18
src/m_menu.c
18
src/m_menu.c
|
@ -3348,10 +3348,8 @@ void M_StartControlPanel(void)
|
||||||
MPauseMenu[i].alphaKey -= 8;
|
MPauseMenu[i].alphaKey -= 8;
|
||||||
|
|
||||||
MPauseMenu[mpause_discordrequests].alphaKey = MPauseMenu[i].alphaKey;
|
MPauseMenu[mpause_discordrequests].alphaKey = MPauseMenu[i].alphaKey;
|
||||||
MPauseMenu[mpause_discordrequests].status = IT_GRAYEDOUT;
|
|
||||||
|
|
||||||
if (discordRequestList != NULL)
|
M_RefreshPauseMenu();
|
||||||
MPauseMenu[mpause_discordrequests].status = IT_STRING | IT_SUBMENU;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -6370,6 +6368,20 @@ static void M_SelectableClearMenus(INT32 choice)
|
||||||
M_ClearMenus(true);
|
M_ClearMenus(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void M_RefreshPauseMenu(void)
|
||||||
|
{
|
||||||
|
#ifdef HAVE_DISCORDRPC
|
||||||
|
if (discordRequestList != NULL)
|
||||||
|
{
|
||||||
|
MPauseMenu[mpause_discordrequests].status = IT_STRING | IT_SUBMENU;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MPauseMenu[mpause_discordrequests].status = IT_GRAYEDOUT;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
// ======
|
// ======
|
||||||
// CHEATS
|
// CHEATS
|
||||||
// ======
|
// ======
|
||||||
|
|
|
@ -267,6 +267,8 @@ void Addons_option_Onchange(void);
|
||||||
void M_ReplayHut(INT32 choice);
|
void M_ReplayHut(INT32 choice);
|
||||||
void M_SetPlaybackMenuPointer(void);
|
void M_SetPlaybackMenuPointer(void);
|
||||||
|
|
||||||
|
void M_RefreshPauseMenu(void);
|
||||||
|
|
||||||
INT32 HU_GetHighlightColor(void);
|
INT32 HU_GetHighlightColor(void);
|
||||||
|
|
||||||
// These defines make it a little easier to make menus
|
// These defines make it a little easier to make menus
|
||||||
|
|
Loading…
Reference in a new issue