Mirage Source http://miragesource.net/forums/ |
|
Logging Out http://miragesource.net/forums/viewtopic.php?f=201&t=3884 |
Page 1 of 1 |
Author: | Rian [ Mon Jun 23, 2008 5:38 pm ] |
Post subject: | Logging Out |
So, I wanted to have a log out button which closes frmMirage and takes you back to frmMainMenu. It works, but frmMainMenu only flashes for a second, then the game closes. I can't seem to find where it's at, but I assume GameDestroy is being called somewhere. I removed it from Form Unload and Form Terminate in frmMirage. And I recall I similar problem and a similar post like this. Anyone remember what was causing it? |
Author: | Asrrin29 [ Mon Jun 23, 2008 5:59 pm ] |
Post subject: | Re: Logging Out |
I just took out the termination code from game destroy and added code to bring you back to the main menu from that. I still have to disable the pop-up that says thanks for playing, but other then that it works fine. |
Author: | Robin [ Mon Jun 23, 2008 6:01 pm ] |
Post subject: | Re: Logging Out |
The gamedestroy code at the bottom of GameLoop. It ends up going to that after you leave the game, so just place it somewhere else. |
Author: | Rian [ Mon Jun 23, 2008 6:51 pm ] |
Post subject: | Re: Logging Out |
Ah, yeah. I suppose it makes more sense to just edit how the gamedestroy is handled. |
Author: | Robin [ Mon Jun 23, 2008 7:28 pm ] |
Post subject: | Re: Logging Out |
Yup, then the code isn't inadvertently called. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |