Choose Your Side: Race, Faction and Class Picker Screens
README.md
pickerKit.api
The one module a game requires to put up a choose-your-race / faction / class / character screen. Games and the kit's own PickerHost and PickerGallery components call it.
Picker.open({ id, title, subtitle, choices, layout, theme, previewStyle, remember, mode, exclusive, allowCancel, confirmText, initial, preview, onPick, onConfirm, onCancel, ... }) opens a picker; close, isOpen, pickOf(player, id), picks(id), onPicked(fn), setLayout / layouts, setTheme / themes, setPreviewStyle / previewStyles, setChoices(id, choices) and VERSION are the rest of the surface.
The kit remembers each player's confirmed choice in the engine's per-player store: saved(id) reads it, current(id) gives this session's pick or the saved one, forget(id) clears it, and reopen(id, overrides) opens the picker again any time on the current choice, with locked choices shown locked. render(opts, w, h) draws a picker as a widget tree without opening it.
Picks are synced per player through pickerKit's seats, so pickOf answers on every machine. Input (select, confirm, back, navigate, stick, drag, handle) and build(w, h, safe, extras) are what the PickerHost component drives each frame.