Add skincolor Profile set Qol too

This commit is contained in:
toaster 2025-08-13 22:22:40 +01:00
parent 9074eaf3c8
commit 7b6b26fe30
2 changed files with 42 additions and 0 deletions

View file

@ -7264,6 +7264,23 @@ static void M_DrawChallengePreview(INT32 x, INT32 y)
// Draw reference for character bathed in coloured slime
M_DrawCharacterSprite(x, y, skin, SPR2_STIN, 7, 0, 0, colormap);
if (setup_numplayers <= 1 && cv_lastprofile[0].value != PROFILE_GUEST)
{
profile_t *pr = PR_GetProfile(cv_lastprofile[0].value);
if (pr)
{
K_DrawGameControl(
8, BASEVIDHEIGHT-16, 0,
(pr->color != colorid)
? "<a> <sky>Set on Profile"
: "<a_pressed> <gray>Set on Profile",
0, TINY_FONT, 0
);
}
}
break;
}
case SECRET_CUP:

View file

@ -1211,6 +1211,31 @@ boolean M_ChallengesInputs(INT32 ch)
}
break;
}
case SECRET_COLOR:
{
if (setup_numplayers <= 1 && cv_lastprofile[0].value != PROFILE_GUEST && M_MenuConfirmPressed(pid))
{
INT32 colorid = M_UnlockableColorNum(ref);
if (colorid != SKINCOLOR_NONE)
{
profile_t *pr = PR_GetProfile(cv_lastprofile[0].value);
if (pr && pr->color != colorid)
{
pr->color = colorid;
CV_SetValue(&cv_playercolor[0], colorid);
if (setup_numplayers)
{
G_SetPlayerGamepadIndicatorToPlayerColor(0);
}
S_StartSound(NULL, sfx_s3k63);
M_SetMenuDelay(pid);
}
}
}
break;
}
case SECRET_ALTMUSIC:
{
UINT8 trymus = 0, musicid = MAXMUSNAMES;