// Draws "Entering <LevelName>" void WI_drawEL () { if (gameinfo.gametype == GAME_Doom) { int y = WI_TITLEY; if (!lnames[1] && !lnamewidths[1]) return; y = WI_TITLEY; // draw "Entering" screen->DrawTexture (entering, (SCREENWIDTH - entering->GetWidth() * CleanXfac) / 2, y, DTA_CleanNoMove, true, TAG_DONE); // [RH] Changed to adjust by height of entering patch instead of title y += (5*entering->GetHeight())/4*CleanYfac; if (lnames[1]) { // draw level screen->DrawTexture (lnames[1], (SCREENWIDTH - lnames[1]->GetWidth()*CleanXfac)/2, y, DTA_CleanNoMove, true, TAG_DONE); } else { // [RH] draw a dynamic title string WI_DrawName (lnametexts[1], lnamewidths[1], y, true); } } else { screen->DrawText (CR_UNTRANSLATED, (SCREENWIDTH - SmallFont->StringWidth ("NOW ENTERING:") * CleanXfac)/2, 10, "NOW ENTERING:", DTA_CleanNoMove, true, TAG_DONE); WI_DrawName (lnametexts[1], lnamewidths[1], 10+10*CleanYfac, true); } }
// Draws "<Levelname> Finished!" void WI_drawLF () { if (gameinfo.gametype == GAME_Doom) { int y; if (!lnames[0] && !lnamewidths[0]) return; y = WI_TITLEY; if (lnames[0]) { // draw <LevelName> screen->DrawTexture (lnames[0], (320 - lnames[0]->GetWidth()) / 2, y, DTA_Clean, true, TAG_DONE); y += (5*lnames[0]->GetHeight())/4; } else { // [RH] draw a dynamic title string y += WI_DrawName (lnametexts[0], lnamewidths[0], y); } // draw "Finished!" screen->DrawTexture (finished, (320 - finished->GetWidth()) / 2, y, DTA_Clean, true, TAG_DONE); } else { WI_DrawName (lnametexts[0], lnamewidths[0], 3); screen->DrawText (CR_UNTRANSLATED, 160 - SmallFont->StringWidth ("FINISHED")/2, 25, "FINISHED", DTA_Clean, true, TAG_DONE); } }
// Draws "Entering <LevelName>" void WI_drawEL (void) { int y = WI_TITLEY; if (!lnames[1] && !lnamewidths[1]) return; y = WI_TITLEY; // draw "Entering" FB->DrawPatchClean (entering, (320 - entering->width())/2, y); // [RH] Changed to adjust by height of entering patch instead of title y += (5*entering->height())/4; if (lnames[1]) { // draw level FB->DrawPatchClean (lnames[1], (320 - lnames[1]->width())/2, y); } else { // [RH] draw a dynamic title string WI_DrawName (lnametexts[1], 160 - lnamewidths[1] / 2, y); } }
//Draws "<Levelname> Finished!" void WI_drawLF (void) { int y; if (!lnames[0] && !lnamewidths[0]) return; y = WI_TITLEY; if (lnames[0]) { // draw <LevelName> FB->DrawPatchClean (lnames[0], (320 - lnames[0]->width())/2, y); y += (5*lnames[0]->height())/4; } else { // [RH] draw a dynamic title string y += WI_DrawName (lnametexts[0], 160 - lnamewidths[0] / 2, y); } // draw "Finished!" //if (!multiplayer || sv_maxplayers <= 1) FB->DrawPatchClean (finished, (320 - finished->width())/2, y); // (Removed) Dan - Causes GUI Issues |FIX-ME| }