RestoreGameDialog();

Started by Candle, Thu 22/04/2004 19:02:53

Previous topic - Next topic

Candle

I had ask about this a while ago and was given that to use to load a saved game from my start memu .
But I made some nice save and load GUI'S but when I use RestoreGameDialog();  it loads some ulgy gray gui for the load save game .
I tried Load(); like it use's in the main script but that gave errors .

Ashen

RestoreGameDialog() uses the default load GUI. You need to use the GUIOn command instead.

e.g.
GUIOn (LOADGUI);

Hope this helps.

Darth Mandarb

#2
I'm not sure, but I don't think you should use that function.  I think you need to create the custom Save/Load GUI and when the user clicks on Save/Load you need to turn the new GUI on.

I think 'RestoreGameDialog();' will always use the default Save/Load GUI (hard coded into the system)

Also, in your GlobalScript you'll want to change the call for 'RestoreGameDialog' don't forget!  Or it'll still use the old one too!

edit - yeah, what he said ;)

Candle

Well ok , all look into that and see if I can do it .. not all that great with code right now . lol so I'm a little  scared to touch the script.

Ashen

You just need to change:

 if (keycode==365) RestoreGameDialog();  // F7

to:

   if (keycode==365) GUIOn(LOADGUI);  // F7

(this is about line 33 of the Global Script). You also need to change:

   else if (button == 7)   // load game
     RestoreGameDialog();

to:

   else if (button == 7)   // load game
     GUIOn(LOADGUI);

(around lines 68-69) assuming you haven't altered the ICONBAR GUI. You'll need to do the same thing for the SaveGameDialog() lines, if you have a custom save GUI.

Hope this helps, I'm off the pub.

SMF spam blocked by CleanTalk