Skip to reading
Action Lists & Events

Save widget and progress callback data

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView PDF page

A save widget forwards its event with additional slot information. Use saveExists before assuming a row has a file, a thumbnail or a meaningful scene name.

Source table from Save widget and progress callback data, page 175
Context key(s)Meaning
saveSlotThe slot number selected by this event.
saveExistsWhether the slot contains a save.
saveNameThe save's user-facing name.
saveSceneId, saveSceneNameThe scene recorded by the save.
saveTimestamp, saveDate, saveTimeTimestamp and formatted date/time values.
savePlayTime, savePlayTimeSecondsDisplay and numeric playtime values.
saveThumbnailPathThumbnail path where available.
saveIsAutosaveWhether this row represents an autosave.
saveStatussaved or empty.
guiElementIdThe widget element that raised the event.

A progress threshold callback supplies guiElementId, percentage and value. Its configured script and action work belong to that threshold, not to an invented shared OnProgress event. If a progress bar can move backward and cross a threshold again, check its repeat policy and guard any one-time reward.

A returned slot number is data. Decide explicitly whether the response should select, load, save, rename or delete it. Browsing a row should not accidentally overwrite or remove a save.

Page 175 of 189Permalink
Go to page