mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-15 04:00:53 +00:00
- fixed Exhumed credits display.
This commit is contained in:
parent
40730d26b8
commit
fb5e8e72ab
1 changed files with 11 additions and 11 deletions
|
@ -747,6 +747,7 @@ class ExCredits : ScreenJob
|
||||||
if (ticks >= pagetime || skiprequest)
|
if (ticks >= pagetime || skiprequest)
|
||||||
{
|
{
|
||||||
page++;
|
page++;
|
||||||
|
pagelines.Clear();
|
||||||
if (page < credits.Size())
|
if (page < credits.Size())
|
||||||
credits[page].Split(pagelines, "\n");
|
credits[page].Split(pagelines, "\n");
|
||||||
else
|
else
|
||||||
|
@ -756,9 +757,8 @@ class ExCredits : ScreenJob
|
||||||
jobstate = finished;
|
jobstate = finished;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
pagelines.Clear();
|
|
||||||
}
|
}
|
||||||
pagetime = ticks + 60; //
|
pagetime = ticks + 90; //
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -766,8 +766,6 @@ class ExCredits : ScreenJob
|
||||||
{
|
{
|
||||||
int y = 100 - ((10 * (pagelines.Size() - 1)) / 2);
|
int y = 100 - ((10 * (pagelines.Size() - 1)) / 2);
|
||||||
|
|
||||||
for (int i = 0; i < pagelines.Size(); i++)
|
|
||||||
{
|
|
||||||
int ptime = clamp((pagetime - ticks - smoothratio) * 1000 / GameTicRate, 0, 2000); // in milliseconds
|
int ptime = clamp((pagetime - ticks - smoothratio) * 1000 / GameTicRate, 0, 2000); // in milliseconds
|
||||||
int light;
|
int light;
|
||||||
|
|
||||||
|
@ -775,8 +773,10 @@ class ExCredits : ScreenJob
|
||||||
else if (ptime > 2000 - 255) light = 2000 - ptime;
|
else if (ptime > 2000 - 255) light = 2000 - ptime;
|
||||||
else light = 255;
|
else light = 255;
|
||||||
|
|
||||||
let colr = Color(light, light, light);
|
let colr = Color(255, light, light, light);
|
||||||
|
|
||||||
|
for (int i = 0; i < pagelines.Size(); i++)
|
||||||
|
{
|
||||||
int nStringWidth = SmallFont.StringWidth(pagelines[i]);
|
int nStringWidth = SmallFont.StringWidth(pagelines[i]);
|
||||||
Screen.DrawText(SmallFont, Font.CR_UNTRANSLATED, 160 - nStringWidth / 2, y, pagelines[i], DTA_FullscreenScale, FSMode_Fit320x200, DTA_Color, colr);
|
Screen.DrawText(SmallFont, Font.CR_UNTRANSLATED, 160 - nStringWidth / 2, y, pagelines[i], DTA_FullscreenScale, FSMode_Fit320x200, DTA_Color, colr);
|
||||||
y += 10;
|
y += 10;
|
||||||
|
|
Loading…
Reference in a new issue