Fixed TEAM_COLOR_OVERRIDE.
This commit is contained in:
parent
fcdeaccd76
commit
3c6c8dcddc
1 changed files with 10 additions and 20 deletions
|
@ -54,26 +54,16 @@
|
|||
[/item]
|
||||
#enddef
|
||||
|
||||
#define PRESTART_FILTER_EFFECT FILTER EFFECT
|
||||
# Apply an image mod to filter-selected units at prestart time
|
||||
[event]
|
||||
name=prestart
|
||||
first_time_only=yes
|
||||
[object]
|
||||
silent=yes
|
||||
[filter]
|
||||
{FILTER}
|
||||
[/filter]
|
||||
[effect]
|
||||
apply_to=image_mod
|
||||
add={EFFECT}
|
||||
[/effect]
|
||||
[/object]
|
||||
[/event]
|
||||
#enddef
|
||||
|
||||
#define TEAM_COLOR_OVERRIDE FILTER TEAMCOLOR
|
||||
# Override the team color of filtered units.
|
||||
# This is an example of how to use PRESTART_FILTER_EFFECT.
|
||||
{PRESTART_FILTER_EFFECT {FILTER} "RC(magenta>{TEAMCOLOR})"}
|
||||
[object]
|
||||
silent=yes
|
||||
[filter]
|
||||
{FILTER}
|
||||
[/filter]
|
||||
[effect]
|
||||
apply_to=image_mod
|
||||
add=RC(magenta>{TEAMCOLOR})
|
||||
[/effect]
|
||||
[/object]
|
||||
#enddef
|
||||
|
|
Loading…
Add table
Reference in a new issue