diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-27 19:23:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-01 21:26:30 +0300 |
commit | c64a4b271528d513e478e9a2cd9d939586a55d83 (patch) | |
tree | d393c0cc6fa9547b777527be2e9ca5d274bded1c /src/resources/animation.h | |
parent | 08a1867723b5224adafaa61c160b2966c10e0231 (diff) | |
download | plus-c64a4b271528d513e478e9a2cd9d939586a55d83.tar.gz plus-c64a4b271528d513e478e9a2cd9d939586a55d83.tar.bz2 plus-c64a4b271528d513e478e9a2cd9d939586a55d83.tar.xz plus-c64a4b271528d513e478e9a2cd9d939586a55d83.zip |
Add pause animation tag.
Example: <pause delay="10"/>
Diffstat (limited to 'src/resources/animation.h')
-rw-r--r-- | src/resources/animation.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/resources/animation.h b/src/resources/animation.h index 53e9adbea..1d23b1608 100644 --- a/src/resources/animation.h +++ b/src/resources/animation.h @@ -40,7 +40,8 @@ struct Frame ANIMATION = 0, JUMP, GOTO, - LABEL + LABEL, + PAUSE }; Image *image; int delay; @@ -102,6 +103,8 @@ class Animation void addGoto(std::string name, int rand); + void addPause(int delay, int rand); + void setLastFrameDelay(int delay); /** |