I had to remove the save icon from the gPanel because i balled something up in the code somewhere somehow. So I want to add a 'save' and 'load' icon, how do I link these to the save and load GUIs?
Thanks in advance. I can get on with other things now.
first you would set up the buttons on the gPanel, then you would go to the actions menu,and hit on click. you would then code:
gPanel.Visible=false;
insert svae or load gui name
g .Visible=true;
I hope this helps
This works for a custom save/load GUI.
To show the built-in ones, just call RestoreGameDialog() / SaveGameDialog().
when you say 'call', how do i do that? :-[
Quote from: rickious on Mon 30/09/2013 20:28:50
when you say 'call', how do i do that? :-[
"Call" = "Call function" (programming/scripting term) = write function name with parameter list between opening and closing brackets.
Examples:
RestoreGameDialog(); // no parameters expected, hence nothing between brackets
SaveGameDialog();
float x = Math.Cos(1); // "calling" cosin function
Also, in case that's unclear: create the button's OnClick function and link it to the event by double clicking the button in the GUI editor. Then just write the command inside the function.
Cheers people, you learn something new every few hours with AGS (laugh)