Okay, I've been working at this for two hours to no avail... I was hoping someone could help me. I've been trying to make a custom Save/Load GUI for my game, and I'm completely stuck. I'm *TRYING* to follow the tutorial at GAC (http://atticwindow.adventuredevelopers.com/tutorials.php?id=1), and here's my Global Script:
The two GUIs in question are set up like this:
GUI No. 4 (Restore box):
-Object 0: List Box
-Object 1: Label
-Object 2: Button (Restore)
-Object 3: Button (Cancel)
GUI No. 5 (Save box):
-Object 0: Label
-Object 1: Text Box
-Object 2: Button (Cancel)
-Object 3: Button (Save)
-Object 4: List Box
Now here's what's not working. The GUIs pop up fine, but nothing works with them except the Cancel button on the Restore GUI (GUI 4). Not even the Cancel button on the Save GUI works!! Can someone PLEASE help?!?
if (interface == 4) { CentreGUI (4); GUIOn (4); if (button==3) { GUIOff (4);} else { index=ListBoxGetSelected(4,0); RestoreGameSlot(savegameindex[index]);} if (interface == 5) { CentreGUI (5); GUIOn (5); if (button==2) { GUIOff (5);} if (button==3) { index=ListBoxGetNumItems (5, 4); if (index<20) { GetTextBoxText (5, 1,text); GUIOff (5); SaveGameSlot (index+1,text);} else { index=ListBoxGetSelected (5, 4); GetTextBoxText (5, 1,text); GUIOff (5); SaveGameSlot(savegameindex[index],text); } }
The two GUIs in question are set up like this:
GUI No. 4 (Restore box):
-Object 0: List Box
-Object 1: Label
-Object 2: Button (Restore)
-Object 3: Button (Cancel)
GUI No. 5 (Save box):
-Object 0: Label
-Object 1: Text Box
-Object 2: Button (Cancel)
-Object 3: Button (Save)
-Object 4: List Box
Now here's what's not working. The GUIs pop up fine, but nothing works with them except the Cancel button on the Restore GUI (GUI 4). Not even the Cancel button on the Save GUI works!! Can someone PLEASE help?!?