Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I've been trying to figure out a way to make a windows pop-up appear after an event occurs (making a kind of 'meta'-horror game), but I haven't figured it out. I attempted to use the Run Javascript behavior, though I'm a beginner in JS and the minor research I did didn't give results when used through Coppercube (I DID get a .js file that makes a popup, unfortunately I could not run this through Coppercube). Is it possible to do this? |
||||
|
not sure what you mean by a window popup but you can use a billboard with an image on it or use an overlay2d for a text box. Both can be scripted and timed to show and hide. |
||||
|
This is what I mean by a windows pop-up. Hope this clears up any confusion! |
||||
|
Why don't you use 2D overlays to create your own Popup for alert, confirmation and other stuff. Check this out https://vazahat.itch.io/gui-copp... This might come handy when create custom UI, Window with buttons or toggles. |
||||
|
guest_Guru wrote: Why don't you use 2D overlays to create your own Popup for alert, confirmation and other stuff. Check this out https://vazahat.itch.io/gui-copp... This might come handy when create custom UI, Window with buttons or toggles. While this is useful, and something I may consider adding in other projects, some of the idea of the pop-up is that this could be activated in tandem with the 'quit application' behavior to make more of a 'critical error that crashed the game' effect. |
||||
|
for that you can create custom third party application with just the popup window using another tool or software, it is going to be just a basic window handle. And then you can use System command to open that third party tool, and after opening that tool you can use the same command to close the game, that will close the game while opening the new exe with the crash popup window, otherwise I don't think it is possible to do something like this in native Coppercube without touching the source code. Someone more knowledgeable might help you with that. Maybe ask @Robbo, JIC, or some other people in discord server who are tinkering with the source code of the engine. |
||||
|
DLW977 wrote: This is what I mean by a windows pop-up. Hope this clears up any confusion! BTW. That is not a 'pop-up window', it is commonly named a message box or alert message box in your case. 'pop-up windows' are normally associated with web browsers. I'm not aware cc can use the windows api and only alert message boxes can be shown in the editor. You'd have to use the system command as was suggested by other poster. Maybe run some vbscript code using wscript.exe. How did you activate the example alert message? be easier to use that image as a billboard and show that. |
||||
|
These tips worked. Thanks all for your help! |
||||
|
|