[sm130score] lua scoring is no longer "special".
It's primarily "it".
This commit is contained in:
@@ -21,8 +21,8 @@ function InitUserPrefs()
|
||||
if GetUserPref("UserPrefGameplayShowScore") == nil then
|
||||
SetUserPref("UserPrefGameplayShowScore", false);
|
||||
end;
|
||||
if GetUserPref("UserPrefSpecialScoringMode") == nil then
|
||||
SetUserPref("UserPrefSpecialScoringMode", 'DDR Extreme');
|
||||
if GetUserPref("UserPrefScoringMode") == nil then
|
||||
SetUserPref("UserPrefScoringMode", 'DDR Extreme');
|
||||
end;
|
||||
if GetUserPrefB("UserPrefShowLotsaOptions") == nil then
|
||||
SetUserPref("UserPrefShowLotsaOptions", true);
|
||||
@@ -230,34 +230,6 @@ function UserPrefShowLotsaOptions()
|
||||
return t;
|
||||
end
|
||||
|
||||
function UserPrefSpecialScoringMode()
|
||||
local baseChoices = { 'DDR 1stMIX', 'DDR 4thMIX', 'DDR Extreme', 'DDR SuperNOVA', 'DDR SuperNOVA 2', 'MIGS' }; --'[SSC] Radar Master'
|
||||
local t = {
|
||||
Name = "UserPrefSpecialScoringMode";
|
||||
LayoutType = "ShowAllInRow";
|
||||
SelectType = "SelectOne";
|
||||
OneChoiceForAllPlayers = true;
|
||||
ExportOnChange = false;
|
||||
Choices = baseChoices;
|
||||
LoadSelections = function(self, list, pn)
|
||||
if ReadPrefFromFile("UserPrefSpecialScoringMode") ~= nil then
|
||||
local theValue = ReadPrefFromFile("UserPrefSpecialScoringMode");
|
||||
local success = false;
|
||||
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;
|
||||
else
|
||||
WritePrefToFile("UserPrefSpecialScoringMode", 'DDR Extreme');
|
||||
list[1] = true;
|
||||
end;
|
||||
end;
|
||||
SaveSelections = function(self, list, pn)
|
||||
for k,v in ipairs(list) do if v then WritePrefToFile("UserPrefSpecialScoringMode", baseChoices[k]) break end end;
|
||||
end;
|
||||
};
|
||||
setmetatable( t, t );
|
||||
return t;
|
||||
end
|
||||
|
||||
function GetDefaultOptionLines()
|
||||
local LineSets = {
|
||||
"1,8,14,2,3,4,5,6,R,7,9,10,11,12,13,15,16,17,18", -- All
|
||||
|
||||
Reference in New Issue
Block a user