Menus/Character Select: highlight selected Profile

Color is subject to change. I used Sapphire, but it
doesn't have any green in it. However, I used it because
it produces good saturation.
This commit is contained in:
James R 2023-12-27 11:42:47 -08:00 committed by toaster
parent 30e94d81fe
commit 68a73a4bf0

View file

@ -1986,7 +1986,28 @@ static void M_DrawCharSelectPreview(UINT8 num)
if (i != p->profilen || ((setup_animcounter/10) & 1))
{
V_DrawCenteredFileString(px+26, py, notSelectable, pr->version ? pr->profilename : "NEW");
const char *txt = pr->version ? pr->profilename : "NEW";
fixed_t w = V_StringScaledWidth(
FRACUNIT,
FRACUNIT,
FRACUNIT,
notSelectable,
FILE_FONT,
txt
);
V_DrawStringScaled(
((px+26) * FRACUNIT) - (w/2),
py * FRACUNIT,
FRACUNIT,
FRACUNIT,
FRACUNIT,
notSelectable,
i == p->profilen ? R_GetTranslationColormap(TC_RAINBOW, SKINCOLOR_SAPPHIRE, GTC_CACHE) : NULL,
FILE_FONT,
txt
);
}
}
py += 12;