- The co-op summary screen now has a totals row at the bottom (if it fits).
- Changed WI_drawPercent() when wi_percents is false so that the total display is optional, and it formats it like Heretic's intermission, with a slash and a fixed-width right column. - Font is no longer a property of the screen object. Pass the font to DrawText and DrawChar directly instead. - Doom's intermission characters are now collected together as a font so they can be colorized. SVN r1294 (trunk)
This commit is contained in:
parent
904b59f266
commit
6e83d231fe
39 changed files with 471 additions and 556 deletions
|
|
@ -430,7 +430,7 @@ void DBaseStatusBar::ShowPlayerName ()
|
|||
EColorRange color;
|
||||
|
||||
color = (CPlayer == &players[consoleplayer]) ? CR_GOLD : CR_GREEN;
|
||||
AttachMessage (new DHUDMessageFadeOut (CPlayer->userinfo.netname,
|
||||
AttachMessage (new DHUDMessageFadeOut (SmallFont, CPlayer->userinfo.netname,
|
||||
1.5f, 0.92f, 0, 0, color, 2.f, 0.35f), MAKE_ID('P','N','A','M'));
|
||||
}
|
||||
|
||||
|
|
@ -1126,7 +1126,7 @@ void DBaseStatusBar::Draw (EHudState state)
|
|||
|
||||
if (idmypos)
|
||||
{ // Draw current coordinates
|
||||
int height = screen->Font->GetHeight();
|
||||
int height = SmallFont->GetHeight();
|
||||
char labels[3] = { 'X', 'Y', 'Z' };
|
||||
fixed_t *value;
|
||||
int i;
|
||||
|
|
@ -1163,7 +1163,7 @@ void DBaseStatusBar::Draw (EHudState state)
|
|||
for (i = 2, value = &CPlayer->mo->z; i >= 0; y -= height, --value, --i)
|
||||
{
|
||||
mysnprintf (line, countof(line), "%c: %d", labels[i], *value >> FRACBITS);
|
||||
screen->DrawText (CR_GREEN, xpos, y, line,
|
||||
screen->DrawText (SmallFont, CR_GREEN, xpos, y, line,
|
||||
DTA_KeepRatio, true,
|
||||
DTA_VirtualWidth, vwidth, DTA_VirtualHeight, vheight,
|
||||
TAG_DONE);
|
||||
|
|
@ -1185,20 +1185,20 @@ void DBaseStatusBar::Draw (EHudState state)
|
|||
EColorRange highlight = (gameinfo.gametype & GAME_DoomChex) ?
|
||||
CR_UNTRANSLATED : CR_YELLOW;
|
||||
|
||||
height = screen->Font->GetHeight () * CleanYfac;
|
||||
height = SmallFont->GetHeight () * CleanYfac;
|
||||
|
||||
// Draw timer
|
||||
y = 8;
|
||||
if (am_showtime)
|
||||
{
|
||||
mysnprintf (line, countof(line), "%02d:%02d:%02d", time/3600, (time%3600)/60, time%60); // Time
|
||||
screen->DrawText (CR_GREY, SCREENWIDTH - 80*CleanXfac, y, line, DTA_CleanNoMove, true, TAG_DONE);
|
||||
screen->DrawText (SmallFont, CR_GREY, SCREENWIDTH - 80*CleanXfac, y, line, DTA_CleanNoMove, true, TAG_DONE);
|
||||
y+=8*CleanYfac;
|
||||
}
|
||||
if (am_showtotaltime)
|
||||
{
|
||||
mysnprintf (line, countof(line), "%02d:%02d:%02d", totaltime/3600, (totaltime%3600)/60, totaltime%60); // Total time
|
||||
screen->DrawText (CR_GREY, SCREENWIDTH - 80*CleanXfac, y, line, DTA_CleanNoMove, true, TAG_DONE);
|
||||
screen->DrawText (SmallFont, CR_GREY, SCREENWIDTH - 80*CleanXfac, y, line, DTA_CleanNoMove, true, TAG_DONE);
|
||||
}
|
||||
|
||||
// Draw map name
|
||||
|
|
@ -1245,7 +1245,7 @@ void DBaseStatusBar::Draw (EHudState state)
|
|||
line[i] = TEXTCOLOR_ESCAPE;
|
||||
line[i+1] = CR_GREY + 'A';
|
||||
strcpy (&line[i+2], level.level_name);
|
||||
screen->DrawText (highlight,
|
||||
screen->DrawText (SmallFont, highlight,
|
||||
(SCREENWIDTH - SmallFont->StringWidth (line)*CleanXfac)/2, y, line,
|
||||
DTA_CleanNoMove, true, TAG_DONE);
|
||||
|
||||
|
|
@ -1258,7 +1258,7 @@ void DBaseStatusBar::Draw (EHudState state)
|
|||
{
|
||||
mysnprintf (line, countof(line), "MONSTERS:" TEXTCOLOR_GREY " %d/%d",
|
||||
level.killed_monsters, level.total_monsters);
|
||||
screen->DrawText (highlight, 8, y, line,
|
||||
screen->DrawText (SmallFont, highlight, 8, y, line,
|
||||
DTA_CleanNoMove, true, TAG_DONE);
|
||||
y += height;
|
||||
}
|
||||
|
|
@ -1268,7 +1268,7 @@ void DBaseStatusBar::Draw (EHudState state)
|
|||
{
|
||||
mysnprintf (line, countof(line), "SECRETS:" TEXTCOLOR_GREY " %d/%d",
|
||||
level.found_secrets, level.total_secrets);
|
||||
screen->DrawText (highlight, 8, y, line,
|
||||
screen->DrawText (SmallFont, highlight, 8, y, line,
|
||||
DTA_CleanNoMove, true, TAG_DONE);
|
||||
y += height;
|
||||
}
|
||||
|
|
@ -1278,7 +1278,7 @@ void DBaseStatusBar::Draw (EHudState state)
|
|||
{
|
||||
mysnprintf (line, countof(line), "ITEMS:" TEXTCOLOR_GREY " %d/%d",
|
||||
level.found_items, level.total_items);
|
||||
screen->DrawText (highlight, 8, y, line,
|
||||
screen->DrawText (SmallFont, highlight, 8, y, line,
|
||||
DTA_CleanNoMove, true, TAG_DONE);
|
||||
}
|
||||
}
|
||||
|
|
@ -1341,11 +1341,10 @@ void DBaseStatusBar::DrawLog ()
|
|||
Scale(w, SCREENWIDTH, hudwidth), Scale(height, SCREENHEIGHT, hudheight));
|
||||
x+=20;
|
||||
y+=10;
|
||||
screen->SetFont(SmallFont);
|
||||
for (int i = 0; lines[i].Width != -1; i++)
|
||||
{
|
||||
|
||||
screen->DrawText (CR_UNTRANSLATED, x, y, lines[i].Text,
|
||||
screen->DrawText (SmallFont, CR_UNTRANSLATED, x, y, lines[i].Text,
|
||||
DTA_KeepRatio, true,
|
||||
DTA_VirtualWidth, hudwidth, DTA_VirtualHeight, hudheight, TAG_DONE);
|
||||
y += SmallFont->GetHeight ()+1;
|
||||
|
|
@ -1374,7 +1373,7 @@ void DBaseStatusBar::DrawTopStuff (EHudState state)
|
|||
{
|
||||
if (demoplayback && demover != DEMOGAMEVERSION)
|
||||
{
|
||||
screen->DrawText (CR_TAN, 0, ST_Y - 40 * CleanYfac,
|
||||
screen->DrawText (SmallFont, CR_TAN, 0, ST_Y - 40 * CleanYfac,
|
||||
"Demo was recorded with a different version\n"
|
||||
"of ZDoom. Expect it to go out of sync.",
|
||||
DTA_CleanNoMove, true, TAG_DONE);
|
||||
|
|
@ -1548,7 +1547,7 @@ void DBaseStatusBar::DrawConsistancy () const
|
|||
players[1-consoleplayer].inconsistant/ticdup);
|
||||
}
|
||||
}
|
||||
screen->DrawText (CR_GREEN,
|
||||
screen->DrawText (SmallFont, CR_GREEN,
|
||||
(screen->GetWidth() - SmallFont->StringWidth (conbuff)*CleanXfac) / 2,
|
||||
0, conbuff, DTA_CleanNoMove, true, TAG_DONE);
|
||||
BorderTopRefresh = screen->GetPageCount ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue