local home = window:CreateTab({ name = "Home" })
home:CreateToggle({
name = "Auto Sprint",
flag = "AutoSprint",
})
home:CreateSlider({
name = "Field of View",
range = { 70, 120 },
flag = "FieldOfView",
})
-- Read or write either one from anywhere, by flag.
print(window:Get("AutoSprint"))
window:Set("FieldOfView", 90) State that survives the session.
Give an element a flag and it persists. Values come back as the type they went in as, and a window can keep several named configurations at once.