more scoring junk
This commit is contained in:
@@ -377,6 +377,7 @@ Scoring = r;
|
|||||||
function UserPrefScoringMode()
|
function UserPrefScoringMode()
|
||||||
local baseChoices = {}
|
local baseChoices = {}
|
||||||
for k,v in pairs(Scoring) do table.insert(baseChoices,k) end
|
for k,v in pairs(Scoring) do table.insert(baseChoices,k) end
|
||||||
|
if next(baseChoices) == nil then UndocumentedFeature "No scoring modes available" end
|
||||||
local t = {
|
local t = {
|
||||||
Name = "UserPrefScoringMode";
|
Name = "UserPrefScoringMode";
|
||||||
LayoutType = "ShowAllInRow";
|
LayoutType = "ShowAllInRow";
|
||||||
@@ -391,7 +392,7 @@ function UserPrefScoringMode()
|
|||||||
for k,v in ipairs(baseChoices) do if v == theValue then list[k] = true success = true break end end;
|
for k,v in ipairs(baseChoices) do if v == theValue then list[k] = true success = true break end end;
|
||||||
if success == false then list[1] = true end;
|
if success == false then list[1] = true end;
|
||||||
else
|
else
|
||||||
WritePrefToFile("UserPrefScoringMode", 'DDR Extreme');
|
WritePrefToFile("UserPrefScoringMode", baseChoices[1]);
|
||||||
list[1] = true;
|
list[1] = true;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|||||||
Reference in New Issue
Block a user