Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: NickyNyce on Wed 24/08/2011 14:46:24

Title: Restore game problem (Solved)
Post by: NickyNyce on Wed 24/08/2011 14:46:24
I really wish I could have searched the forums for this one...but as we all know...it's down. I jumped around the Wiki pages and the manual but I'm having trouble finding what I'm looking for....here goes

I am trying to implement a splash screen with new game and load hotspots...When I do any click on the load hotspot I have

   gRestoreGame.Visible=true;

The Restore Gui pops up but there are no save games in there, I also cant click on it to type one in...I can click restore or cancel though. When I click New game it starts and I can open the iconbar at the top of the screen and my saves are in the restore gui...But how come their not in the restore GUI in the splash screen when I open it ?

Any help would be appreciated ....thanks

Title: Re: Restore game problem
Post by: Khris on Wed 24/08/2011 16:24:27
Because the list in the GUI hasn't been filled yet.

What the button in the icon bar actually does is call
  show_restore_game_dialog();

which in turn contains this:

  gRestoreGame.Visible = true;
  lstRestoreGamesList.FillSaveGameList();
  mouse.UseModeGraphic(eModePointer);
  gIconbar.Visible = false;


Put this in the global header:

import function show_restore_game_dialog();

Then call it in the hotspot's OnClick.
Title: Re: Restore game problem (Solved)
Post by: NickyNyce on Wed 24/08/2011 16:32:38
Thank you, thank you, Damn I was close, I fiddled with show restore game dialoge too, I never put it in the global header... >:(

Thanks a million