Sometimes, I'd liek to ask the user a Yes/No or OK/Cancel kind of question, and I don't thin there's an easy way to script this. What I mean is, it woul dbe nice to have a function (builtin or user-defined) like:
if (AskYesNo("Overwrite savegame")) {
// Do Yes
} else {
// Do No
}
As it is , I can write a function that brings up a popup modal GUI and sets the label in it, but using the same function to wait for a reply from that GUI is not possible. Even using rep_ex_always, I can't get it to work. If you have a solution, please tell me, but if it means CJ needs to add something to AGS, then please coutn this as a SUGGESTION!
Edit:
I've answered my own question: For a customisable confirm box, try my new DialogBox module.
if (AskYesNo("Overwrite savegame")) {
// Do Yes
} else {
// Do No
}
As it is , I can write a function that brings up a popup modal GUI and sets the label in it, but using the same function to wait for a reply from that GUI is not possible. Even using rep_ex_always, I can't get it to work. If you have a solution, please tell me, but if it means CJ needs to add something to AGS, then please coutn this as a SUGGESTION!
Edit:
I've answered my own question: For a customisable confirm box, try my new DialogBox module.