mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-14 00:21:38 +00:00
- define console background for Blood.
This commit is contained in:
parent
94892cc1f8
commit
7dda316391
3 changed files with 19 additions and 2 deletions
|
@ -426,6 +426,7 @@ void GameInterface::app_init()
|
||||||
levelLoadDefaults();
|
levelLoadDefaults();
|
||||||
LoadDefinitions();
|
LoadDefinitions();
|
||||||
SetTileNames();
|
SetTileNames();
|
||||||
|
C_InitConback(TexMan.CheckForTexture("BACKTILE", ETextureType::Any), true, 0.25);
|
||||||
|
|
||||||
TileFiles.SetBackup();
|
TileFiles.SetBackup();
|
||||||
powerupInit();
|
powerupInit();
|
||||||
|
|
|
@ -1,2 +1,17 @@
|
||||||
// names for everything that gets accessed by scripts.
|
// names for everything that gets accessed by scripts.
|
||||||
x(MENUBAR, 2038)
|
x(MENUBAR, 2038)
|
||||||
|
x(BackTile, 253)
|
||||||
|
|
||||||
|
x(CrosshairTile, 2319)
|
||||||
|
x(LoadScreen, 2049)
|
||||||
|
x(LoadScreenWideBack, 9216)
|
||||||
|
x(LoadScreenWideLeft, 9217)
|
||||||
|
x(LoadScreenWideRight, 9218)
|
||||||
|
x(LoadScreenWideMiddle, 9219)
|
||||||
|
|
||||||
|
x(SBarNumberHealth, 9220)
|
||||||
|
x(SBarNumberAmmo, 9230)
|
||||||
|
x(SBarNumberInv, 9240)
|
||||||
|
x(SBarNumberArmor1, 9250)
|
||||||
|
x(SBarNumberArmor2, 9260)
|
||||||
|
x(SBarNumberArmor3, 9270)
|
||||||
|
|
|
@ -219,7 +219,7 @@ void C_InitConback(FTextureID fallback, bool tile, double brightness)
|
||||||
if (!conback.isValid())
|
if (!conback.isValid())
|
||||||
{
|
{
|
||||||
conback.SetInvalid();
|
conback.SetInvalid();
|
||||||
conshade = MAKEARGB(uint8_t(255 - 60*brightness),0,0,0);
|
conshade = MAKEARGB(uint8_t(255 - 255*brightness),0,0,0);
|
||||||
conline = true;
|
conline = true;
|
||||||
if (!tile) conback = fallback;
|
if (!tile) conback = fallback;
|
||||||
}
|
}
|
||||||
|
@ -616,7 +616,8 @@ void C_DrawConsole ()
|
||||||
{
|
{
|
||||||
if (conflat.isValid())
|
if (conflat.isValid())
|
||||||
{
|
{
|
||||||
PalEntry pe((uint8_t(255 * con_alpha)), 64, 64, 64);
|
int conbright = 255 - APART(conshade);
|
||||||
|
PalEntry pe((uint8_t(255 * con_alpha)), conbright, conbright, conbright);
|
||||||
twod->AddFlatFill(0, visheight - screen->GetHeight(), screen->GetWidth(), visheight, TexMan.GetGameTexture(conflat), 1, CleanXfac, pe, STYLE_Shaded);
|
twod->AddFlatFill(0, visheight - screen->GetHeight(), screen->GetWidth(), visheight, TexMan.GetGameTexture(conflat), 1, CleanXfac, pe, STYLE_Shaded);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue