mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +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();
|
||||
LoadDefinitions();
|
||||
SetTileNames();
|
||||
C_InitConback(TexMan.CheckForTexture("BACKTILE", ETextureType::Any), true, 0.25);
|
||||
|
||||
TileFiles.SetBackup();
|
||||
powerupInit();
|
||||
|
|
|
@ -1,2 +1,17 @@
|
|||
// names for everything that gets accessed by scripts.
|
||||
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())
|
||||
{
|
||||
conback.SetInvalid();
|
||||
conshade = MAKEARGB(uint8_t(255 - 60*brightness),0,0,0);
|
||||
conshade = MAKEARGB(uint8_t(255 - 255*brightness),0,0,0);
|
||||
conline = true;
|
||||
if (!tile) conback = fallback;
|
||||
}
|
||||
|
@ -616,7 +616,8 @@ void C_DrawConsole ()
|
|||
{
|
||||
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);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue