Create the selected-slot command wrappers
Record ID: save_selected. Global Script: off. Put it on save_custom’s Save selected Button.
extends "res://scripts/runtime/script_base.gd"func run(_context: Dictionary = {}) -> Variant:
await CallScript("menu_tools", "slot_command", ["save_custom", "save_custom_slots", "save-slot"])
return trueRecord ID: load_selected. Global Script: off. Put it on load_custom’s Load selected Button.
extends "res://scripts/runtime/script_base.gd"func run(_context: Dictionary = {}) -> Variant:
await CallScript("menu_tools", "slot_command", ["load_custom", "load_custom_slots", "load-slot"])
return trueThe guard reads the widget’s live selected_slot, not a guessed row number and not a label caption. Give the player a visible selected border before allowing Save or Load.
The project must contain both named GUIs and both named widgets. Validate can catch some broken references; a Play test still has to confirm the correct selected position is used.
