<robot voice>this was a bad ideea</robot voice>

This commit is contained in:
AJ Kelly
2011-02-21 02:46:09 -06:00
parent d83e08afa1
commit 2ec3883201
4 changed files with 1 additions and 95 deletions
-48
View File
@@ -51,9 +51,6 @@ function InitUserPrefs()
if GetUserPrefB("UserPrefComboUnderField") == nil then
SetUserPref("UserPrefComboUnderField", true);
end;
if GetUserPrefB("UserPrefAdjustSpeed") == nil then
SetUserPref("UserPrefAdjustSpeed", false);
end;
--[[ if GetUserPref("ProTimingP1") == nil then
SetUserPref("ProTimingP1", false);
end;
@@ -500,49 +497,4 @@ function UserPrefComboUnderField()
setmetatable( t, t );
return t;
end
function GetDefaultArrowSpacing()
local rates = {
64, -- Default
80, -- Pro
128, -- New
};
return GetUserPrefB("UserPrefAdjustSpeed") and rates[3] or rates[1];
end;
function UserPrefAdjustSpeed()
local t = {
Name = "UserPrefAdjustSpeed";
LayoutType = "ShowAllInRow";
SelectType = "SelectOne";
OneChoiceForAllPlayers = true;
ExportOnChange = false;
Choices = { 'Slow','Fast' };
LoadSelections = function(self, list, pn)
if ReadPrefFromFile("UserPrefAdjustSpeed") ~= nil then
if GetUserPrefB("UserPrefAdjustSpeed") then
list[2] = true;
else
list[1] = true;
end;
else
WritePrefToFile("UserPrefAdjustSpeed",true);
list[2] = true;
end;
end;
SaveSelections = function(self, list, pn)
local val;
if list[2] then
val = true;
else
val = false;
end;
WritePrefToFile("UserPrefAdjustSpeed",val);
MESSAGEMAN:Broadcast("PreferenceSet", { Message == "Set Preference" } );
THEME:ReloadMetrics();
end;
};
setmetatable( t, t );
return t;
end
--[[ end option rows ]]