added MAKE_HERO and UNMAKE_HERO macros in macros/image-utils.cfg

This commit is contained in:
Dimitar Ilccov 2007-12-11 14:36:20 +00:00
parent a240bb8eb3
commit d39c43255e

View file

@ -124,3 +124,40 @@
[/effect]
[/object]
#enddef
#define MAKE_HERO NAME
# Give an existing unit a hero overlay
[store_unit]
[filter]
description={NAME}
[/filter]
variable=hero_store
kill=no
[/store_unit]
[unit_overlay]
x=$hero_store.x
y=$hero_store.y
image=misc/hero-icon.png
[/unit_overlay]
{CLEAR_VARIABLE hero_store}
#enddef
#define UNMAKE_HERO NAME
# Remove the hero overlay from a unit
[store_unit]
[filter]
description={NAME}
[/filter]
variable=hero_store
kill=no
[/store_unit]
[remove_unit_overlay]
x=$hero_store.x
y=$hero_store.y
image=misc/hero-icon.png
[/remove_unit_overlay]
{CLEAR_VARIABLE hero_store}
#enddef