Skip to reading
Save Games & Inventory

What a save-slot event actually reports

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 illustrations

Figure 47. The save widget exposes the clicked slot and its current information to its event action.

A Save Game Widget connects its internal slot events to the GUI event system. The event context includes the slot number and information about the save. This is different from relying on generic Inventory Grid events for individual item cells.

The event is forwarded before the widget performs its built-in selection or save/load/rename/delete action. It reports the slot as it was when the input arrived. It is not an operation-completed callback.

Hover can report information without selecting. Click can report the pre-action data and then select or act. Avoid giving the same input both a custom destructive event action and a conflicting built-in slot action.

The event’s saveStatus is saved or empty. Autosave is reported separately through saveIsAutosave. The Selection Variable’s status vocabulary also has autosave; do not mix the two without checking which source you are reading.

Page 65 of 96Permalink
Go to page