Skip to reading
GDScript Programming & Godot

SaveGameWidgetCommand()

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

Save Game Widget: Command

Control a save widget's navigation, selection or selected/explicit-slot operations.

Source table from SaveGameWidgetCommand(), page 186
Option key / fieldMeaning and inputDefault
GUI guiIdChoose an authored GUI ID.Blank
Save Game Widget elementIdChoose an element inside the selected GUI.Blank
Command commandChoose: previous, next, up, down, refresh, select-first, select-previous, select-next, load-selected, save-selected, rename-selected, delete-selected, select-slot, load-slot, save-slot, rename-slot, delete-slot."previous"
Explicit Slot (-1 = Selected) slotExplicit save slot number. Selected-slot widget commands use widget selection instead.-1

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await SaveGameWidgetCommand({"guiId": "hud", "elementId": "topline", "command": "previous"})

In use. Use select-slot with a slot number, or save-selected after the player picks a row. Commands ending in -selected use widget selection; commands ending in -slot use Slot. Test overwrite, rename and delete behavior on disposable saves.

Page 186 of 378Permalink
Go to page