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:
@@ -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 ]]
|
||||
|
||||
Reference in New Issue
Block a user