-- states/settings_menu.lua -- -- Same shape as main_menu: a static optionsList with an isEnabled flag. return { probe = { fn = "keypressed", focus = "selectedOption", list = "optionsList", focusMayBeNil = true, }, render = function(entry, index, total) local text = entry.title or "?" if entry.isEnabled == false then text = text .. ", unavailable" end return text .. ", " .. index .. " of " .. total end, }