mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 15:02:01 +00:00
Fixed applying of flags on fullscreen inventory bar
DI_ALWAYSSHOWCOUNTERS and DI_DRAWCURSORFIRST flags are no longer ignored in BaseStatusBar.DrawInventoryBar() function https://forum.zdoom.org/viewtopic.php?t=56798
This commit is contained in:
parent
3b024c347b
commit
9b446e41fc
1 changed files with 2 additions and 2 deletions
|
@ -1058,7 +1058,7 @@ class BaseStatusBar native ui
|
||||||
{
|
{
|
||||||
for(int j = 0; j < 2; j++)
|
for(int j = 0; j < 2; j++)
|
||||||
{
|
{
|
||||||
if (j ^ !!(parms.flags & DI_DRAWCURSORFIRST))
|
if (j ^ !!(flags & DI_DRAWCURSORFIRST))
|
||||||
{
|
{
|
||||||
if (item == CPlayer.mo.InvSel)
|
if (item == CPlayer.mo.InvSel)
|
||||||
{
|
{
|
||||||
|
@ -1073,7 +1073,7 @@ class BaseStatusBar native ui
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parms.amountfont != null && (item.Amount > 1 || (parms.flags & DI_ALWAYSSHOWCOUNTERS)))
|
if (parms.amountfont != null && (item.Amount > 1 || (flags & DI_ALWAYSSHOWCOUNTERS)))
|
||||||
{
|
{
|
||||||
DrawString(parms.amountfont, FormatNumber(item.Amount, 0, 5), textpos + (boxsize.X * i, 0), flags | DI_TEXT_ALIGN_RIGHT, parms.cr, parms.itemalpha);
|
DrawString(parms.amountfont, FormatNumber(item.Amount, 0, 5), textpos + (boxsize.X * i, 0), flags | DI_TEXT_ALIGN_RIGHT, parms.cr, parms.itemalpha);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue