X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fmisc.c;h=bb732ffa4ac8d517f511b236ea014f275a6c6247;hp=0c0e82c2bc45e6621f104f9bd0947e3ff3dfa269;hb=f1dae0af49fa331f6fedc6cbdf59eed0909ae391;hpb=ad543757bee23838b7f1a58bd1eca6192a37af5e;ds=sidebyside diff --git a/src/libgame/misc.c b/src/libgame/misc.c index 0c0e82c2..bb732ffa 100644 --- a/src/libgame/misc.c +++ b/src/libgame/misc.c @@ -2782,6 +2782,14 @@ int get_parameter_value(char *value_raw, char *suffix, int type) if (string_has_parameter(value, "static_panel")) result |= ANIM_STATIC_PANEL; } + else if (strEqual(suffix, ".init_event") || + strEqual(suffix, ".anim_event")) + { + result = ANIM_EVENT_DEFAULT; + + if (string_has_parameter(value, "click")) + result |= ANIM_EVENT_CLICK; + } else if (strEqual(suffix, ".class")) { result = (strEqual(value, ARG_UNDEFINED) ? ARG_UNDEFINED_VALUE :