mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-01 17:52:13 +00:00
- fixed palette of Exhumed's game over screen.
This commit is contained in:
parent
127440f03c
commit
df86a11d23
3 changed files with 8 additions and 5 deletions
|
@ -83,7 +83,7 @@ int DImageScreen::Frame(uint64_t clock, bool skiprequest)
|
||||||
}
|
}
|
||||||
int span = int(clock / 1'000'000);
|
int span = int(clock / 1'000'000);
|
||||||
twod->ClearScreen();
|
twod->ClearScreen();
|
||||||
DrawTexture(twod, tex, 0, 0, DTA_FullscreenEx, FSMode_ScaleToFit43, DTA_LegacyRenderStyle, STYLE_Normal, TAG_DONE);
|
DrawTexture(twod, tex, 0, 0, DTA_FullscreenEx, FSMode_ScaleToFit43, DTA_LegacyRenderStyle, STYLE_Normal, DTA_TranslationIndex, trans, TAG_DONE);
|
||||||
// Only end after having faded out.
|
// Only end after having faded out.
|
||||||
return skiprequest ? -1 : span > waittime? 0 : 1;
|
return skiprequest ? -1 : span > waittime? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,18 +73,21 @@ class DImageScreen : public DScreenJob
|
||||||
DECLARE_CLASS(DImageScreen, DScreenJob)
|
DECLARE_CLASS(DImageScreen, DScreenJob)
|
||||||
|
|
||||||
int tilenum = -1;
|
int tilenum = -1;
|
||||||
|
int trans;
|
||||||
int waittime; // in ms.
|
int waittime; // in ms.
|
||||||
FGameTexture* tex = nullptr;
|
FGameTexture* tex = nullptr;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DImageScreen(FGameTexture* tile, int fade = DScreenJob::fadein | DScreenJob::fadeout, int wait = 3000) : DScreenJob(fade), waittime(wait)
|
DImageScreen(FGameTexture* tile, int fade = DScreenJob::fadein | DScreenJob::fadeout, int wait = 3000, int translation = 0) : DScreenJob(fade), waittime(wait)
|
||||||
{
|
{
|
||||||
tex = tile;
|
tex = tile;
|
||||||
|
trans = translation;
|
||||||
}
|
}
|
||||||
|
|
||||||
DImageScreen(int tile, int fade = DScreenJob::fadein | DScreenJob::fadeout, int wait = 3000) : DScreenJob(fade), waittime(wait)
|
DImageScreen(int tile, int fade = DScreenJob::fadein | DScreenJob::fadeout, int wait = 3000, int translation = 0) : DScreenJob(fade), waittime(wait)
|
||||||
{
|
{
|
||||||
tilenum = tile;
|
tilenum = tile;
|
||||||
|
trans = translation;
|
||||||
}
|
}
|
||||||
|
|
||||||
int Frame(uint64_t clock, bool skiprequest) override;
|
int Frame(uint64_t clock, bool skiprequest) override;
|
||||||
|
|
|
@ -1314,9 +1314,9 @@ void DoGameOverScene(bool finallevel)
|
||||||
{
|
{
|
||||||
StopCD();
|
StopCD();
|
||||||
PlayGameOverSound();
|
PlayGameOverSound();
|
||||||
job = { Create<DImageScreen>(tileGetTexture(kTile3591), DScreenJob::fadein | DScreenJob::fadeout, 0x7fffffff) };
|
job = { Create<DImageScreen>(tileGetTexture(kTile3591), DScreenJob::fadein | DScreenJob::fadeout, 0x7fffffff, TRANSLATION(Translation_BasePalettes, 16)) };
|
||||||
}
|
}
|
||||||
RunScreenJob(&job, 1, [](bool) { gameaction = ga_startup; });
|
RunScreenJob(&job, 1, [](bool) { gameaction = ga_mainmenu; });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue