Examples for Save-Load Menus
by Esmeralda

Script for alternative item dragging  by Christopher Summer

These are 4 examples to set up a save-load menu attached to a little example scene so you can test and play around with it.
Each example is based on the previous one, so don't expect any variety in how I set up the buttons etc.
There are multiple ways to do this, this is just one way.


1. Bare Necesseties is a really barebone version, just the saveslots and the buttons for save/load/delete. Look at it if you want to see what is really needed, and what is just fluff to make a better experience

2. The Basic Version has highlighting slots and buttons. The buttons will only appear when they are usable.

3. A pop-up interface is added to ask for confirmation when overwriting or deleting. I did not add a confirmation for loading, because I myself get quickly annoyed by the constant pop-up ;-)
I added a safeguard to ensure that you can't click on another saveslot while the confirmation interface is displayed. (the actual saveslots are on top of everything, so it is possible to accidently click on a slot. The object area of the slot is blocked by the interface, so the other slot will not highlight, but the engine will react to the actual saveslot drawn with the floppy disk tool) This is done by a line of code setting the savegame to the stored Value for the slot (+ scrollposition).

4. Here I added some more fluff, like the option to save without clicking on a slot first.

I hope this helps.

