Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
In the environment created in CopperCube, I would like to understand how to 'Approaching an object I can trigger the opening of an HTML/JavaScript popup that is embedded in the page's code where I have inserted the WebGL if this environment. Is this possible?" This code for the responsive popup: https://codepen.io/Shaz3e/pen/jE... |
||||
|
you can execute the function that is in the script for opening the popup and closing the popup. in the provided script the code for opening and closing the popup is like this.
so when you want to open the popup in your game, you can use the execute javascript command and can use popupOpen() to open the popup and do the same for closing the popup simply execute the popupClose() I believe it should work then, but you need to have the script in the same html page as of your coppercube game, and they both should not conflict with each other. Coppercube uses a mininified JS code, so if you are using some other third party code, then chances are high that they both will conflict with each other. you need to scope them individually in different functions if you think that they might conflict with each other. |
||||
|
just_in_case I did not know that, thanks! |
||||
|
just_in_case Is there a code for opening and closing a pop-up window in the exe file? |
||||
|
You can create popups with the help of 2D overlays, or planemeshes, and hide or unhide them, can also use scaling on them to create a popup effect in windows exe. Note:- Don't post in all caps, or things that seems to be spam. Just removed your last two posts that was in all caps and a post that seemed spam. |
||||
|
thanks to all! I managed to create the pop-ups using the idea suggested by just_in_case, and with the help of ChatGPT, I polished everything. It's perfect! I'm almost ready to launch the new graphical interface for my online gallery Thank you just_in_case! |
||||
|
|