mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-21 17:41:48 +00:00
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:
parent
30e94d81fe
commit
68a73a4bf0
1 changed files with 22 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue