Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Alaskaban on Fri 05/07/2013 16:05:47

Title: Quit game window help
Post by: Alaskaban on Fri 05/07/2013 16:05:47
Hello, I was wondering if there was any way to customize the quit window. I have noticed that it is not in the gui section in default games.
Title: Re: Quit game window help
Post by: arj0n on Fri 05/07/2013 16:20:11
It's been asked before, take a look here (http://www.adventuregamestudio.co.uk/forums/index.php?topic=30964.msg396482#msg396482)
Title: Re: Quit game window help
Post by: Adeel on Fri 05/07/2013 16:35:02
    You may just make a GUI containing the confirmation line and two button: 1) Yes and 2) No. Then on the Yes button, add the following code to the event handler of that button:

Code (AGS) Select
QuitGame(0);

Thing is, when you add Zero - 0, then the hard coded prompt doesn't appear and game quits without confirming the player.