/* ================== Sbar_IntermissionNumber ================== */ void Sbar_IntermissionNumber(int x, int y, int num, int digits, int color) { char str[12]; char *ptr; int l, frame; l = Sbar_itoa(num, str); ptr = str; if (l > digits) ptr += (l - digits); if (l < digits) x += (digits - l) * 24; while (*ptr) { if (*ptr == '-') frame = STAT_MINUS; else frame = *ptr - '0'; Draw_TransPic(x, y, sb_nums[color][frame]); x += 24; ptr++; } }
/* ================== Sbar_FinaleOverlay ================== */ void Sbar_FinaleOverlay(void) { const qpic_t *pic; scr_copyeverything = 1; pic = Draw_CachePic("gfx/finale.lmp"); Draw_TransPic((vid.width - pic->width) / 2, 16, pic); }
/* ============== SCR_DrawLoading ============== */ void SCR_DrawLoading (void) { int size, count, offset; qpic_t *pic; if (!scr_drawloading && loading_stage == 0) return; pic = Draw_CachePic ("gfx/menu/loading.lmp"); offset = (vid.width - pic->width)/2; Draw_TransPic (offset , 0, pic); if (loading_stage == 0) return; if (total_loading_size) size = current_loading_size * 106 / total_loading_size; else size = 0; if (loading_stage == 1) count = size; else count = 106; Draw_Fill (offset+42, 87, count, 1, 136); Draw_Fill (offset+42, 87+1, count, 4, 138); Draw_Fill (offset+42, 87+5, count, 1, 136); if (loading_stage == 2) count = size; else count = 0; Draw_Fill (offset+42, 97, count, 1, 168); Draw_Fill (offset+42, 97+1, count, 4, 170); Draw_Fill (offset+42, 97+5, count, 1, 168); }
/* ============= Sbar_DrawTransPic ============= */ void Sbar_DrawTransPic(int x, int y, const qpic_t *pic) { Draw_TransPic(x /*+ ((vid.width - 320)>>1) */ , y + (vid.height - SBAR_HEIGHT), pic); }