return TRUE;
}
+static boolean clickBlocked(struct GlobalAnimPartControlInfo *part)
+{
+ return (part->control_info.style & STYLE_BLOCK ? TRUE : FALSE);
+}
+
static boolean clickConsumed(struct GlobalAnimPartControlInfo *part)
{
return (part->control_info.style & STYLE_PASSTHROUGH ? FALSE : TRUE);
click_consumed |= clickConsumed(part);
}
+ // determine if mouse clicks should be blocked by this animation
+ click_consumed |= clickBlocked(part);
+
// check if this click is defined to trigger other animations
InitGlobalAnim_Triggered(part, &click_consumed, &any_event_action,
ANIM_EVENT_CLICK, "CLICK");
if (string_has_parameter(value, "reverse"))
result |= STYLE_REVERSE;
+ if (string_has_parameter(value, "block_clicks"))
+ result |= STYLE_BLOCK;
+
if (string_has_parameter(value, "passthrough_clicks"))
result |= STYLE_PASSTHROUGH;
#define STYLE_REVERSE (1 << 2)
// values for special event handling style (used for global animation)
-#define STYLE_PASSTHROUGH (1 << 3)
-#define STYLE_MULTIPLE_ACTIONS (1 << 4)
+#define STYLE_BLOCK (1 << 3)
+#define STYLE_PASSTHROUGH (1 << 4)
+#define STYLE_MULTIPLE_ACTIONS (1 << 5)
#define STYLE_DEFAULT STYLE_NONE