Customize Quit Game Message

Started by TheJBurger, Sat 21/06/2008 21:28:47

Previous topic - Next topic

TheJBurger

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).

Creator

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:
Code: ags

QuitGame(0);


No:
Code: ags

gQuitgui.Visible = false;


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

gQuitgui.Visible = true;


Sorry, but that's the easiest way with 3.0.1.

Khris

And don't forget to set the GUI's visible mode to Popup modal.

Dualnames

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.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

TheJBurger

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.

SMF spam blocked by CleanTalk