SplitScript reference / Language / settings family
settings family
syntax
for value in start..=end { `label {value}` key `{value}`: default }
Declares a finite family of boolean settings at compile time.
The inclusive u32 range is expanded during compilation into ordinary host settings. Label and key templates may interpolate only the loop binding. Generated entries deliberately have no statically named settings member; query them with SettingsView.enabled. A /// comment on the family becomes every generated setting's tooltip, and nesting it in a quoted group preserves the normal heading structure.
Examples
Declare numbered level settings
for level in 2..=36 {
`Level {level}` key `{level}`: true,
}