-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mouse interaction with webpage ('enter' and 'exit' page interaction), besides .web command #1
Comments
From the developer console:
You can even load the game into itself:
and it runs at full performance: similar to /u/drasdafy suggested (but instead for MC) at https://pay.reddit.com/r/Minecraft/comments/1xzbya/and_this_is_why_i_love_mods/
|
added .url and .web to voxel/voxel-commands@60effbb just for fun.. how far can it go ;) |
Fixed "Failed to enable plugin" bug in screenshots above with voxel/voxel-plugins@9cd27df Added 'click outside of webview to return to game' in 7b07305 - but 1) if the iframe fills up the whole screen, how can you exit? (well, if voxel-inventory-hotbar is installed you can click it since it covers the iframe), 2) there's still no in-game survival means to 'enter' the webview interaction (temporary: |
alternate approach at http://deathcap.github.io/gl-css3d/ - (uses a button to) toggle the pointer-events CSS properties, to switch between game (WebGL) and browser (CSS3D) mouse interaction. On the other hand raising the z-index (which has been working and still works in 0.2. with voxel-webview's built-in |
Currently, the webpage doesn't receive mouse events. You can already interact with the webpage using the keyboard - press Escape to exit pointer lock, then Tab to traverse the links, text fields etc., but mouse events aren't passed. Would be cool if they were, somehow.
(But the WebGL view canvas needs mouse events to acquire pointer lock?)
The text was updated successfully, but these errors were encountered: