From: Holger Schemel Date: Mon, 11 Jun 2018 19:48:30 +0000 (+0200) Subject: added being able to generally set global animations to passthrough clicks X-Git-Tag: 4.1.1.0~131 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=9274b9677563b997d6521b6c2c700ce30847cdfe;p=rocksndiamonds.git added being able to generally set global animations to passthrough clicks Before, the "passthrough_clicks" option was limited to allow mouse clicks on global animations to be passed through to the mouse sensitive screen controls, but not to other global animations. Now, stacked global animations can all receive mouse clicks if those global animations overlapping them are set to "passthrough_clicks". --- diff --git a/src/anim.c b/src/anim.c index 81441829..b6ee0b93 100644 --- a/src/anim.c +++ b/src/anim.c @@ -1543,7 +1543,8 @@ static boolean InitGlobalAnim_Clicked(int mx, int my, boolean clicked) if (!any_event_action && DoGlobalAnim_EventAction(part)) any_event_action = TRUE; - any_part_clicked = TRUE; + // determine if mouse clicks should be blocked from other animations + any_part_clicked = clickConsumed(part); if (isClickablePart(part, ANIM_EVENT_SELF)) {