How do you create custom save load guis?

Started by Moox, Sat 17/04/2004 22:34:37

Previous topic - Next topic

Moox

Ive searched the forum, and all resource sites I know of and cannot find any info on this. I am sorry if this should be in begginers because I dont know how complex save load guis are to create.

Can anyone tell me how, post some script from one of their guis, or link me to a tutorial?

Thanx

stuh505

hey,

I'm not sure if you can get access to the built in save/load GUIs to modify them, but Im pretty sure you can at least make your own with the standard GUI tools and then use the provided functions to save the necessary data to a file and load it again (like SAveGameSlot etc)

Moox


stuh505

#3
Simple Example:

Make a GUI with a text field and a button.  Then make this code run when the button is pressed:

string field_name = CONTENTS OF TEXT FIELD
int slot = 1;
SaveGameSlot (slot, field_name);

Now you have a crappy GUI that allows you to save.  This will always save over the same game (slot 1).  Get it?  You could use more GUI functions to make this a little nicer and have more slots.  Same goes for loading games.

Proskrito


SMF spam blocked by CleanTalk