- 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:
Randy Heit 2012-09-20 02:06:50 +00:00
parent d28ebe543b
commit 9a28216e30

View file

@ -92,6 +92,7 @@ FRandom pr_acs ("ACS");
#define HUDMSG_LOG (0x80000000)
#define HUDMSG_COLORSTRING (0x40000000)
#define HUDMSG_ADDBLEND (0x20000000)
#define HUDMSG_ALPHA (0x10000000)
// HUD message layers; these are not flags
#define HUDMSG_LAYER_SHIFT 12
@ -5723,7 +5724,10 @@ scriptwait:
break;
}
msg->SetVisibility((type & HUDMSG_VISIBILITY_MASK) >> HUDMSG_VISIBILITY_SHIFT);
if (type & HUDMSG_ALPHA)
{
msg->SetAlpha(alpha);
}
if (type & HUDMSG_ADDBLEND)
{
msg->SetRenderStyle(STYLE_Add);