Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## new
- function InitUserPrefs()
- local Prefs = {
- "UserPrefGameplayShowStepsDisplay" = true
- "UserPrefGameplayShowStepsDisplay" = true,
- "UserPrefGameplayShowScore" = false,
- "UserPrefScoringMode" = 'DDR Extreme',
- "UserPrefShowLotsaOptions" = true,
- "UserPrefAutoSetStyle" = false,
- "UserPrefLongFail" = false,
- "UserPrefNotePosition" = true,
- "UserPrefComboOnRolls" = false,
- "UserPrefProtimingP1" = false,
- "UserPrefProtimingP2" = false,
- "FlashyCombos" = false,
- "UserPrefComboUnderField" = true,
- "UserPrefFancyUIBG" = true
- }
- for k, v in pairs(Prefs) do
- -- kind of xxx
- local GetPref == type(v) == "boolean" and GetUserPrefB or GetUserPref
- if GetPref(k) == nil then
- SetUserPref(k, v)
- end
- end
- end
- ## old (nasty!)
- function InitUserPrefs()
- if GetUserPref("UserPrefGameplayShowStepsDisplay") == nil then
- SetUserPref("UserPrefGameplayShowStepsDisplay", true)
- end
- if GetUserPref("UserPrefGameplayShowScore") == nil then
- SetUserPref("UserPrefGameplayShowScore", false)
- end
- if GetUserPref("UserPrefScoringMode") == nil then
- SetUserPref("UserPrefScoringMode", 'DDR Extreme')
- end
- if GetUserPrefB("UserPrefShowLotsaOptions") == nil then
- SetUserPref("UserPrefShowLotsaOptions", true)
- end
- if GetUserPrefB("UserPrefAutoSetStyle") == nil then
- SetUserPref("UserPrefAutoSetStyle", false)
- end
- if GetUserPrefB("UserPrefLongFail") == nil then
- SetUserPref("UserPrefLongFail", false)
- end
- if GetUserPrefB("UserPrefNotePosition") == nil then
- SetUserPref("UserPrefNotePosition", true)
- end
- if GetUserPrefB("UserPrefComboOnRolls") == nil then
- SetUserPref("UserPrefComboOnRolls", false)
- end
- if GetUserPrefB("UserPrefProtimingP1") == nil then
- SetUserPref("UserPrefProtimingP1", false)
- end
- if GetUserPrefB("UserPrefProtimingP2") == nil then
- SetUserPref("UserPrefProtimingP2", false)
- end
- if GetUserPrefB("FlashyCombos") == nil then
- SetUserPref("FlashyCombos", false)
- end
- if GetUserPrefB("UserPrefComboUnderField") == nil then
- SetUserPref("UserPrefComboUnderField", true)
- end
- if GetUserPrefB("UserPrefFancyUIBG") == nil then
- SetUserPref("UserPrefFancyUIBG", true)
- end
- end
Add Comment
Please, Sign In to add comment