- It is now possible to replace the game's SmallFont with a single lump font

called SMALLFNT.
- Reduced the width of the second column in wi_percents false mode from 3 to
  2 characters.
- Added a WISLASH graphic for Doom's intermission screen when wi_percents is
  false.


SVN r1298 (trunk)
This commit is contained in:
Randy Heit 2008-11-30 01:37:11 +00:00
parent 6b9129105a
commit 927c9532bf
6 changed files with 30 additions and 13 deletions

View File

@ -1,10 +1,18 @@
November 29, 2008
- It is now possible to replace the game's SmallFont with a single lump font
called SMALLFNT.
- Reduced the width of the second column in wi_percents false mode from 3 to
2 characters.
- Added a WISLASH graphic for Doom's intermission screen when wi_percents is
false.
November 29, 2008 (sbarinfo update) November 29, 2008 (sbarinfo update)
- Added: inventorybarnotvisible to check to see if the inventory bar is up. - Added: inventorybarnotvisible to check to see if the inventory bar is up.
- Added the following flags to drawselectedinventory center, centerbottom, and - Added the following flags to drawselectedinventory center, centerbottom, and
drawshadow. drawshadow.
- Fixed: The translucent flag for drawinventorybar should only have affected - Fixed: The translucent flag for drawinventorybar should only have affected
the artibox image. the artibox image.
November 27, 2008 November 27, 2008
- Removed S_MarkSoundChannels(), as it caused all non-actor sounds to - Removed S_MarkSoundChannels(), as it caused all non-actor sounds to
have their origins zeroed during collections. have their origins zeroed during collections.

View File

@ -280,9 +280,9 @@ static void HU_DrawTimeRemaining (int y)
seconds = timeleft / TICRATE; seconds = timeleft / TICRATE;
if (hours) if (hours)
mysnprintf (str, countof(str), "Level ends in %02d:%02d:%02d", hours, minutes, seconds); mysnprintf (str, countof(str), "Level ends in %d:%02d:%02d", hours, minutes, seconds);
else else
mysnprintf (str, countof(str), "Level ends in %02d:%02d", minutes, seconds); mysnprintf (str, countof(str), "Level ends in %d:%02d", minutes, seconds);
screen->DrawText (SmallFont, CR_GREY, SCREENWIDTH/2 - SmallFont->StringWidth (str)/2*CleanXfac, screen->DrawText (SmallFont, CR_GREY, SCREENWIDTH/2 - SmallFont->StringWidth (str)/2*CleanXfac,
y, str, DTA_CleanNoMove, true, TAG_DONE); y, str, DTA_CleanNoMove, true, TAG_DONE);

View File

@ -1527,7 +1527,7 @@ FSpecialFont::FSpecialFont (const char *name, int first, int count, int *lumplis
int TotalColors; int TotalColors;
FTexture *pic; FTexture *pic;
Name=copystring(name); Name = copystring(name);
Chars = new CharData[count]; Chars = new CharData[count];
charlumps = new int[count]; charlumps = new int[count];
PatchRemap = new BYTE[256]; PatchRemap = new BYTE[256];
@ -1549,7 +1549,7 @@ FSpecialFont::FSpecialFont (const char *name, int first, int count, int *lumplis
Wads.GetLumpName(buffer, lump); Wads.GetLumpName(buffer, lump);
if (buffer[0] != 0) if (buffer[0] != 0)
{ {
buffer[8]=0; buffer[8] = 0;
pic = TexMan[buffer]; pic = TexMan[buffer];
} }
else else
@ -1725,8 +1725,11 @@ void V_InitCustomFonts()
if (format == 1) goto wrong; if (format == 1) goto wrong;
int *p = &lumplist[*(unsigned char*)sc.String]; int *p = &lumplist[*(unsigned char*)sc.String];
sc.MustGetString(); sc.MustGetString();
*p = Wads.CheckNumForFullName (sc.String, true); if (-1 == (*p = Wads.CheckNumForFullName (sc.String, true)))
format=2; {
*p = Wads.CheckNumForFullName (sc.String, true, ns_graphics);
}
format = 2;
} }
} }
if (format == 1) if (format == 1)
@ -2102,7 +2105,13 @@ void V_InitFonts()
// load the heads-up font // load the heads-up font
if (!(SmallFont = FFont::FindFont("SmallFont"))) if (!(SmallFont = FFont::FindFont("SmallFont")))
{ {
if (Wads.CheckNumForName ("FONTA_S") >= 0) int i;
if ((i = Wads.CheckNumForName("SMALLFNT")) >= 0)
{
SmallFont = new FSingleLumpFont("SmallFont", i);
}
else if (Wads.CheckNumForName ("FONTA_S") >= 0)
{ {
SmallFont = new FFont ("SmallFont", "FONTA%02u", HU_FONTSTART, HU_FONTSIZE, 1); SmallFont = new FFont ("SmallFont", "FONTA%02u", HU_FONTSTART, HU_FONTSIZE, 1);
} }
@ -2111,7 +2120,7 @@ void V_InitFonts()
SmallFont = new FFont ("SmallFont", "STCFN%.3d", HU_FONTSTART, HU_FONTSIZE, HU_FONTSTART); SmallFont = new FFont ("SmallFont", "STCFN%.3d", HU_FONTSTART, HU_FONTSIZE, HU_FONTSTART);
} }
} }
if (!(SmallFont2 = FFont::FindFont("SmallFont2"))) if (!(SmallFont2 = FFont::FindFont("SmallFont2"))) // Only used by Strife
{ {
if (Wads.CheckNumForName ("STBFN033", ns_graphics) >= 0) if (Wads.CheckNumForName ("STBFN033", ns_graphics) >= 0)
{ {

View File

@ -937,10 +937,9 @@ void WI_drawPercent (int x, int y, int p, int b, bool show_total=true)
x += IntermissionFont->GetCharWidth('%'); x += IntermissionFont->GetCharWidth('%');
if (show_total) if (show_total)
{ {
int y2 = y + IntermissionFont->GetHeight() - BigFont->GetHeight(); x = WI_drawNum(x, y, b, 2, false);
x = WI_drawNum(x, y, b, 3, false); x -= IntermissionFont->GetCharWidth('/');
x -= BigFont->GetCharWidth('/'); screen->DrawText (IntermissionFont, CR_UNTRANSLATED, x, y, "/",
screen->DrawText (BigFont, gameinfo.gametype & GAME_Doom ? CR_RED : CR_UNTRANSLATED, x, y2, "/",
DTA_Clean, true, TAG_DONE); DTA_Clean, true, TAG_DONE);
} }
WI_drawNum (x, y, p, -1, false); WI_drawNum (x, y, p, -1, false);

View File

@ -64,4 +64,5 @@ IntermissionFont_Doom
8 WINUM8 8 WINUM8
9 WINUM9 9 WINUM9
- WIMINUS - WIMINUS
/ WISLASH
} }

Binary file not shown.