Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: TheJBurger on Sat 21/06/2008 21:28:47

Title: Customize Quit Game Message
Post by: TheJBurger on Sat 21/06/2008 21:28:47
I want to change the default quit message GUI, but I don't know if it's possible anymore. I remember you used to be able to do it by changing the global messages, like this thread shows: http://www.adventuregamestudio.co.uk/yabb/index.php?topic=30964.msg396480#msg396480

Now in AGS 3.0.1 however, I think the global messages have been removed, so how can I change the quit text (preferably without making my own quit GUI).
Title: Re: Customize Quit Game Message
Post by: Creator on Sun 22/06/2008 11:33:36
You cannot change the default quit GUI, but you can make a new one.
Start off with making a new GUI and call it something like: gQuitgui.
Put a label on there that says something like: Do you really want to quit?
Now make two buttons: one that says 'Yes' and the other that says 'No'.

Scripting for the buttons:
Yes:

QuitGame(0);


No:

gQuitgui.Visible = false;


When you want the quit GUI to pop up, run this script:

gQuitgui.Visible = true;


Sorry, but that's the easiest way with 3.0.1.
Title: Re: Customize Quit Game Message
Post by: Khris on Sun 22/06/2008 12:57:56
And don't forget to set the GUI's visible mode to Popup modal.
Title: Re: Customize Quit Game Message
Post by: Dualnames on Sun 22/06/2008 17:12:02
Quote from: TheJBurger on Sat 21/06/2008 21:28:47
how can I change the quit text (preferably without making my own quit GUI).

It's not possible anymore. I think so at least. I tried myself as well. Maybe we're missing something , but in case we do, I'd love to hear it.
Title: Re: Customize Quit Game Message
Post by: TheJBurger on Sun 22/06/2008 22:09:16
Yeah, I know good and well how to make my own quit GUI, but thanks anyway. Guess I'll just have to make my own.