- 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
|
|
@ -2154,10 +2154,6 @@ void DLevelScript::DoSetFont (int fontnum)
|
|||
{
|
||||
activefont = SmallFont;
|
||||
}
|
||||
if (screen != NULL)
|
||||
{
|
||||
screen->SetFont (activefont);
|
||||
}
|
||||
}
|
||||
|
||||
#define APROP_Health 0
|
||||
|
|
@ -2536,11 +2532,6 @@ int DLevelScript::RunScript ()
|
|||
int optstart = -1;
|
||||
int temp;
|
||||
|
||||
if (screen != NULL)
|
||||
{
|
||||
screen->SetFont (activefont);
|
||||
}
|
||||
|
||||
while (state == SCRIPT_Running)
|
||||
{
|
||||
if (++runaway > 500000)
|
||||
|
|
@ -4009,7 +4000,7 @@ int DLevelScript::RunScript ()
|
|||
if (pcd == PCD_ENDPRINTBOLD || screen == NULL ||
|
||||
screen->CheckLocalView (consoleplayer))
|
||||
{
|
||||
C_MidPrint (work);
|
||||
C_MidPrint (activefont, work);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
@ -4060,26 +4051,26 @@ int DLevelScript::RunScript ()
|
|||
switch (type & 0xFFFF)
|
||||
{
|
||||
default: // normal
|
||||
msg = new DHUDMessage (work, x, y, hudwidth, hudheight, color, holdTime);
|
||||
msg = new DHUDMessage (activefont, work, x, y, hudwidth, hudheight, color, holdTime);
|
||||
break;
|
||||
case 1: // fade out
|
||||
{
|
||||
float fadeTime = (optstart < sp) ? FIXED2FLOAT(Stack[optstart]) : 0.5f;
|
||||
msg = new DHUDMessageFadeOut (work, x, y, hudwidth, hudheight, color, holdTime, fadeTime);
|
||||
msg = new DHUDMessageFadeOut (activefont, work, x, y, hudwidth, hudheight, color, holdTime, fadeTime);
|
||||
}
|
||||
break;
|
||||
case 2: // type on, then fade out
|
||||
{
|
||||
float typeTime = (optstart < sp) ? FIXED2FLOAT(Stack[optstart]) : 0.05f;
|
||||
float fadeTime = (optstart < sp-1) ? FIXED2FLOAT(Stack[optstart+1]) : 0.5f;
|
||||
msg = new DHUDMessageTypeOnFadeOut (work, x, y, hudwidth, hudheight, color, typeTime, holdTime, fadeTime);
|
||||
msg = new DHUDMessageTypeOnFadeOut (activefont, work, x, y, hudwidth, hudheight, color, typeTime, holdTime, fadeTime);
|
||||
}
|
||||
break;
|
||||
case 3: // fade in, then fade out
|
||||
{
|
||||
float inTime = (optstart < sp) ? FIXED2FLOAT(Stack[optstart]) : 0.5f;
|
||||
float outTime = (optstart < sp-1) ? FIXED2FLOAT(Stack[optstart+1]) : 0.5f;
|
||||
msg = new DHUDMessageFadeInOut (work, x, y, hudwidth, hudheight, color, holdTime, inTime, outTime);
|
||||
msg = new DHUDMessageFadeInOut (activefont, work, x, y, hudwidth, hudheight, color, holdTime, inTime, outTime);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
@ -5582,10 +5573,6 @@ int DLevelScript::RunScript ()
|
|||
this->pc = pc;
|
||||
assert (sp == 0);
|
||||
}
|
||||
if (screen != NULL)
|
||||
{
|
||||
screen->SetFont (SmallFont);
|
||||
}
|
||||
return resultValue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue