Restore game problem (Solved)

Started by NickyNyce, Wed 24/08/2011 14:46:24

Previous topic - Next topic

NickyNyce

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


Khris

Because the list in the GUI hasn't been filled yet.

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


which in turn contains this:

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


Put this in the global header:

Code: ags
import function show_restore_game_dialog();


Then call it in the hotspot's OnClick.

NickyNyce

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

SMF spam blocked by CleanTalk