static void WI_drawEL(void) { int y = WI_TITLEY; char lname[9]; WI_levelNameLump(wbs->epsd, wbs->next, lname); V_DrawNamePatch((320 - V_NamePatchWidth(entering)) / 2, y, FB, entering, CR_DEFAULT, VPT_STRETCH); y += (5 * V_NamePatchHeight(lname)) / 4; V_DrawNamePatch((320 - V_NamePatchWidth(lname)) / 2, y, FB, lname, CR_DEFAULT, VPT_STRETCH); }
static void WI_drawLF(void) { int y = WI_TITLEY; char lname[9]; WI_levelNameLump(wbs->epsd, wbs->last, lname); V_DrawNamePatch((320 - V_NamePatchWidth(lname)) / 2, y, FB, lname, CR_DEFAULT, VPT_STRETCH); y += (5 * V_NamePatchHeight(lname)) / 4; V_DrawNamePatch((320 - V_NamePatchWidth(finished)) / 2, y, FB, finished, CR_DEFAULT, VPT_STRETCH); }
// ==================================================================== // WI_drawLF // Purpose: Draw the "Finished" level name before showing stats // Args: none // Returns: void // void WI_drawLF(void) { int y = WI_TITLEY; char lname[9]; // draw <LevelName> /* cph - get the graphic lump name and use it */ WI_levelNameLump(wbs->epsd, wbs->last, lname); // CPhipps - patch drawing updated V_DrawNamePatch((320 - V_NamePatchWidth(lname))/2, y, FB, lname, CR_DEFAULT, VPT_STRETCH); // draw "Finished!" y += (5*V_NamePatchHeight(lname))/4; // CPhipps - patch drawing updated V_DrawNamePatch((320 - V_NamePatchWidth(finished))/2, y, FB, finished, CR_DEFAULT, VPT_STRETCH); }
// ==================================================================== // WI_drawEL // Purpose: Draw introductory "Entering" and level name // Args: none // Returns: void // void WI_drawEL(void) { int y = WI_TITLEY; char lname[9]; /* cph - get the graphic lump name */ WI_levelNameLump(wbs->epsd, wbs->next, lname); // draw "Entering" // CPhipps - patch drawing updated V_DrawNamePatch((320 - V_NamePatchWidth(entering))/2, y, FB, entering, CR_DEFAULT, VPT_STRETCH); // draw level y += (5*V_NamePatchHeight(lname))/4; // CPhipps - patch drawing updated V_DrawNamePatch((320 - V_NamePatchWidth(lname))/2, y, FB, lname, CR_DEFAULT, VPT_STRETCH); }
// ==================================================================== // WI_drawNetgameStats // Purpose: Put the coop stats on the screen // Args: none // Returns: void // // proff/nicolas 09/20/98 -- changed for hi-res // CPhipps - patch drawing updated void WI_drawNetgameStats(void) { int i; int x; int y; int pwidth = V_NamePatchWidth(percent); int fwidth = V_NamePatchWidth(facebackp); WI_slamBackground(); // draw animated background WI_drawAnimatedBack(); WI_drawLF(); // draw stat titles (top line) V_DrawNamePatch(NG_STATSX+NG_SPACINGX-V_NamePatchWidth(kills), NG_STATSY, FB, kills, CR_DEFAULT, VPT_STRETCH); V_DrawNamePatch(NG_STATSX+2*NG_SPACINGX-V_NamePatchWidth(items), NG_STATSY, FB, items, CR_DEFAULT, VPT_STRETCH); V_DrawNamePatch(NG_STATSX+3*NG_SPACINGX-V_NamePatchWidth(secret), NG_STATSY, FB, secret, CR_DEFAULT, VPT_STRETCH); if (dofrags) V_DrawNamePatch(NG_STATSX+4*NG_SPACINGX-V_NamePatchWidth(frags), NG_STATSY, FB, frags, CR_DEFAULT, VPT_STRETCH); // draw stats y = NG_STATSY + V_NamePatchHeight(kills); for (i=0 ; i<MAXPLAYERS ; i++) { //int trans = playernumtotrans[i]; if (!playeringame[i]) continue; x = NG_STATSX; V_DrawNamePatch(x-fwidth, y, FB, facebackp, i ? CR_LIMIT+i : CR_DEFAULT, VPT_STRETCH | (i ? VPT_TRANS : 0)); if (i == me) V_DrawNamePatch(x-fwidth, y, FB, star, CR_DEFAULT, VPT_STRETCH); x += NG_SPACINGX; if (cnt_kills) WI_drawPercent(x-pwidth, y+10, cnt_kills[i]); x += NG_SPACINGX; if (cnt_items) WI_drawPercent(x-pwidth, y+10, cnt_items[i]); x += NG_SPACINGX; if (cnt_secret) WI_drawPercent(x-pwidth, y+10, cnt_secret[i]); x += NG_SPACINGX; if (dofrags && cnt_frags) WI_drawNum(x, y+10, cnt_frags[i], -1); y += WI_SPACINGY; } if (y <= SP_TIMEY) // cph - show times in coop on the entering screen WI_drawTimeStats(plrs[me].stime / TICRATE, wbs->totaltimes / TICRATE, wbs->partime / TICRATE); }