mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +00:00
- Added HUDMSG_ALPHA flag. To use alpha with hud messages, you now need to include this flag,
so old mods with extra arguments to hudmessage don't produce unexpected results. SVN r3876 (trunk)
This commit is contained in:
parent
d28ebe543b
commit
9a28216e30
1 changed files with 5 additions and 1 deletions
|
@ -92,6 +92,7 @@ FRandom pr_acs ("ACS");
|
||||||
#define HUDMSG_LOG (0x80000000)
|
#define HUDMSG_LOG (0x80000000)
|
||||||
#define HUDMSG_COLORSTRING (0x40000000)
|
#define HUDMSG_COLORSTRING (0x40000000)
|
||||||
#define HUDMSG_ADDBLEND (0x20000000)
|
#define HUDMSG_ADDBLEND (0x20000000)
|
||||||
|
#define HUDMSG_ALPHA (0x10000000)
|
||||||
|
|
||||||
// HUD message layers; these are not flags
|
// HUD message layers; these are not flags
|
||||||
#define HUDMSG_LAYER_SHIFT 12
|
#define HUDMSG_LAYER_SHIFT 12
|
||||||
|
@ -5723,7 +5724,10 @@ scriptwait:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
msg->SetVisibility((type & HUDMSG_VISIBILITY_MASK) >> HUDMSG_VISIBILITY_SHIFT);
|
msg->SetVisibility((type & HUDMSG_VISIBILITY_MASK) >> HUDMSG_VISIBILITY_SHIFT);
|
||||||
msg->SetAlpha(alpha);
|
if (type & HUDMSG_ALPHA)
|
||||||
|
{
|
||||||
|
msg->SetAlpha(alpha);
|
||||||
|
}
|
||||||
if (type & HUDMSG_ADDBLEND)
|
if (type & HUDMSG_ADDBLEND)
|
||||||
{
|
{
|
||||||
msg->SetRenderStyle(STYLE_Add);
|
msg->SetRenderStyle(STYLE_Add);
|
||||||
|
|
Loading…
Reference in a new issue