Skip to main content
Pass a configuration table to CreateWindow and the window persists state for you. Every value element saves unless you set forgetState = true, and each value restores as its original type.
Files write to Rayfield/Configurations/[customFolder/]<fileName>.rfld. Loading applies each value through its element, so callbacks fire and the config actually takes effect. It is not just the visuals moving. You can also save and load by hand.

Reading and writing values

Reach any saved value by its flag, without holding on to the element handle.
Pass an explicit flag to any element when its name is localized, might be renamed, or could collide with another element. A stable flag keeps saved files valid across changes.

Multiple configurations

Pass a name to keep several configurations and switch between them. Named configurations live beside the default file in the same folder.
When saving is enabled, the settings tab gains a Configurations section so players can save, load, overwrite, and delete configurations with no extra code.