From a4e2069d16282cadaf0cf3e5d089e45b48c74b82 Mon Sep 17 00:00:00 2001 From: Sealed101 Date: Fri, 28 Jul 2023 20:58:29 +0300 Subject: [PATCH] Gives `flick_visual` `MOUSE_OPACITY_TRANSPARENT` (#77155) ## About The Pull Request #76937 introduced a temporary movable `flick_visual` to act as an image for overlays and whatnot. this used to be handled by images and i'm not sure whether images were mouse transparent or were just inheriting parent ID but i'm assuming since images are kinda virtual (from what i know anyway) they don't interrupt clicks. since flick_visual is an atom, it intercepts mouse clicks, which caused #77142 this PR gives flick_visual `MOUSE_OPACITY_TRANSPARENT` during `flick_overlay_view()`, which makes it no longer intercept clicks ## Why It's Good For The Game Fixes #77142 and possibly some other things that use that proc to show animations or overlays --- code/__HELPERS/game.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/__HELPERS/game.dm b/code/__HELPERS/game.dm index 79979534211..10b3eb59e44 100644 --- a/code/__HELPERS/game.dm +++ b/code/__HELPERS/game.dm @@ -179,6 +179,7 @@ // This is faster then pooling. I promise var/atom/movable/flick_visual/visual = new() visual.appearance = passed_appearance + visual.mouse_opacity = MOUSE_OPACITY_TRANSPARENT // I hate /area var/atom/movable/lies_to_children = src lies_to_children.vis_contents += visual