Skip to reading
Save Games & Inventory

24. Build separate Save and Load screens

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page
Source table from 24. Build separate Save and Load screens, page 71
ChoiceSave screenLoad screen
Modesaveload
Show empty slotsOnUsually off
Single clickselectselect
Double clicknone, initiallyload, if desired
Main buttonsave-selectedload-selected
Close aftersave or noneload
Delete / renameYour deliberate permission choiceYour deliberate permission choice

1. Clone the working combined GUI rather than rebuilding its styling from scratch.

2. Give the GUI and every element distinct IDs. Update every Button’s target GUI and element.

3. Apply the Save and Load settings from the table.

4. Map Save Screen and Load Screen in Global Settings to the correct GUIs.

5. Test both menus after creating, renaming and deleting a slot in the other one.

Both screens read the same project’s save files. A rename on the Save screen should be visible when the Load screen refreshes. Do not maintain a separate hard-coded array of save names that can fall out of sync.

Cloned Buttons can still target the old element if you do not update them. A correct-looking Load menu with commands aimed at the Save widget is a particularly confusing error.

Page 71 of 96Permalink
Go to page