Editing Save/Restore GUI

Started by Darkmaster400, Wed 28/06/2006 22:38:48

Previous topic - Next topic

Darkmaster400

Hello guys,

I wanna know how to edit the Save/Restore GUI. :)
Do you know how to do it?

Regards,

---
Games Process :
---------------------
Mick Fitz Episode 1 :

Story : |----------| 0 %
Graphics : |----------| 10 %
Sound/Music : |---------| 10 %
Scripting : |----------| 0 %

----------------------------------------

Akumayo

The Save/Restore dialogues are hard-coded into AGS.  You'll want to build your own GUI to customize the save/load interface.  There are tutorials on how to do this I think... try a forum search "build save load GUI".

-Regards, Akumayo
"Power is not a means - it is an end."

Nathan23

I recomend you, to download the ags demo and view the code in the gui interface for the save and restore controls.

So, you can read or lookÃ,  in the manual or AGS Help for this two options:

SaveGameDialog ()

and

RestoreGameDialog ()

This functions are in the  topic Game / Global functions

This two will work fine for what you need.

good Luck ;)

Darkmaster400

Quote from: "Acqua" Akumayo on Wed 28/06/2006 22:44:45
The Save/Restore dialogues are hard-coded into AGS.Ã,  You'll want to build your own GUI to customize the save/load interface.Ã,  There are tutorials on how to do this I think... try a forum search "build save load GUI".

-Regards, Akumayo

Aha, well then the biggest problem is to disable the current Save/Restore function and replace it with anoother GUI??

Games Process :
---------------------
Mick Fitz Episode 1 :

Story : |----------| 0 %
Graphics : |----------| 10 %
Sound/Music : |---------| 10 %
Scripting : |----------| 0 %

----------------------------------------

Nathan23

So... you can do your own Gui for the Save/Restore dialog. when the player
press your "save button", you could do two things:

1. Wait for the player enters a description for this saved-game, and use the function

Ã,  Ã,  SaveGameSlot (int slot, string description)

2. You put the description for this saved-game, and you send the string to the function.

And for the restore you can use:

Ã,  Ã, RestoreGameSlot (int slot)

Note: The only thing that you must pay attention is the "slot number", you could overwrite a previous saved game.

Again you should read the manual  for more information.



Darkmaster400

Okay, thanks for the support.   ;D
Games Process :
---------------------
Mick Fitz Episode 1 :

Story : |----------| 0 %
Graphics : |----------| 10 %
Sound/Music : |---------| 10 %
Scripting : |----------| 0 %

----------------------------------------

Ashen

#6
QuoteAha, well then the biggest problem is to disable the current Save/Restore function and replace it with anoother GUI??

Quite simply, don't use the Save/RestoreGameDialog() commands - these start up the hard-coded versions. Do a forum search for Save/Load GUIs - this has been dealt with a few times recently, so you should find something. (Although, a lot of the results will probably be me telling someone to do the search...)

the Save/RestoreGameSlot commands play a part, but there's a bit more to it (like the ListBox.FillSaveGameList() command, so you know which slot you're dealing with) - but the manual and forum search should explain it all. If not, then you can post again, with a specific question.
EDIT:
This thread and this one are the ones I'm thinking of. They're 2.7, so you might need to change the String handling if you use 2.71 - but that should be easy enough, with the manual.
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk