mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-04 01:41:56 +00:00
pass ScriptPosition down to color parser functions
This commit is contained in:
parent
240a0d16f5
commit
a12073feaf
2 changed files with 5 additions and 5 deletions
|
@ -328,7 +328,7 @@ int MatchString (const char *in, const char **strings);
|
|||
#define PROP_DOUBLE_PARM(var, no) \
|
||||
double var = params[(no)+1].d;
|
||||
|
||||
#define PROP_COLOR_PARM(var, no) \
|
||||
int var = params[(no)+1].i== 0? params[(no)+2].i : V_GetColor(NULL, params[(no)+2].s);
|
||||
#define PROP_COLOR_PARM(var, no, scriptpos) \
|
||||
int var = params[(no)+1].i== 0? params[(no)+2].i : V_GetColor(NULL, params[(no)+2].s, scriptpos);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -779,7 +779,7 @@ DEFINE_PROPERTY(translation, L, Actor)
|
|||
//==========================================================================
|
||||
DEFINE_PROPERTY(stencilcolor, C, Actor)
|
||||
{
|
||||
PROP_COLOR_PARM(color, 0);
|
||||
PROP_COLOR_PARM(color, 0, &bag.ScriptPosition);
|
||||
|
||||
defaults->fillcolor = color | (ColorMatcher.Pick (RPART(color), GPART(color), BPART(color)) << 24);
|
||||
}
|
||||
|
@ -789,7 +789,7 @@ DEFINE_PROPERTY(stencilcolor, C, Actor)
|
|||
//==========================================================================
|
||||
DEFINE_PROPERTY(bloodcolor, C, Actor)
|
||||
{
|
||||
PROP_COLOR_PARM(color, 0);
|
||||
PROP_COLOR_PARM(color, 0, &bag.ScriptPosition);
|
||||
|
||||
defaults->BloodColor = color;
|
||||
defaults->BloodColor.a = 255; // a should not be 0.
|
||||
|
@ -1621,7 +1621,7 @@ DEFINE_CLASS_PROPERTY_PREFIX(player, crouchsprite, S, PlayerPawn)
|
|||
//==========================================================================
|
||||
DEFINE_CLASS_PROPERTY_PREFIX(player, damagescreencolor, Cfs, PlayerPawn)
|
||||
{
|
||||
PROP_COLOR_PARM(c, 0);
|
||||
PROP_COLOR_PARM(c, 0, &bag.ScriptPosition);
|
||||
|
||||
PalEntry color = c;
|
||||
|
||||
|
|
Loading…
Reference in a new issue