Draw remaining assets, GP restriction

This commit is contained in:
wolfy852 2023-04-04 22:26:12 -05:00 committed by toaster
parent 582b76f168
commit b20c16f3fd

View file

@ -594,6 +594,15 @@ skiptallydrawer:
M_DrawMenuForeground();
#endif
// INFO SEGMENT
// Numbers are V_DrawRightAlignedThinString WITH v_6widthspace as flags
// TAILS GOT THROUGH ROUND, V_DrawTitleCardString, V_6WIDTHSPACE, T is 13x32, try (51,7) origin
// TT_RND lumps for round numbers 74x74, origin (204,2)
// resbar 1 (48,82) 5 (176, 82)
// 2 (48, 96)
//player icon 1 (55,79) 2 (55,93) 5 (183,79)
// Patches
@ -696,6 +705,15 @@ skiptallydrawer:
// Draw "GOT THROUGH ROUND"
V_DrawMappedPatch(50, 42, 0, gthro, 0);
// Draw round numbers (in GP)
if (grandprixinfo.roundnum > 0)
{
char buf[9];
sprintf(buf, "TT_RND%d", grandprixinfo.roundnum);
patch_t *roundpatch = W_CachePatchName(buf, PU_PATCH);
V_DrawMappedPatch(204, 2, 0, roundpatch, 0);
}
// TODO: Clean this bullshit up
// Draw resbars
@ -710,6 +728,8 @@ skiptallydrawer:
V_DrawMappedPatch(169, 126, 0, resbar, 0);
// Draw bottom pieces
if (grandprixinfo.gp)
{
V_DrawMappedPatch(0, 167, 0, rmbg1, greymap);
V_DrawMappedPatch(24, 167, 0, rmbg2, greymap);
V_DrawMappedPatch(48, 167, 0, rmbg3, greymap);
@ -775,6 +795,8 @@ skiptallydrawer:
{
UINT8 *colormap = R_GetTranslationColormap(*data.character[i], *data.color[i], GTC_CACHE);
V_DrawMappedPatch(15, 166, 0, faceprefix[*data.character[i]][FACE_RANK], colormap); // get an icon in there for now
V_DrawTitleCardString(51, 7, data.name[i], V_6WIDTHSPACE, false, 0, 0);
}
}
}
}