mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Add skincolor Profile set Qol too
This commit is contained in:
parent
9074eaf3c8
commit
7b6b26fe30
2 changed files with 42 additions and 0 deletions
|
|
@ -7264,6 +7264,23 @@ static void M_DrawChallengePreview(INT32 x, INT32 y)
|
||||||
|
|
||||||
// Draw reference for character bathed in coloured slime
|
// Draw reference for character bathed in coloured slime
|
||||||
M_DrawCharacterSprite(x, y, skin, SPR2_STIN, 7, 0, 0, colormap);
|
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;
|
break;
|
||||||
}
|
}
|
||||||
case SECRET_CUP:
|
case SECRET_CUP:
|
||||||
|
|
|
||||||
|
|
@ -1211,6 +1211,31 @@ boolean M_ChallengesInputs(INT32 ch)
|
||||||
}
|
}
|
||||||
break;
|
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:
|
case SECRET_ALTMUSIC:
|
||||||
{
|
{
|
||||||
UINT8 trymus = 0, musicid = MAXMUSNAMES;
|
UINT8 trymus = 0, musicid = MAXMUSNAMES;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue