Restore game from main menu problem [SOLVED]

Started by aikex222, Tue 16/12/2014 05:58:01

Previous topic - Next topic

aikex222

Hi i'm having a problem with save and restore,
When i saved my game and tried to restore in game it showed me the saved game.
Spoiler


[close]
but when i try to restore from the main menu it doesn't show the saved game
don't know if this will be useful but from the main menu i'm using a hotspot and used the
Code: ags
gRestoreGame.Visible = true;

Spoiler


[close]

Mandle

#1
Instead of:

Code: ags
gRestoreGame.Visible = true;


Have you tried:

Code: ags
RestoreGameDialog();


Worked for me when I had the exact same issues ;)

EDIT: Oh...and of course SaveGameDialog(); instead of just making the save GUI visible...

It seems that AGS has some hard-wired code it needs to run before the GUI becomes visible (which includes finally pulling up the GUI) and that just making the GUI appear doesn't do the whole job.

At least that's how I found it to work...Someone will probably prove me as wrong as I am but until then give it a try anyway

aikex222

it worked now shows the saved game xD
but now is using the default GUI, can I change it for my GUI?

Cassiebsg

I seem to remember something about showrestoredialog, or list or something like that.
I couldn't get mine to work when I released Minifeg so I ended up leaving the default, and haven't bothered yet to look into it again. Try doing a board search for it, or the manual, if no one gives you a more definitive answer.
There are those who believe that life here began out there...

aikex222


Cassiebsg

Cool, thanks. :)
MaybeI should go script that, before I forget... (laugh)
There are those who believe that life here began out there...

SMF spam blocked by CleanTalk