I'm having a strange problem, I'll start with a short video for reference:
In a nutshell, my problem is that after I click on a Hotspot, I don't want to be able to click on any other Hotspots while my Interaction menu is open.
When I click off in a random spot, the Interaction closes. This is perfect. If I mouseover another Hotspot, however, not only is it still active, but clicking on it pulls up the Interaction for that Hotspot instead.
Not only do I not want the Hotspots appearing on Hover, but I absolutely don't want them to be clickable.
The one solution I tried for this that was pretty close was to simply Lock the Hotspot menu when the Interaction menu opens, and vice versa. This prevented the other hotspots from appearing on hover. However, if I clicked on where I knew another Hotspot was, it would still open the Interaction for that other Hotspot.
What I want is for when any Interaction menu is open, the entire rest of the screen should count as a 'Click Off' zone that simply makes that Interaction Menu disappear. It's perfectly fine if the other Hotspot becomes available right away if the mouse cursor happens to be where it is at, but it shouldn't absorb the Click Off click as a trigger to open up its Interaction menu.
I'm sorry for how labyrinthine that was, I hope the video makes it clearer! And sorry if I'm missing something incredibly obvious here!
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Perfectly clear, thanks for the details. Recreated.
What's your AC version?
If you open up AC's PlayerInteraction script, look for the following around line 585:
Immediately above it, copy/paste:
Does that resolve it?
Yes it did!
For anyone else having this issue, Chris' solution above specifically prevents the click from being picked up if the Interaction menu is clicked-off where another Hotspot is, but if you want it to be cosmetically flawless and not pick up the Hotspot for a moment afterwards I would suggest combining that script update with what I mention above about locking and unlocking the Hotspot menu when the Interaction menu is open and closed, respectively.
I also suggest leaving an 0.5 second wait before turning the Hotspot menu back on, in my case so that the cursor can go back to being locked in the center and can get there before picking up the Hotspot the cursor was hovering over.
Here's an updated video of it all working perfectly:
https://imgur.com/a/5vbIz3Q
Thanks again and as always, Chris!