Oh I get what you mean! It worked! Wait... DARN!! Why is there another error!!!!!! GUIOFF is undefined now. Here's the code:
Code: ags
Again, I want to make it clear that I am using somebody else's GUI and did not put these commands in myself.
if (interface == SET) { // They clicked a button on the Settings Tab
if (button == 0) { // save game
GUIOff(SET);
SaveGameDialog();}
else if (button == 1) { // load game
GUIOff(SET);
RestoreGameDialog();}
else if (button == 2) // restart game
RestartGame();
else if (button == 3) { // quit
GUIOff(SET);
QuitGame(1);}
else if (button == 4) { // about
Display("Adventure Game Studio v2 run-time engine[ Copyright (c) 1999-2003 Chris Jones");}
else if (button == 5) { // resume
GUIOff (SET);
SetCursorMode (MODE_WALK);
}
Again, I want to make it clear that I am using somebody else's GUI and did not put these commands in myself.