add some macros for generic teleport animations.
These are not used by default and need to be enabled by WML authors (or added to unit's wml individually)
|
@ -298,6 +298,7 @@ Version 1.11.0-svn:
|
|||
* Added: Fail macros FAIL and FAIL_WITH_DEV_MESSAGE.
|
||||
* Added: Helper code to make it easier to write enumerate stream operators.
|
||||
* Added: UNREACHABLE_CODE macro.
|
||||
* Added: TELEPORT animation macros usable by any units
|
||||
|
||||
Version 1.10.0:
|
||||
* Campaigns:
|
||||
|
|
BIN
data/core/images/masks/teleport-mask-0.png
Normal file
After Width: | Height: | Size: 734 B |
BIN
data/core/images/masks/teleport-mask-1.png
Normal file
After Width: | Height: | Size: 758 B |
BIN
data/core/images/masks/teleport-mask-2.png
Normal file
After Width: | Height: | Size: 783 B |
BIN
data/core/images/masks/teleport-mask-3.png
Normal file
After Width: | Height: | Size: 804 B |
BIN
data/core/images/masks/teleport-mask-4.png
Normal file
After Width: | Height: | Size: 822 B |
BIN
data/core/images/masks/teleport-mask-5.png
Normal file
After Width: | Height: | Size: 836 B |
BIN
data/core/images/masks/teleport-mask-6.png
Normal file
After Width: | Height: | Size: 817 B |
BIN
data/core/images/masks/teleport-mask-7.png
Normal file
After Width: | Height: | Size: 792 B |
BIN
data/core/images/masks/teleport-mask-8.png
Normal file
After Width: | Height: | Size: 768 B |
BIN
data/core/images/masks/teleport-mask-9.png
Normal file
After Width: | Height: | Size: 742 B |
|
@ -39,3 +39,197 @@
|
|||
[redraw]
|
||||
[/redraw]
|
||||
#enddef
|
||||
|
||||
#define TELEPORT_OUT_ANIMATION
|
||||
|
||||
start_time=-1200
|
||||
|
||||
teleport_sparkle_1_start_time=-1200
|
||||
teleport_sparkle_2_start_time=-1000
|
||||
teleport_sparkle_3_start_time=-800
|
||||
|
||||
[teleport_sparkle_1_frame]
|
||||
duration=800
|
||||
halo=misc/blank-hex.png:1,halo/teleport-9.png,halo/teleport-8.png,halo/teleport-1.png,halo/teleport-2.png,halo/teleport-3.png,halo/teleport-4.png,halo/teleport-5.png,halo/teleport-6.png,halo/teleport-7.png,halo/teleport-8.png,halo/teleport-9.png,misc/blank-hex.png:1
|
||||
halo_x=-10
|
||||
halo_y=30~-30
|
||||
[/teleport_sparkle_1_frame]
|
||||
[teleport_sparkle_2_frame]
|
||||
duration=800
|
||||
halo=misc/blank-hex.png:1,halo/teleport-9.png,halo/teleport-8.png,halo/teleport-1.png,halo/teleport-2.png,halo/teleport-3.png,halo/teleport-4.png,halo/teleport-5.png,halo/teleport-6.png,halo/teleport-7.png,halo/teleport-8.png,halo/teleport-9.png,misc/blank-hex.png:1
|
||||
halo_x=0
|
||||
halo_y=40~-40
|
||||
[/teleport_sparkle_2_frame]
|
||||
[teleport_sparkle_3_frame]
|
||||
duration=800
|
||||
halo=misc/blank-hex.png:1,halo/teleport-9.png,halo/teleport-8.png,halo/teleport-1.png,halo/teleport-2.png,halo/teleport-3.png,halo/teleport-4.png,halo/teleport-5.png,halo/teleport-6.png,halo/teleport-7.png,halo/teleport-8.png,halo/teleport-9.png,misc/blank-hex.png:1
|
||||
halo_x=10
|
||||
halo_y=30~-30
|
||||
[/teleport_sparkle_3_frame]
|
||||
|
||||
[frame]
|
||||
duration=100
|
||||
image_mod=~MASK(masks/teleport-mask-0.png)
|
||||
[/frame]
|
||||
[frame]
|
||||
duration=100
|
||||
image_mod=~MASK(masks/teleport-mask-1.png)
|
||||
[/frame]
|
||||
[frame]
|
||||
duration=100
|
||||
image_mod=~MASK(masks/teleport-mask-2.png)
|
||||
[/frame]
|
||||
[frame]
|
||||
duration=100
|
||||
image_mod=~MASK(masks/teleport-mask-3.png)
|
||||
[/frame]
|
||||
[frame]
|
||||
duration=100
|
||||
image_mod=~MASK(masks/teleport-mask-4.png)
|
||||
[/frame]
|
||||
[frame]
|
||||
duration=100
|
||||
image_mod=~MASK(masks/teleport-mask-5.png)
|
||||
[/frame]
|
||||
[frame]
|
||||
duration=100
|
||||
image_mod=~MASK(masks/teleport-mask-6.png)
|
||||
[/frame]
|
||||
[frame]
|
||||
duration=100
|
||||
image_mod=~MASK(masks/teleport-mask-7.png)
|
||||
[/frame]
|
||||
[frame]
|
||||
duration=100
|
||||
image_mod=~MASK(masks/teleport-mask-8.png)
|
||||
[/frame]
|
||||
[frame]
|
||||
duration=100
|
||||
image_mod=~MASK(masks/teleport-mask-9.png)
|
||||
[/frame]
|
||||
[frame]
|
||||
duration=200
|
||||
image="misc/blank-hex.png"
|
||||
[/frame]
|
||||
#enddef
|
||||
|
||||
#define TELEPORT_IN_ANIMATION
|
||||
|
||||
start_time=-1200
|
||||
|
||||
teleport_sparkle_1_start_time=-1200
|
||||
teleport_sparkle_2_start_time=-1000
|
||||
teleport_sparkle_3_start_time=-800
|
||||
|
||||
[teleport_sparkle_1_frame]
|
||||
duration=800
|
||||
halo=misc/blank-hex.png:1,halo/teleport-9.png,halo/teleport-8.png,halo/teleport-1.png,halo/teleport-2.png,halo/teleport-3.png,halo/teleport-4.png,halo/teleport-5.png,halo/teleport-6.png,halo/teleport-7.png,halo/teleport-8.png,halo/teleport-9.png,misc/blank-hex.png:1
|
||||
halo_x=10
|
||||
halo_y=-30~30
|
||||
[/teleport_sparkle_1_frame]
|
||||
[teleport_sparkle_2_frame]
|
||||
duration=800
|
||||
halo=misc/blank-hex.png:1,halo/teleport-9.png,halo/teleport-8.png,halo/teleport-1.png,halo/teleport-2.png,halo/teleport-3.png,halo/teleport-4.png,halo/teleport-5.png,halo/teleport-6.png,halo/teleport-7.png,halo/teleport-8.png,halo/teleport-9.png,misc/blank-hex.png:1
|
||||
halo_x=0
|
||||
halo_y=-40~40
|
||||
[/teleport_sparkle_2_frame]
|
||||
[teleport_sparkle_3_frame]
|
||||
duration=800
|
||||
halo=misc/blank-hex.png:1,halo/teleport-9.png,halo/teleport-8.png,halo/teleport-1.png,halo/teleport-2.png,halo/teleport-3.png,halo/teleport-4.png,halo/teleport-5.png,halo/teleport-6.png,halo/teleport-7.png,halo/teleport-8.png,halo/teleport-9.png,misc/blank-hex.png:1
|
||||
halo_x=-10
|
||||
halo_y=-30~30
|
||||
[/teleport_sparkle_3_frame]
|
||||
[frame]
|
||||
duration=200
|
||||
image="misc/blank-hex.png"
|
||||
[/frame]
|
||||
[frame]
|
||||
duration=100
|
||||
image_mod=~MASK(masks/teleport-mask-9.png)
|
||||
[/frame]
|
||||
[frame]
|
||||
duration=100
|
||||
image_mod=~MASK(masks/teleport-mask-8.png)
|
||||
[/frame]
|
||||
[frame]
|
||||
duration=100
|
||||
image_mod=~MASK(masks/teleport-mask-7.png)
|
||||
[/frame]
|
||||
[frame]
|
||||
duration=100
|
||||
image_mod=~MASK(masks/teleport-mask-6.png)
|
||||
[/frame]
|
||||
[frame]
|
||||
duration=100
|
||||
image_mod=~MASK(masks/teleport-mask-5.png)
|
||||
[/frame]
|
||||
[frame]
|
||||
duration=100
|
||||
image_mod=~MASK(masks/teleport-mask-4.png)
|
||||
[/frame]
|
||||
[frame]
|
||||
duration=100
|
||||
image_mod=~MASK(masks/teleport-mask-3.png)
|
||||
[/frame]
|
||||
[frame]
|
||||
duration=100
|
||||
image_mod=~MASK(masks/teleport-mask-2.png)
|
||||
[/frame]
|
||||
[frame]
|
||||
duration=100
|
||||
image_mod=~MASK(masks/teleport-mask-1.png)
|
||||
[/frame]
|
||||
[frame]
|
||||
duration=100
|
||||
image_mod=~MASK(masks/teleport-mask-0.png)
|
||||
[/frame]
|
||||
#enddef
|
||||
|
||||
#define TELEPORT_EFFECT_OBJECT_ID _ID_
|
||||
|
||||
[object]
|
||||
silent=yes
|
||||
duration=level #should be "turn" once support is implemented
|
||||
|
||||
[filter]
|
||||
id={_ID_}
|
||||
[/filter]
|
||||
|
||||
[effect]
|
||||
apply_to=new_animation
|
||||
|
||||
[animation]
|
||||
apply_to=pre_teleport
|
||||
{TELEPORT_OUT_ANIMATION}
|
||||
[/animation]
|
||||
|
||||
[animation]
|
||||
apply_to=post_teleport
|
||||
{TELEPORT_IN_ANIMATION}
|
||||
[/animation]
|
||||
|
||||
[/effect]
|
||||
[/object]
|
||||
#enddef
|
||||
|
||||
#define TELEPORT_EFFECT_OBJECT
|
||||
[object]
|
||||
silent=yes
|
||||
duration=turn
|
||||
|
||||
[effect]
|
||||
apply_to=new_animation
|
||||
|
||||
[animation]
|
||||
apply_to=pre_teleport
|
||||
{TELEPORT_OUT_ANIMATION}
|
||||
[/animation]
|
||||
|
||||
[animation]
|
||||
apply_to=post_teleport
|
||||
{TELEPORT_IN_ANIMATION}
|
||||
[/animation]
|
||||
[/effect]
|
||||
[/object]
|
||||
#enddef
|
||||
|
||||
|
|