Page 1 of 2

Add confirmation dialogue box when leaving game page.

PostPosted: Sun Oct 14, 2012 7:14 pm
by Prezombie
That "Play Desktop Dungeons – Beta!" link right above the game killed my game, as did accidentally pushing the "back" button on my mouse. It would be appreciated if confirmation for leaving the page was added.

Re: Add confirmation dialogue box when leaving game page.

PostPosted: Mon Oct 15, 2012 11:08 am
by dislekcia
What, like one of those Javascript popups? ... I actually have no idea how to do that, because I'd have to do it in the site and not the game. A bit too focused on Unity right now, my head is.

Re: Add confirmation dialogue box when leaving game page.

PostPosted: Mon Oct 15, 2012 5:17 pm
by Prezombie
Exactly. It's a very simple piece of javascript, you can find an example how to do it here.

http://www.openjs.com/scripts/events/ex ... mation.php

Re: Add confirmation dialogue box when leaving game page.

PostPosted: Fri Oct 19, 2012 3:16 am
by squirrelnest
I don't have much to add, except that those back buttons on the mouse are terrible. I also hate the keyboards with a little power switch between the arrow keys and delete button. (I had to pull the darn thing off.)

Re: Add confirmation dialogue box when leaving game page.

PostPosted: Fri Oct 19, 2012 4:33 pm
by dislekcia
Thaaaaaat should be working now. I hope.

Different browsers do different things to the message you try to display. Hope it's not too angry-sounding. (I hate JS, just so you know)

Re: Add confirmation dialogue box when leaving game page.

PostPosted: Wed Oct 24, 2012 11:01 pm
by Prezombie
Thank you for climbing out of your comfort zone for us, it works perfectly. We thank you for saving our hardware from a rage-induced beating. :)

Re: Add confirmation dialogue box when leaving game page.

PostPosted: Wed Oct 24, 2012 11:32 pm
by harfatum
Yes, this is fantastic. Thanks!

Re: Add confirmation dialogue box when leaving game page.

PostPosted: Thu Oct 25, 2012 2:06 am
by The Avatar
Thank you! You just saved my VGT run, and no doubt many more runs in the future. You guys are awesome.

Re: Add confirmation dialogue box when leaving game page.

PostPosted: Thu Oct 25, 2012 12:03 pm
by dislekcia
Awesome, glad it works :)

Re: Add confirmation dialogue box when leaving game page.

PostPosted: Wed Nov 07, 2012 10:55 pm
by effullbao
It seems that the confirmation box isn't appearing for me anymore. I tested it in Google Chrome and Safari. It might've been due that incident where the game was rolled back to a previous version.