// // M_SaveGame & Cie. // [ML] 7 Sept 08: Bringing game saving/loading in from // zdoom 1.22 source, see MAINTAINERS // void M_DrawSave(void) { int i; if (gameinfo.gametype & GAME_Heretic) { LoadDef.y = 30; LoadDef.x = 70; screen->DrawTextLargeClean(0,160 - V_LargeStringWidth("SAVE GAME") / 2, 10,"SAVE GAME"); for (i = 0; i < load_end; i++) { M_DrawSaveLoadSlot (LoadDef.x, LoadDef.y+HTCLINEHEIGHT*i); screen->DrawTextCleanMove (CR_RED, LoadDef.x+4, LoadDef.y+HTCLINEHEIGHT*i+5, savegamestrings[i]); } } else { screen->DrawPatchClean ((patch_t *)W_CacheLumpName ("M_SAVEG",PU_CACHE), 72, 28); for (i = 0; i < load_end; i++) { M_DrawSaveLoadBorder (LoadDef.x, LoadDef.y+LINEHEIGHT*i, 24); screen->DrawTextCleanMove (CR_RED, LoadDef.x, LoadDef.y+LINEHEIGHT*i, savegamestrings[i]); } } if (genStringEnter) { i = V_StringWidth(savegamestrings[saveSlot]); screen->DrawTextCleanMove (CR_RED, LoadDef.x + i, LoadDef.y+LINEHEIGHT*saveSlot, "_"); } }
// // M_LoadGame & Cie. // void M_DrawLoad (void) { int i; screen->DrawPatchClean ((patch_t *)W_CacheLumpName ("M_LOADG",PU_CACHE), 72, 28); for (i = 0; i < load_end; i++) { M_DrawSaveLoadBorder (LoadDef.x, LoadDef.y+LINEHEIGHT*i, 24); screen->DrawTextCleanMove (CR_RED, LoadDef.x, LoadDef.y+LINEHEIGHT*i, savegamestrings[i]); } }
// // M_LoadGame & Cie. // void M_DrawLoad(void) { int i; V_DrawPatchDirect (72,28,0,(patch_t*)W_CacheLumpName("M_LOADG",PU_CACHE_SHARED)); for (i = 0;i < load_end; i++) { M_DrawSaveLoadBorder(::g->LoadDef.x,::g->LoadDef.y+LINEHEIGHT*i); M_WriteText(::g->LoadDef.x,::g->LoadDef.y+LINEHEIGHT*i,::g->savegamestrings[i]); } }
// // M_SaveGame & Cie. // [ML] 7 Sept 08: Bringing game saving/loading in from // zdoom 1.22 source, see MAINTAINERS // void M_DrawSave(void) { int i; screen->DrawPatchClean ((patch_t *)W_CacheLumpName("M_SAVEG",PU_CACHE), 72, 28); for (i = 0; i < load_end; i++) { M_DrawSaveLoadBorder(LoadDef.x,LoadDef.y+LINEHEIGHT*i,24); screen->DrawTextCleanMove (CR_RED, LoadDef.x, LoadDef.y+LINEHEIGHT*i, savegamestrings[i]); } if (genStringEnter) { i = V_StringWidth(savegamestrings[saveSlot]); screen->DrawTextCleanMove (CR_RED, LoadDef.x + i, LoadDef.y+LINEHEIGHT*saveSlot, "_"); } }
// // M_SaveGame & Cie. // void M_DrawSave(void) { int i; V_DrawPatchDirect (72,28,0,(patch_t*)W_CacheLumpName("M_SAVEG",PU_CACHE_SHARED)); for (i = 0;i < load_end; i++) { M_DrawSaveLoadBorder(::g->LoadDef.x,::g->LoadDef.y+LINEHEIGHT*i); M_WriteText(::g->LoadDef.x,::g->LoadDef.y+LINEHEIGHT*i,::g->savegamestrings[i]); } if (::g->saveStringEnter) { i = M_StringWidth(::g->savegamestrings[::g->saveSlot]); M_WriteText(::g->LoadDef.x + i,::g->LoadDef.y+LINEHEIGHT*::g->saveSlot,"_"); } }