Updated IniFile to match source's function calls, added initial version

of new ThemePrefs and ThemePrefsRows implementations and added a quick
example into the default theme code. Not fully functional yet, fyi.
This commit is contained in:
Mark Cannon
2010-12-15 04:50:00 -05:00
parent 9479df65f3
commit 4aa3110e25
4 changed files with 277 additions and 2 deletions
+15 -1
View File
@@ -1,5 +1,19 @@
-- sm-ssc Default Theme Preferences Handler
-- Example usage of new system (not really implemented yet)
local Prefs =
{
AutoSetStyle =
{
Default = false,
Choices = { "ON", "OFF" },
Values = { true, false }
},
};
ThemePrefs.InitAll( Prefs )
function InitUserPrefs()
if GetUserPref("UserPrefGameplayShowStepsDisplay") == nil then
SetUserPref("UserPrefGameplayShowStepsDisplay", true);
@@ -500,4 +514,4 @@ function UserPrefAdjustSpeed()
setmetatable( t, t );
return t;
end
--[[ end option rows ]]
--[[ end option rows ]]