https://imgur.com/a/FqXqDms
The situation is that the sbarinfo code is functioning correctly, and the graphics are fine too. The entire HUD works as intended, without any errors or bugs. However, due to the way GZDoom handles upscaling or offsetting, it results in a black spot in the upper left corner. I tried tweaking the code, disabling lines one by one with // to see if something specific in the script was causing the problem. I even attempted to convert and alpha edit the graphics lumps, but it didn’t help. No matter what I try, the black spot continues to appear. I wrote the coordinates both with + center and without it, but that didn’t change anything. Deleting either forcescaled or fullscreenoffsets didn’t fix the problem either; it just messed up the HUD. Is there anything I can do to resolve this?
Code: Select all
StatusBar Normal, forcescaled | fullscreenoffsets
{
DrawImage "STBARL", -240 + center, -43;
DrawImage "STBARR", 90 + center, -43;
DrawBar "HPBR1", "HPBAREMPTY", Health, vertical, interpolate(10), 208 + center, -36;
DrawImage "BAROVER", 208 + center, -43;
DrawImage "HLCRS", 213 + center, -33;
DrawBar "MPBAR1", "MPBAREMPTY", Ammo PSMana, vertical, interpolate(10), -235 + center, -36;
DrawImage "BAROVER", -235 + center, -43;
IfWaterLevel 3
{
InInventory AirHUD, 9 { DrawImage "LNGSFIL9", -166 + center, -19; }
Else InInventory AirHUD, 8 { DrawImage "LNGSFIL8", -166 + center, -20; }
Else InInventory AirHUD, 7 { DrawImage "LNGSFIL7", -166 + center, -20; }
Else InInventory AirHUD, 6 { DrawImage "LNGSFIL6", -166 + center, -20; }
Else InInventory AirHUD, 5 { DrawImage "LNGSFIL5", -166 + center, -20; }
Else InInventory AirHUD, 4 { DrawImage "LNGSFIL4", -166 + center, -20; }
Else InInventory AirHUD, 3 { DrawImage "LNGSFIL3", -166 + center, -20; }
Else InInventory AirHUD, 2 { DrawImage "LNGSFIL2", -166 + center, -20; }
Else InInventory AirHUD, 1 { DrawImage "LNGSFIL1", -166 + center, -20; }
}
Else
{
DrawImage "LGIDL1", -166 + center, -20;
}
InInventory Power12 { DrawImage "PWIC", 102 + center, -18; }
InInventory Time11 { DrawImage "TMIC", 121 + center, -19; }
InInventory War10 { DrawImage "WRIC", 138 + center, -18; }
InInventory Earth13 { DrawImage "EAIC", 158 + center, -19; }
InventorybarNotVisible
{
DrawSelectedInventory center, AlwaysShowCounter, BigFont, 18, -21, 36, -33;
}
DrawNumber 3, AMMOFONT, Untranslated, Ammo1, fillzeros, interpolate(10), -104 + center, -19, 1;
}