Click-through window?

Recommended Posts

Is it possible to make a click-through window in that it does not block mouse events at all? The point is to overlay graphics on top of the game view, while not blocking the user's mouse clicks over the graphics.


I've tried setting pointer-events: none in CSS on the elements and making the background fully transparent, but the elements still block the mouse events from the game; it's only that it doesn't raise any mouse events on the HTML page.



Edited by hpmv

Share this post

Link to post
Share on other sites

I haven't used this but by the looks of it, subwindows in the manifest.json can have a boolean for clickthrough. And by the sounds of it all clicks ignore the subwindow with that setting.

What you can do is spawn your transparent things in a subwindow and make the main window click able and you can pass data to the subwindow if you want to edit things on it.


Edited by Jasonfran

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now