Add emblem counter to the Extras checklist.

This commit is contained in:
sphere 2021-05-09 16:47:52 +02:00 committed by spherallic
parent 9e272fe0b9
commit 82a8a0f455

View file

@ -7187,13 +7187,20 @@ static void M_HandleChecklist(INT32 choice)
static void M_DrawChecklist(void) static void M_DrawChecklist(void)
{ {
INT32 i = check_on, j = 0, y = currentMenu->y; INT32 i = check_on, j = 0, y = currentMenu->y, emblems = numemblems+numextraemblems;
UINT32 condnum, previd, maxcond; UINT32 condnum, previd, maxcond;
condition_t *cond; condition_t *cond;
// draw title (or big pic) // draw title (or big pic)
M_DrawMenuTitle(); M_DrawMenuTitle();
// draw emblem counter
if (emblems > 0)
{
V_DrawString(42, 20, (emblems == M_CountEmblems()) ? V_GREENMAP : 0, va("%d/%d", M_CountEmblems(), emblems));
V_DrawSmallScaledPatch(28, 20, 0, W_CachePatchName("EMBLICON", PU_PATCH));
}
if (check_on) if (check_on)
V_DrawString(10, y-(skullAnimCounter/5), V_YELLOWMAP, "\x1A"); V_DrawString(10, y-(skullAnimCounter/5), V_YELLOWMAP, "\x1A");