ID:2546486
 
Resolved
Items in visual contents with a mouse_opacity of 0 could still interact with the mouse if they were layered beneath their parent icon.
BYOND Version:512
Operating System:Windows 7 Home Premium 64-bit
Web Browser:Firefox 56.0
Applies to:Dream Seeker
Status: Resolved (513.1512)

This issue has been resolved.
Descriptive Problem Summary:
obj A with mouse_opacity = 0 in vis_contents of mob B which has KEEP_TOGETHER will cause the mouse to interact with obj A as long as it is layered below mob B

Numbered Steps to Reproduce Problem:
1. Create a mob with KEEP_TOGETHER
2. Create an obj with mouse_opacity = 0, an icon larger than the mob icon, and a layer below the mob.
3. Place the obj in the vis_contents of the mob.
4. Mouse over the obj in vis_contents of the mob, the mouse will detect it.
5. Change the layer of the obj to be above the mob, the mouse will, properly, no longer detect it.




Code Snippet (if applicable) to Reproduce Problem:
https://www.dropbox.com/s/kq3c8fyksgmdy8b/ vis_contents_mouse_opacity.zip?dl=1

In the test case I have 2 things in vis_contents, both with mouse_opacity = 0.
One is layered below the mob the other above.
The one layered below shows up when you mouse over it, the one above does not.
There is a verb to flip the layering of the two things in vis_contents.

Expected Results:
The obj with mouse_opacity = 0 is ignored by the mouse irregardless of layering with respect to the mob.

Actual Results:
The obj with mouse_opacity = 0 is ignored by the mouse only when it is layered above the mob.


Does the problem occur:
Every time? Or how often?: Every time
In other games?: Yes
In other user accounts?: Yes
On other computers?: Yes

When does the problem NOT occur?
When the mob does not have KEEP_TOGETHER set

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Did not check anything earlier than 512.1488, but it shows up in 513.1511 too

Workarounds:
None so far
Lummox JR resolved issue with message:
Items in visual contents with a mouse_opacity of 0 could still interact with the mouse if they were layered beneath their parent icon.