very, very initial cleanup of ThemesAndGamePrefs
This commit is contained in:
@@ -1,49 +1,56 @@
|
|||||||
-- sm-ssc Default Theme Preferences Handler
|
-- sm-ssc Default Theme Preferences Handler
|
||||||
function InitGamePrefs()
|
function InitGamePrefs()
|
||||||
if GetGamePrefB("AutoSetStyle") == nil then
|
local Prefs =
|
||||||
SetGamePref("AutoSetStyle", false);
|
{
|
||||||
end;
|
{ "AutoSetStyle", false },
|
||||||
if GetGamePrefB("NotePosition") == nil then
|
{ "NotePosition", true },
|
||||||
SetGamePref("NotePosition", true);
|
{ "ComboOnRolls", false },
|
||||||
end;
|
{ "ComboUnderField", true },
|
||||||
if GetGamePrefB("ComboOnRolls") == nil then
|
{ "AdjustSpeed", false },
|
||||||
SetGamePref("ComboOnRolls", false);
|
};
|
||||||
end;
|
|
||||||
if GetGamePrefB("ComboUnderField") == nil then
|
for idx,pref in ipairs(Prefs) do
|
||||||
SetGamePref("ComboUnderField", true);
|
if GetGamePrefB( pref[1] ) == nil then
|
||||||
end;
|
SetGamePref( pref[1], pref[2] );
|
||||||
if GetGamePrefB("AdjustSpeed") == nil then
|
end;
|
||||||
SetGamePref("AdjustSpeed", false);
|
|
||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
function InitUserPrefs()
|
function InitUserPrefs()
|
||||||
if GetUserPref("UserPrefGameplayShowStepsDisplay") == nil then
|
|
||||||
SetUserPref("UserPrefGameplayShowStepsDisplay", true);
|
|
||||||
end;
|
|
||||||
if GetUserPref("UserPrefGameplayShowScore") == nil then
|
|
||||||
SetUserPref("UserPrefGameplayShowScore", false);
|
|
||||||
end;
|
|
||||||
if GetUserPrefB("UserPrefShowLotsaOptions") == nil then
|
if GetUserPrefB("UserPrefShowLotsaOptions") == nil then
|
||||||
SetUserPref("UserPrefShowLotsaOptions", true);
|
SetUserPref("UserPrefShowLotsaOptions", true);
|
||||||
end;
|
end;
|
||||||
if GetUserPrefB("UserPrefLongFail") == nil then
|
|
||||||
SetUserPref("UserPrefLongFail", false);
|
local Prefs =
|
||||||
|
{
|
||||||
|
{ "UserPrefGameplayShowStepsDisplay", true },
|
||||||
|
{ "UserPrefGameplayShowScore", false},
|
||||||
|
--[[ { "ProTimingP1", false},
|
||||||
|
{ "ProTimingP2", false},
|
||||||
|
--]]
|
||||||
|
};
|
||||||
|
|
||||||
|
local BPrefs =
|
||||||
|
{
|
||||||
|
{ "UserPrefShowLotsaOptions", true},
|
||||||
|
{ "UserPrefLongFail", false},
|
||||||
|
{ "UserPrefProtimingP1", false},
|
||||||
|
{ "UserPrefProtimingP2", false},
|
||||||
|
{ "FlashyCombos", false},
|
||||||
|
};
|
||||||
|
|
||||||
|
for idx,pref in ipairs(Prefs) do
|
||||||
|
if GetUserPref( pref[1] ) == nil then
|
||||||
|
SetUserPref( pref[1], pref[2] );
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
if GetUserPrefB("UserPrefProtimingP1") == nil then
|
|
||||||
SetUserPref("UserPrefProtimingP1", false);
|
-- making sure I don't screw up anything yet...
|
||||||
|
for idx,pref in ipairs(BPrefs) do
|
||||||
|
if GetUserPrefB( pref[1] ) == nil then
|
||||||
|
SetUserPref( pref[1], pref[2] );
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
if GetUserPrefB("UserPrefProtimingP2") == nil then
|
|
||||||
SetUserPref("UserPrefProtimingP2", false);
|
|
||||||
end;
|
|
||||||
if GetUserPrefB("FlashyCombos") == nil then
|
|
||||||
SetUserPref("FlashyCombos", false);
|
|
||||||
end;
|
|
||||||
--[[ if GetUserPref("ProTimingP1") == nil then
|
|
||||||
SetUserPref("ProTimingP1", false);
|
|
||||||
end;
|
|
||||||
if GetUserPref("ProTimingP2") == nil then
|
|
||||||
SetUserPref("ProTimingP2", false);
|
|
||||||
end; --]]
|
|
||||||
end;
|
end;
|
||||||
--[[ theme option rows ]]
|
--[[ theme option rows ]]
|
||||||
-- screen cover
|
-- screen cover
|
||||||
@@ -492,4 +499,4 @@ function GamePrefNotePosition()
|
|||||||
};
|
};
|
||||||
setmetatable( t, t );
|
setmetatable( t, t );
|
||||||
return t;
|
return t;
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user