X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ffiles.c;h=cfba947d0c50ac26aa6870d5d87cbb1f48f45d3d;hp=9f20487fb0e4f5aebb8bd2108b2f7e19040db114;hb=da0b032a906bd0fdadf798802c04c9084bee074c;hpb=897c46a2720672a49ce6d0803b08eed23fd2dd90 diff --git a/src/files.c b/src/files.c index 9f20487f..cfba947d 100644 --- a/src/files.c +++ b/src/files.c @@ -10066,11 +10066,19 @@ static int get_anim_parameter_value(char *s) { int event_value[] = { - ANIM_EVENT_CLICK + ANIM_EVENT_CLICK, + ANIM_EVENT_INIT, + ANIM_EVENT_START, + ANIM_EVENT_END, + ANIM_EVENT_POST }; char *pattern_1[] = { - "click:anim_" + "click:anim_", + "init:anim_", + "start:anim_", + "end:anim_", + "post:anim_" }; char *pattern_2 = ".part_"; char *matching_char = NULL; @@ -10160,6 +10168,9 @@ static int get_anim_parameter_values(char *s) string_has_parameter(s, "self")) event_value |= ANIM_EVENT_SELF; + if (string_has_parameter(s, "unclick:any")) + event_value |= ANIM_EVENT_UNCLICK_ANY; + // if animation event found, add it to global animation event list if (event_value != ANIM_EVENT_NONE) list_pos = AddGlobalAnimEventValue(list_pos, event_value);