From 97498a4a3eb8eeaf6f11baa812434f2cf14d50dc Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 16 Feb 2005 06:50:37 +0000 Subject: [PATCH] allow specifying the default --- stepmania/Themes/default/Scripts/OptionsMenu.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/Themes/default/Scripts/OptionsMenu.lua b/stepmania/Themes/default/Scripts/OptionsMenu.lua index 7ea0240e76..74517c10c3 100644 --- a/stepmania/Themes/default/Scripts/OptionsMenu.lua +++ b/stepmania/Themes/default/Scripts/OptionsMenu.lua @@ -44,9 +44,11 @@ end OptionRowTable = { SaveTo = nil, -- set this + Default = nil, -- set this LoadSelections = function(self, list, pn) local Sort = PROFILEMAN:GetMachineProfile():GetSaved()[self.Name] + or self.Default -- Find the index of the current sort. local Index = FindValue(self.RawChoices, Sort) or 1 list[Index] = true